/**
 * Osmo Woo Configurator
 * Safe replacement interface
 * Version: 11.11.1
 */

.owc-configurator-preview {
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    background: #ffffff;
}

.owc-configurator-preview__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

.owc-configurator-preview__heading {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.owc-configurator-preview__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.owc-configurator-preview__notice {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.7;
}

.owc-interface-action {
    appearance: none;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: underline;
    cursor: pointer;
}

.owc-interface-action:hover:not(:disabled) {
    text-decoration-thickness: 2px;
}

.owc-interface-action:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.owc-interface-action:disabled {
    cursor: default;
    opacity: 0.35;
}

.owc-attribute-group {
    margin-bottom: 22px;
}

.owc-attribute-group:last-child {
    margin-bottom: 0;
}

.owc-attribute-group__title {
    margin-bottom: 9px;
    font-weight: 700;
}

.owc-attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.owc-option {
    appearance: none;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #b9c1ca;
    border-radius: 4px;
    background: #ffffff;
    color: inherit;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease;
}

.owc-option:hover:not(:disabled) {
    border-color: currentColor;
}

.owc-option:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.owc-option.is-selected {
    border-color: currentColor;
    background: #f0f2f4;
    box-shadow: inset 0 0 0 1px currentColor;
}

.owc-option:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.owc-attribute-options--dropdown {
    display: block;
}

.owc-option-select {
    appearance: none;
    width: 100%;
    max-width: 420px;
    min-height: 42px;
    padding: 9px 36px 9px 14px;
    border: 1px solid #b9c1ca;
    border-radius: 4px;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    color: inherit;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease;
}

.owc-option-select:hover:not(:disabled) {
    border-color: currentColor;
}

.owc-option-select:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.owc-option-select.is-selected {
    border-color: currentColor;
    background-color: #f0f2f4;
    box-shadow: inset 0 0 0 1px currentColor;
}

.owc-option-select:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.owc-option-select.is-owc-unavailable,
.owc-option-select option.is-owc-unavailable {
    text-decoration: line-through;
}

/**
 * Replacement mode hides the native attribute table.
 *
 * Hidden early via body.owc-configurator-replace (PHP) so
 * WooCommerce dropdowns do not flash before the configurator
 * JavaScript paints. "Show standard dropdowns" adds
 * .owc-ui-native-visible as a manual fallback.
 *
 * WooCommerce's variation form, variation details, quantity
 * field and Add to Basket button remain untouched.
 */
body.owc-configurator-replace form.variations_form:not(
    .owc-ui-native-visible
) table.variations,
form.variations_form.owc-ui-replace-mode:not(
    .owc-ui-native-visible
) table.variations {
    display: none !important;
}

@media (max-width: 767px) {

    .owc-configurator-preview {
        padding: 16px;
    }

    .owc-configurator-preview__header {
        display: block;
    }

    .owc-configurator-preview__actions {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .owc-option {
        min-height: 44px;
    }

}

/**
 * Options ruled out instantly by the OWC Variation Engine.
 */
.owc-option.is-owc-unavailable {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

/**
 * Linked product-family options.
 */

.owc-product-family {
    padding-bottom: 22px;
    border-bottom: 1px solid #e2e6ea;
}

.owc-family-options {
    align-items: stretch;
}

.owc-family-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #b9c1ca;
    border-radius: 4px;
    background: #ffffff;
    color: inherit;
    font: inherit;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease;
}

a.owc-family-option:hover {
    border-color: currentColor;
    color: inherit;
    text-decoration: none;
}

a.owc-family-option:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.owc-family-option.is-selected {
    border-color: currentColor;
    background: #f0f2f4;
    box-shadow: inset 0 0 0 1px currentColor;
    cursor: default;
}

.owc-family-option-select {
    appearance: none;
    width: 100%;
    max-width: 420px;
    min-height: 42px;
    padding: 9px 36px 9px 14px;
    border: 1px solid #b9c1ca;
    border-radius: 4px;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    color: inherit;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease;
}

.owc-family-option-select:hover:not(:disabled) {
    border-color: currentColor;
}

.owc-family-option-select:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.owc-family-option-select.is-selected {
    border-color: currentColor;
    background-color: #f0f2f4;
    box-shadow: inset 0 0 0 1px currentColor;
}

.owc-family-option-select:disabled,
.owc-family-option-select.is-navigation-locked {
    cursor: progress;
    opacity: 0.55;
}

.owc-family-option-select.is-loading {
    opacity: 1;
    cursor: progress;
}

@media (max-width: 767px) {

    .owc-family-option {
        min-height: 44px;
    }

    .owc-family-option-select {
        min-height: 44px;
    }

}

/**
 * Product-family restore feedback.
 */

.owc-family-restore-feedback {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid #cbd3da;
    border-radius: 4px;
    background: #f5f7f8;
}

.owc-family-restore-feedback.is-success {
    border-color: #b8d8c2;
    background: #f2f8f4;
}

.owc-family-restore-feedback.is-warning {
    border-color: #b8d8c2;
    background: #f2f8f4;
}

.owc-family-restore-feedback__message {
    flex: 1 1 auto;
    margin: 0;
    line-height: 1.45;
}

.owc-family-restore-feedback__dismiss {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.owc-family-restore-feedback__dismiss:hover {
    text-decoration: none;
}

.owc-family-restore-feedback__dismiss:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 767px) {

    .owc-family-restore-feedback {
        gap: 12px;
        padding: 12px;
    }

}

/**
 * Linked product navigation state.
 */

.owc-family-options[aria-busy="true"] {
    cursor: progress;
}

.owc-family-option.is-navigation-locked {
    opacity: 0.55;
    cursor: progress;
}

.owc-family-option.is-loading {
    gap: 9px;
    opacity: 1;
    cursor: progress;
}

.owc-family-option.is-loading::after {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: owc-family-navigation-spin 650ms linear infinite;
}

@keyframes owc-family-navigation-spin {

    to {
        transform: rotate(360deg);
    }

}

@media (prefers-reduced-motion: reduce) {

    .owc-family-option.is-loading::after {
        animation: none;
    }

}