/*
 * Lightweight frontend styles for compare buttons and the optional widget.
 * The full comparison table stylesheet is loaded only when a table can be
 * rendered on the current request.
 */
.br_compare_button {
    padding: 0.618em 0.1em;
    margin-top: 5px !important;
    text-align: center;
    width: 100%;
}

.pixelcam-compare-control--icon {
    align-items: center;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e8dfe3);
    border-radius: 50%;
    color: var(--muted, #6b6b6b);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    margin: 0;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    position: relative;
    width: 44px;
    z-index: 5;
}

.pixelcam-compare-control--icon .br_compare_button_text {
    position: absolute;
}

.pixelcam-compare-control--icon .pixelcam-compare-icon svg {
    fill: none;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 19px;
}

.pixelcam-compare-control--icon:hover,
.pixelcam-compare-control--icon:focus-visible,
.pixelcam-compare-control--icon.br_compare_added {
    background: var(--surface, #fff7f3);
    border-color: var(--accent, #b54718);
    color: var(--accent, #b54718);
}

.pixelcam-compare-control--icon:focus-visible {
    outline: 2px solid var(--accent, #b54718);
    outline-offset: 3px;
}

.pixelcam-compare-control--icon.br_compare_limit_reached {
    cursor: not-allowed;
    opacity: .52;
}

.br_compare_button .br_compare_button_text {
    display: initial;
}

.br_compare_button input {
    display: none !important;
}

.br_compare_button .pixelcam-compare-icon {
    align-items: center;
    display: inline-flex;
    font-size: 1.1em;
    justify-content: center;
    line-height: 1;
    margin-right: 0.25em;
    min-width: 1.1em;
    vertical-align: -0.08em;
}

/* Icon-only controls must not inherit the inline/text alignment rules above. */
.pixelcam-compare-control--icon .pixelcam-compare-icon {
    align-items: center;
    display: inline-flex;
    height: 19px;
    justify-content: center;
    line-height: 0;
    margin: 0;
    min-width: 19px;
    vertical-align: middle;
    width: 19px;
}

.pixelcam-compare-control--icon .pixelcam-compare-icon svg {
    display: block;
    flex: 0 0 auto;
}

.br_compare_button .pixelcam-compare-icon-added {
    display: none;
}

.br_compare_button.br_compare_added .pixelcam-compare-icon-add {
    display: none;
}

.br_compare_button.br_compare_added .pixelcam-compare-icon-added {
    display: inline-flex;
}

.br_compare_button:hover {
    color: #515151;
    background-color: #dad8da;
}

.berocket_show_compare_toolbar .pixelcam-compare-toolbar-icon,
.berocket_hide_compare_toolbar .pixelcam-compare-toolbar-icon {
    display: inline-block;
    font-size: 1.1em;
    line-height: 1;
    margin-left: 0.35em;
}

.pixelcam-compare-count {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    margin-left: .25em;
}

.berocket_compare_widget .pixelcam-compare-widget-remove {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

@media (prefers-reduced-motion: reduce) {
    .br_compare_button,
    .berocket_compare_widget,
    .berocket_compare_widget_toolbar {
        scroll-behavior: auto;
        transition-duration: 0.01ms !important;
    }
}
