/*
 * O'Three Product Configurator
 * Front-end layout fix: left option builder, sticky right preview, 375x370 cards, confidence panel.
 */

body.single-product .product .opc-builder,
body.single-product .product .opc-builder * {
    box-sizing: border-box;
}

body.single-product .product {
    display: block !important;
}

body.single-product .product > .summary.entry-summary:empty,
body.single-product .product > .woocommerce-product-gallery:empty {
    display: none !important;
}

body.single-product .product .inner:has(.opc-builder) {
    width: min(1500px, calc(100vw - 64px));
    margin: 0 auto;
}

body.single-product .product .opc-builder {
    --opc-ink: #1c202a;
    --opc-muted: #555b66;
    --opc-line: #d6d6d0;
    --opc-keyline: #e7e5da;
    --opc-paper: #fffef8;
    --opc-panel: #f7f5ef;
    --opc-blue: #cfe4fb;
    --opc-yellow: #ffc43f;
    --opc-dark: #063947;
    --opc-selected-blue: #2f7df6;
    width: 100%;
    margin: 0 0 80px;
    color: var(--opc-ink);
    clear: both;
}

body.single-product .product .opc-builder__form {
    display: grid !important;
    grid-template-columns: minmax(0, 850px) minmax(420px, 1fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
    margin: 0 !important;
}

body.single-product .product .opc-builder__left {
    min-width: 0;
    width: 100%;
    order: 1;
}

body.single-product .product .opc-builder__right {
    order: 2;
    position: sticky;
    top: 96px;
    align-self: start;
    z-index: 4;
}

body.single-product .product .opc-hero {
    margin: 0 0 56px;
    padding: 0;
}

body.single-product .product .opc-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 0 0 20px;
    padding: 7px 12px;
    border: 1px solid #aeb4bc;
    border-radius: 4px;
    background: #fffef8;
    color: var(--opc-ink);
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0;
}

body.single-product .product .opc-hero h1 {
    margin: 0 0 44px !important;
    color: var(--opc-ink);
    font-size: clamp(46px, 5.1vw, 76px) !important;
    line-height: .93 !important;
    letter-spacing: -.055em;
}

body.single-product .product .opc-intro {
    max-width: 850px;
    color: #404650;
    font-size: clamp(18px, 1.5vw, 24px);
    line-height: 1.35;
}

body.single-product .product .opc-intro p,
body.single-product .product .opc-section__description p,
body.single-product .product .opc-confidence-panel p,
body.single-product .product .opc-help-panel p {
    margin: 0 0 .8em;
}

body.single-product .product .opc-intro p:last-child,
body.single-product .product .opc-section__description p:last-child,
body.single-product .product .opc-confidence-panel p:last-child,
body.single-product .product .opc-help-panel p:last-child {
    margin-bottom: 0;
}

body.single-product .product .opc-confidence-panel,
body.single-product .product .opc-help-panel {
    margin: 28px 0 0;
    padding: 24px 26px;
    border-radius: 10px;
    background: var(--opc-blue);
    color: #38424e;
    font-size: 17px;
    line-height: 1.45;
}


body.single-product .product .opc-confidence-panel {
    max-width: 850px;
    margin-top: 30px;
}

body.single-product .product .opc-confidence-panel h2,
body.single-product .product .opc-confidence-panel h3,
body.single-product .product .opc-confidence-panel h4 {
    margin: 0 0 12px !important;
    color: var(--opc-ink);
    font-size: 24px !important;
    line-height: 1.15 !important;
    letter-spacing: -.02em;
}

body.single-product .product .opc-section {
    margin: 0 0 52px;
    padding: 0;
}

body.single-product .product .opc-section h2 {
    margin: 0 0 30px !important;
    color: var(--opc-ink);
    font-size: clamp(30px, 3vw, 44px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.04em;
}

body.single-product .product .opc-section__description {
    max-width: 790px;
    margin: -16px 0 24px;
    color: var(--opc-muted);
    font-size: 16px;
    line-height: 1.5;
}

body.single-product .product .opc-required,
body.single-product .product .opc-field b {
    color: var(--opc-yellow);
}

/* Image cards: two columns on the left, with a 20px outer keyline and 375x370 image ratio. */
body.single-product .product .opc-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

body.single-product .product .opc-option-grid--radio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.single-product .product .opc-option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    padding: 10px;
    border: 1px solid var(--opc-line);
    border-radius: 20px;
    background: var(--opc-paper);
    color: var(--opc-ink);
    cursor: pointer;
    overflow: visible;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.single-product .product .opc-option-card:hover {
    border-color: #abb0b6;
}

body.single-product .product .opc-option-card.is-selected {
    border-color: var(--opc-line);
    box-shadow: none;
}

body.single-product .product .opc-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.single-product .product .opc-option-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 375 / 370;
    border-radius: 10px;
    background: var(--opc-panel);
    overflow: hidden;
}

body.single-product .product .opc-option-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.single-product .product .opc-option-card__content {
    display: block;
    min-height: 74px;
    padding: 18px 48px 10px 6px;
}

body.single-product .product .opc-option-card strong,
body.single-product .product .opc-option-card small,
body.single-product .product .opc-option-card em {
    display: block;
}

body.single-product .product .opc-option-card strong {
    color: var(--opc-ink);
    font-size: 18px;
    line-height: 1.12;
    font-weight: 700;
}

body.single-product .product .opc-option-card small {
    margin-top: 5px;
    color: var(--opc-muted);
    font-size: 14px;
    line-height: 1.3;
    font-style: normal;
}

body.single-product .product .opc-option-card em {
    margin-top: 10px;
    color: #005b70;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    font-style: normal;
}

body.single-product .product .opc-option-card::after {
    content: '';
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 22px;
    height: 22px;
    border: 2px solid #aeb4bc;
    border-radius: 999px;
    background: #fffef8;
    box-shadow: none;
}

body.single-product .product .opc-option-card::before {
    content: '';
    position: absolute;
    right: 25px;
    bottom: 25px;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--opc-selected-blue);
    opacity: 0;
    transform: scale(.65);
    transition: opacity .16s ease, transform .16s ease;
}

body.single-product .product .opc-option-card.is-selected::after {
    border-color: #aeb4bc;
    background: #fffef8;
    box-shadow: none;
}

body.single-product .product .opc-option-card.is-selected::before {
    opacity: 1;
    transform: scale(1);
}

/* Selects and normal fields get the same outer/keyline treatment. */
body.single-product .product .opc-select-wrap,
body.single-product .product .opc-field {
    display: block;
    margin: 0 !important;
    padding: 20px;
    border: 1px solid var(--opc-line);
    border-radius: 20px;
    background: var(--opc-paper);
}

body.single-product .product .opc-select-wrap {
    position: relative;
}

body.single-product .product .opc-select-wrap::after {
    content: '';
    position: absolute;
    right: 38px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -7px;
    border-right: 2px solid var(--opc-ink);
    border-bottom: 2px solid var(--opc-ink);
    transform: rotate(45deg);
    pointer-events: none;
}

body.single-product .product .opc-select-wrap select,
body.single-product .product .opc-field input,
body.single-product .product .opc-field textarea,
body.single-product .product .opc-field select {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 48px 12px 14px;
    border: 1px solid var(--opc-line);
    border-radius: 10px;
    background: #fff;
    color: var(--opc-ink);
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    outline: none;
}

body.single-product .product .opc-select-wrap select:focus,
body.single-product .product .opc-field input:focus,
body.single-product .product .opc-field textarea:focus,
body.single-product .product .opc-field select:focus {
    border-color: var(--opc-ink);
    box-shadow: 0 0 0 2px rgba(28, 32, 42, .12);
}

body.single-product .product .opc-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

body.single-product .product .opc-field > .opc-field__label {
    display: block;
    margin: 0 0 10px;
    color: var(--opc-ink);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

body.single-product .product .opc-field__control {
    position: relative;
    display: block;
}

body.single-product .product .opc-field__control small {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--opc-muted);
    font-size: 13px;
    pointer-events: none;
}

body.single-product .product .opc-field__control input {
    padding-right: 54px;
}

body.single-product .product .opc-field textarea {
    min-height: 122px;
    resize: vertical;
}

body.single-product .product .opc-field em {
    display: block;
    margin-top: 8px;
    color: var(--opc-muted);
    font-size: 12px;
    line-height: 1.35;
    font-style: normal;
}


body.single-product .product .opc-builder__actions {
    margin: 8px 0 64px;
}

body.single-product .product .opc-option-card__tooltip {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ffc56a;
    color: var(--opc-ink);
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    font-style: normal;
}

body.single-product .product .opc-option-card__tooltip > span {
    display: block;
    transform: translateY(-1px);
}

body.single-product .product .opc-option-card__tooltip em {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: block;
    width: min(260px, 70vw);
    padding: 12px 14px;
    border: 1px solid var(--opc-line);
    border-radius: 10px;
    background: #fff;
    color: var(--opc-ink);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    font-style: normal;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

body.single-product .product .opc-option-card__tooltip:hover em,
body.single-product .product .opc-option-card__tooltip:focus em,
body.single-product .product .opc-option-card__tooltip:focus-within em {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sticky preview: right hand side, image container contains inset price. */
body.single-product .product .opc-summary {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

body.single-product .product .opc-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.14;
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--opc-panel);
}

body.single-product .product .opc-preview img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 34px;
}

body.single-product .product .opc-total {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    margin: 0 !important;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--opc-dark);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
}

body.single-product .product .opc-total span {
    font-weight: 400;
}

body.single-product .product .opc-total strong,
body.single-product .product .opc-total .woocommerce-Price-amount,
body.single-product .product .opc-total .woocommerce-Price-currencySymbol {
    color: #fff;
    font-size: inherit;
    line-height: inherit;
    font-weight: 800;
}

body.single-product .product .opc-summary__body {
    display: block;
}

body.single-product .product .opc-summary__body h2 {
    display: none !important;
}

body.single-product .product .opc-selection-summary {
    display: none;
}

body.single-product .product .opc-button,
body.single-product .product button.opc-button.single_add_to_cart_button.button.alt {
    position: relative;
    font-family: 'PP Formula Extrabold', var(--font-heading), var(--font-body), sans-serif !important;
    font-size: 0.76em !important;
    letter-spacing: 0.05em !important;
    text-align: left !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
    color: #302e2e !important;
    background-color: #f4ad3d !important;
    padding: 3.45em 5.6em 0.5em 1em !important;
    display: block !important;
    border: 0 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: 0.6s background-color !important;
    width: 215px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    box-shadow: none !important;
    appearance: none;
}

body.single-product .product .opc-button::after,
body.single-product .product button.opc-button.single_add_to_cart_button.button.alt::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-image: var(--opc-button-arrow, none);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    right: 7px;
    top: 12px;
    transform: translateY(-50%);
    transition: 0.1s all;
}

body.single-product .product .opc-button:hover,
body.single-product .product button.opc-button.single_add_to_cart_button.button.alt:hover {
    background-color: #f6bb58 !important;
    color: #302e2e !important;
}

body.single-product .product .opc-button:hover::after,
body.single-product .product button.opc-button.single_add_to_cart_button.button.alt:hover::after {
    transform: translateY(-50%) rotate(45deg);
}

body.single-product .product .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1200px) {
    body.single-product .product .inner:has(.opc-builder) {
        width: min(100% - 36px, 1500px);
    }

    body.single-product .product .opc-builder__form {
        grid-template-columns: minmax(0, 1fr) 390px;
        gap: 36px;
    }
}

@media (max-width: 960px) {
    body.single-product .product .opc-builder__form {
        display: flex !important;
        flex-direction: column;
    }

    body.single-product .product .opc-builder__right {
        position: static;
        order: -1;
        width: 100%;
    }

    body.single-product .product .opc-preview {
        aspect-ratio: 1.35 / 1;
        max-height: 560px;
    }
}

@media (max-width: 720px) {
    body.single-product .product .inner:has(.opc-builder) {
        width: min(100% - 24px, 1500px);
    }

    body.single-product .product .opc-option-grid,
    body.single-product .product .opc-option-grid--radio,
    body.single-product .product .opc-field-grid {
        grid-template-columns: 1fr;
    }

    body.single-product .product .opc-hero h1 {
        font-size: clamp(42px, 13vw, 64px) !important;
    }
}

/* v1.1.1: fee badges and add-on toggle cards. */
body.single-product .product .opc-option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.single-product .product .opc-option-card__price {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 17px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    pointer-events: none;
}

body.single-product .product .opc-option-card__content em {
    display: none !important;
}

body.single-product .product .opc-option-grid--add_on_toggle {
    grid-template-columns: minmax(0, 430px);
}

body.single-product .product .opc-option-card--add_on_toggle {
    min-height: 84px;
    padding: 10px;
    justify-content: center;
}

body.single-product .product .opc-option-card--add_on_toggle .opc-option-card__image {
    display: none;
}

body.single-product .product .opc-option-card--add_on_toggle .opc-option-card__content {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 0 70px 0 20px;
    border: 1px solid #8c9298;
    border-radius: 10px;
    background: #fffef8;
}

body.single-product .product .opc-option-card--add_on_toggle .opc-option-card__content strong {
    font-size: 18px;
    line-height: 1.15;
    font-weight: 700;
}

body.single-product .product .opc-option-card--add_on_toggle .opc-option-card__content small {
    margin-left: 10px;
    margin-top: 0;
}

body.single-product .product .opc-option-card--add_on_toggle .opc-option-card__price {
    left: auto;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 28px;
    padding: 0 10px;
    background: var(--opc-dark);
    font-size: 12px;
}

body.single-product .product .opc-option-card--add_on_toggle::before {
    display: none;
}

body.single-product .product .opc-option-card--add_on_toggle::after {
    content: '+';
    right: 30px;
    top: 50%;
    bottom: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border: 1px solid #1c202a;
    border-radius: 999px;
    background: #fffef8;
    color: #1c202a;
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
    box-shadow: none;
}

body.single-product .product .opc-option-card--add_on_toggle.is-selected::after {
    content: '✓';
    border-color: var(--opc-selected-blue);
    background: var(--opc-selected-blue);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

/* v1.1.2: add-on groups can have gallery images above the toggle button. */
body.single-product .product .opc-addon-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
    padding: 10px;
    border: 1px solid var(--opc-line);
    border-radius: 20px;
    background: var(--opc-paper);
}

body.single-product .product .opc-addon-gallery--1 {
    grid-template-columns: 1fr;
}

body.single-product .product .opc-addon-gallery__item {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 375 / 370;
    border-radius: 10px;
    background: var(--opc-panel);
    overflow: hidden;
}

body.single-product .product .opc-addon-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.single-product .product .opc-option-card--add_on_toggle .opc-option-card__price {
    display: none;
}

body.single-product .product .opc-addon-gallery .opc-option-card__price {
    display: inline-flex;
}

/* v1.1.3 measurement unit selectors */
body.single-product .product .opc-field__control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: stretch;
    border: 1px solid var(--opc-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

body.single-product .product .opc-field__normal,
body.single-product .product .opc-field__split {
    display: block;
    min-width: 0;
}

body.single-product .product .opc-field__normal[hidden],
body.single-product .product .opc-field__split[hidden] {
    display: none !important;
}

body.single-product .product .opc-field__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

body.single-product .product .opc-field__split input + input {
    border-left: 1px solid var(--opc-line) !important;
}

body.single-product .product .opc-field__control input,
body.single-product .product .opc-field__control select,
body.single-product .product .opc-field__control small {
    min-height: 52px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.single-product .product .opc-field__control input {
    padding: 12px 14px !important;
}

body.single-product .product .opc-field__control .opc-field__unit-select,
body.single-product .product .opc-field__control small {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0 28px 0 12px !important;
    border-left: 1px solid var(--opc-line) !important;
    color: var(--opc-muted);
    font-size: 13px;
    line-height: 1;
    transform: none;
    background: #fff;
}

body.single-product .product .opc-field__control .opc-field__unit-select {
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--opc-muted) 50%), linear-gradient(135deg, var(--opc-muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

body.single-product .product .opc-field__control:focus-within {
    border-color: var(--opc-ink);
    box-shadow: 0 0 0 2px rgba(28, 32, 42, .12);
}


/* v1.1.4: measurements should match the flatter PDF styling.
   Measurement fields do not use the 20px outer card/keyline. The optional
   field help text is shown above the input, and the internal label is hidden
   so fields such as Weight, Neck and Wrist can rely on placeholder text only. */
body.single-product .product .opc-field.opc-field--measurement {
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product .product .opc-field.opc-field--measurement em {
    order: -1;
    display: block;
    margin: 0 0 8px !important;
    color: var(--opc-muted);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
    font-style: normal;
}

body.single-product .product .opc-field.opc-field--measurement .opc-field__control {
    width: 100%;
    border: 1px solid var(--opc-line);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    box-shadow: none !important;
}

body.single-product .product .opc-field.opc-field--measurement .opc-field__control:focus-within {
    border-color: var(--opc-ink);
    box-shadow: 0 0 0 2px rgba(28, 32, 42, .10) !important;
}

body.single-product .product .opc-field.opc-field--measurement .opc-field__control input,
body.single-product .product .opc-field.opc-field--measurement .opc-field__control select,
body.single-product .product .opc-field.opc-field--measurement .opc-field__control small {
    min-height: 46px;
    background: #fff;
}

body.single-product .product .opc-field.opc-field--measurement .opc-field__control input {
    padding: 10px 14px !important;
}

body.single-product .product .opc-field.opc-field--measurement .opc-field__control .opc-field__unit-select,
body.single-product .product .opc-field.opc-field--measurement .opc-field__control small {
    border-left: 1px solid var(--opc-line) !important;
    color: var(--opc-muted);
    font-size: 12px;
}

body.single-product .product .opc-field-grid {
    gap: 16px 24px;
}

/* v1.1.5: optional measurement labels, panel spacing and measurement video modal */
body.single-product .product .opc-measurement-panel {
    margin-bottom: 40px !important;
}

body.single-product .product .opc-field.opc-field--measurement.opc-field--show-label > .opc-field__label {
    display: block !important;
    margin: 0 0 8px !important;
    color: var(--opc-ink);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}

body.single-product .product .opc-field.opc-field--measurement.opc-field--show-label > .opc-field__label b {
    color: #f5a800;
    font-weight: 700;
}

body.single-product .product .opc-video-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--opc-ink) !important;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none !important;
    text-decoration: none;
}

body.single-product .product .opc-video-link span {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000;
}

body.single-product .product .opc-video-link span::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #fff;
}

body.single-product .product .opc-video-link:hover,
body.single-product .product .opc-video-link:focus {
    text-decoration: underline;
}

body.single-product .product .opc-video-modal[hidden] {
    display: none !important;
}

body.single-product .product .opc-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

body.single-product .product .opc-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
}

body.single-product .product .opc-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    border-radius: 12px;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

body.single-product .product .opc-video-modal__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

body.single-product .product .opc-video-modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.single-product .product .opc-video-modal__close {
    position: absolute;
    right: -14px;
    top: -14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0 !important;
    border-radius: 50%;
    background: #fff !important;
    color: #000 !important;
    font-size: 26px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.25) !important;
}


/* v1.1.6: measurement field visibility and unit select refinements.
   Do not hide the control for fields where Show Label is disabled. */
body.single-product .product .opc-field.opc-field--measurement:not(.opc-field--show-label) > .opc-field__label {
    display: none !important;
}

body.single-product .product .opc-field.opc-field--measurement .opc-field__control .opc-field__unit-select {
    display: block !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    text-align: center !important;
    text-align-last: center !important;
    padding: 0 30px 0 10px !important;
    line-height: 46px !important;
    background-color: #fff !important;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--opc-muted) 50%),
        linear-gradient(135deg, var(--opc-muted) 50%, transparent 50%) !important;
    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50% !important;
    background-size: 5px 5px, 5px 5px !important;
    background-repeat: no-repeat !important;
}

body.single-product .product .opc-field.opc-field--measurement .opc-field__control small {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}


/* v1.1.7: bottom-align measurement controls within each grid row.
   Fields with visible labels/help text are taller, so align every field to the
   bottom of its grid cell to keep the input boxes level across columns. */
body.single-product .product .opc-field-grid--measurements {
    align-items: end;
}

body.single-product .product .opc-field-grid--measurements .opc-field--measurement {
    justify-content: flex-end;
}

/* v1.1.9: typography and select width refinements */
body.single-product .product .opc-builder h2 {
    font-family: var(--font-body), inherit !important;
}

body.single-product .product .opc-builder strong,
body.single-product .product .opc-field > .opc-field__label {
    font-weight: 500 !important;
}

body.single-product .product .opc-section > .opc-select-wrap {
    width: calc((100% - 20px) / 2);
    max-width: 100%;
}

@media (max-width: 900px) {
    body.single-product .product .opc-section > .opc-select-wrap {
        width: 100%;
    }
}
