/**
 * WooForm 2.1 — skins
 * =====================================================================
 * One component system, many identities.
 *
 *   1. Tokens         derived colours (soft tints, focus ring, hover) are
 *                     computed from the Theme Studio / skin tokens, so an
 *                     admin colour change restyles every state.
 *   2. Components     every part of the order form (header, offers,
 *                     swatches, stepper, fields, coupon, bundles, summary,
 *                     CTA, trust row, messages, modals, sticky bar) styled
 *                     once, from tokens only.
 *   3. Skins          each skin sets its tokens and a few identity rules:
 *                     modern · minimal · cod · editorial · classic · bold ·
 *                     card. Theme-following skins (glozin, woodmart) live in
 *                     skin-glozin.css / skin-woodmart.css and load after this.
 *
 * Specificity map (lowest → highest):
 *   product-form.css            .x / .a .x
 *   components (here)           .codwo-product-form-wrapper .x          0,2,0
 *   skins (here)                .codwo-skin-s.codwo-product-form-wrapper .x  0,3,0
 *   Theme Studio inline tokens  .codwo-product-form-wrapper ×3            0,3,0 (tokens only, printed last)
 *   theme skins                 .codwo-skin-glozin.codwo-skin-glozin .x   0,3,0+ (loaded last)
 *
 * Class names used by product-form.js are unchanged. RTL: logical
 * properties throughout; the few physical ones are mirrored at the end.
 */

/* ==================================================================== *
 * 1. Tokens
 * ==================================================================== */

.codwo-product-form-wrapper {
    --codwo-bg: #ffffff;
    --codwo-surface: #f7f8fa;
    --codwo-border: #e3e7ed;
    --codwo-border-strong: #cfd6df;
    --codwo-text: #101828;
    --codwo-text-muted: #5b6676;
    --codwo-primary: #0f4c81;
    --codwo-accent: #ef6c00;
    --codwo-success: #1b8a5a;
    --codwo-danger: #d23b3b;
    --codwo-button-bg: var(--codwo-primary);
    --codwo-button-text: #ffffff;

    --codwo-radius-card: 16px;
    --codwo-radius-input: 10px;
    --codwo-radius-button: 12px;
    --codwo-input-height: 48px;
    --codwo-font-size: 15px;

    --codwo-card-pad: 24px;
    --codwo-gap: 18px;
    --codwo-panel-pad: 14px;
    --codwo-cta-height: 56px;
    --codwo-field-bg: var(--codwo-bg);
    --codwo-field-border: var(--codwo-border-strong);
    --codwo-shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 40px -24px rgba(16, 24, 40, 0.22);
    --codwo-shadow-cta: 0 12px 24px -14px rgba(16, 24, 40, 0.55);
    --codwo-sticky-cta: 0;

    /* Fallbacks for browsers without color-mix(). */
    --codwo-primary-soft: rgba(15, 76, 129, 0.08);
    --codwo-ring: rgba(15, 76, 129, 0.24);
    --codwo-success-soft: rgba(27, 138, 90, 0.12);
    --codwo-danger-soft: rgba(210, 59, 59, 0.1);
    --codwo-accent-soft: rgba(239, 108, 0, 0.14);
    --codwo-button-bg-hover: var(--codwo-button-bg);
    --codwo-price-chip: rgba(255, 255, 255, 0.18);
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
    .codwo-product-form-wrapper,
    .codwo-sticky-cta {
        --codwo-primary-soft: color-mix(in srgb, var(--codwo-primary) 8%, transparent);
        --codwo-ring: color-mix(in srgb, var(--codwo-primary) 26%, transparent);
        --codwo-success-soft: color-mix(in srgb, var(--codwo-success) 12%, transparent);
        --codwo-danger-soft: color-mix(in srgb, var(--codwo-danger) 10%, transparent);
        --codwo-accent-soft: color-mix(in srgb, var(--codwo-accent) 15%, transparent);
        --codwo-button-bg-hover: color-mix(in srgb, var(--codwo-button-bg) 86%, #000);
        --codwo-price-chip: color-mix(in srgb, var(--codwo-button-text) 18%, transparent);
    }
}

/* ==================================================================== *
 * 2. Frame + rhythm
 * ==================================================================== */

.codwo-product-form-wrapper {
    position: relative;
    max-width: 640px;
    margin: 20px auto;
    padding: var(--codwo-card-pad);
    background: var(--codwo-bg);
    color: var(--codwo-text);
    border: 1px solid var(--codwo-border);
    border-radius: var(--codwo-radius-card);
    box-shadow: var(--codwo-shadow-card);
    font-size: var(--codwo-font-size);
    line-height: 1.55;
    text-align: start;
    -webkit-font-smoothing: antialiased;
}

.codwo-product-form-wrapper .codwo-product-form {
    display: flex;
    flex-direction: column;
    gap: var(--codwo-gap);
    margin: 0;
    padding: 0;
    background: transparent;
}

.codwo-product-form-wrapper .codwo-product-form > * {
    margin-block: 0;
}

.codwo-product-form-wrapper .codwo-product-form > script,
.codwo-product-form-wrapper .codwo-product-form > input[type="hidden"] {
    display: none;
}

/* One typeface across the form (Theme Studio font). Icon fonts keep theirs. */
.codwo-product-form-wrapper,
.codwo-product-form-wrapper *:not(i):not(svg):not(.dashicons):not([class*="fa-"]):not(.fab):not(.fas):not(.far):not(.fal) {
    font-family: var(--codwo-font, "Inter", "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
}

.codwo-product-form-wrapper h2,
.codwo-product-form-wrapper h3,
.codwo-product-form-wrapper h4 {
    text-transform: none;
    letter-spacing: normal;
    border: 0;
    padding: 0;
}

.codwo-is-hidden { display: none !important; }

/* Honeypot field: off-screen for people, visible to form-filling bots. */
.codwo-product-form-wrapper .codwo-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.codwo-shortcode-error { padding: 10px 14px; background: #fdecea; border: 1px solid #f4a4a4; color: #842029; border-radius: 6px; }

/* Section titles */
.codwo-product-form-wrapper .codwo-variations-section > h4,
.codwo-product-form-wrapper .codwo-promo-selector-section > h4,
.codwo-product-form-wrapper .codwo-coupon-section > h4,
.codwo-product-form-wrapper .codwo-bank-transfer-section > h4,
.codwo-product-form-wrapper .codwo-extras-title,
.codwo-product-form-wrapper .codwo-fbt-title {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--codwo-text);
}

/* ==================================================================== *
 * 3. Heading + product header
 * ==================================================================== */

.codwo-product-form-wrapper .codwo-form-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0 0 14px;
    border-block-end: 1px solid var(--codwo-border);
    text-align: start;
}

.codwo-product-form-wrapper .codwo-form-heading__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--codwo-text);
}

.codwo-product-form-wrapper .codwo-form-heading__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--codwo-text-muted);
}

/* Inline header: thumbnail + name + price + live total */
.codwo-product-form-wrapper .codwo-product-header {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 12px;
    background: var(--codwo-surface);
    border: 1px solid var(--codwo-border);
    border-radius: min(var(--codwo-radius-card), 14px);
}

.codwo-product-form-wrapper .codwo-product-header__media img {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: min(var(--codwo-radius-card), 12px);
    background: #fff;
    border: 1px solid var(--codwo-border);
}

.codwo-product-form-wrapper .codwo-product-header__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.codwo-product-form-wrapper .codwo-product-header__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--codwo-text);
    text-align: start;
}

.codwo-product-form-wrapper .codwo-product-header__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--codwo-text-muted);
}

.codwo-product-form-wrapper .codwo-product-header__price,
.codwo-product-form-wrapper .codwo-form-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
}

.codwo-product-form-wrapper .codwo-product-header__price-value,
.codwo-product-form-wrapper .codwo-product-price-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--codwo-text);
    font-variant-numeric: tabular-nums;
}

.codwo-product-form-wrapper .codwo-product-header__price-regular,
.codwo-product-form-wrapper .codwo-product-price-regular {
    font-size: 13px;
    font-weight: 500;
    color: var(--codwo-text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

/* Sale price: colour it when a regular price is shown next to it. */
.codwo-product-form-wrapper .codwo-product-header__price-value:has(+ .codwo-product-header__price-regular),
.codwo-product-form-wrapper .codwo-product-price-value:has(+ .codwo-product-price-regular) {
    color: var(--codwo-danger);
}

.codwo-product-form-wrapper .codwo-product-header__total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}

.codwo-product-form-wrapper .codwo-product-header__total-label {
    font-size: 12px;
    color: var(--codwo-text-muted);
}

.codwo-product-form-wrapper .codwo-product-header__total-value {
    font-size: 19px;
    font-weight: 800;
    color: var(--codwo-primary);
    font-variant-numeric: tabular-nums;
}

.codwo-product-form-wrapper .codwo-header-inline > .codwo-form-title:not(.codwo-product-header__title),
.codwo-product-form-wrapper .codwo-header-inline > .codwo-form-product-media {
    display: none;
}

/* Stacked header */
.codwo-product-form-wrapper .codwo-header-stacked > .codwo-form-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--codwo-text);
    text-align: start;
    letter-spacing: -0.01em;
}

.codwo-product-form-wrapper .codwo-form-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--codwo-text-muted);
    text-align: start;
}

.codwo-product-form-wrapper .codwo-form-product-media {
    display: flex;
    justify-content: center;
    margin: 0;
}

.codwo-product-form-wrapper .codwo-form-product-media img {
    width: min(100%, 240px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: min(var(--codwo-radius-card), 14px);
    border: 1px solid var(--codwo-border);
    box-shadow: none;
}

/* Stock badge */
.codwo-product-form-wrapper .codwo-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
    border: 0;
}

.codwo-product-form-wrapper .codwo-stock-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.codwo-product-form-wrapper .codwo-stock-badge.codwo-stock--in {
    color: var(--codwo-success);
    background: var(--codwo-success-soft);
}

.codwo-product-form-wrapper .codwo-stock-badge.codwo-stock--low {
    color: #b45309;
    background: rgba(245, 158, 11, 0.16);
}

.codwo-product-form-wrapper .codwo-stock-badge.codwo-stock--low::before {
    animation: codwo-pulse-dot 1.6s ease-in-out infinite;
}

.codwo-product-form-wrapper .codwo-stock-badge.codwo-stock--out {
    color: var(--codwo-danger);
    background: var(--codwo-danger-soft);
}

@keyframes codwo-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.45); }
    50% { box-shadow: 0 0 0 5px rgba(234, 88, 12, 0); }
}

/* Store-wide promotion banner */
.codwo-product-form-wrapper .codwo-promotions-banner {
    display: grid;
    gap: 8px;
    margin: 0 0 var(--codwo-gap);
}

.codwo-product-form-wrapper .codwo-promo-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: min(var(--codwo-radius-card), 12px);
    background: var(--codwo-promo-bg, var(--codwo-primary));
    color: #fff;
}

.codwo-product-form-wrapper .codwo-promo-content strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.codwo-product-form-wrapper .codwo-promo-content p {
    margin: 2px 0 0;
    font-size: 12.5px;
    opacity: 0.92;
}

/* ==================================================================== *
 * 4. Variations + swatches
 * ==================================================================== */

.codwo-product-form-wrapper .codwo-variations-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.codwo-product-form-wrapper .codwo-variations-section > h4 {
    margin: 0;
}

.codwo-product-form-wrapper .codwo-variation-group {
    margin: 0;
}

.codwo-product-form-wrapper .codwo-variation-group > label {
    display: block;
    margin: 0 0 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--codwo-text);
}

.codwo-product-form-wrapper .codwo-variation-select {
    width: 100%;
    height: var(--codwo-input-height);
    padding: 0 14px;
    padding-inline-end: 38px;
    border: 1px solid var(--codwo-field-border);
    border-radius: var(--codwo-radius-input);
    background-color: var(--codwo-field-bg);
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: right 14px center;
    color: var(--codwo-text);
    font-size: 15px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.codwo-product-form-wrapper .codwo-swatches-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    align-items: flex-start;
}

.codwo-product-form-wrapper .codwo-swatch-item {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border-radius: var(--codwo-radius-input);
    cursor: pointer;
    outline: none;
    transition: transform 0.15s ease;
}

.codwo-product-form-wrapper .codwo-swatch-item:hover {
    transform: none;
}

.codwo-product-form-wrapper .codwo-swatch-item:focus-visible .codwo-color-swatch,
.codwo-product-form-wrapper .codwo-swatch-item:focus-visible .codwo-image-swatch,
.codwo-product-form-wrapper .codwo-swatch-item:focus-visible .codwo-button-swatch {
    box-shadow: 0 0 0 3px var(--codwo-ring);
}

.codwo-product-form-wrapper .codwo-swatch-label {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    color: var(--codwo-text-muted);
}

.codwo-product-form-wrapper .codwo-swatch-item.selected .codwo-swatch-label {
    color: var(--codwo-text);
    font-weight: 700;
}

/* Colour */
.codwo-product-form-wrapper .codwo-swatch-color .codwo-color-swatch {
    display: block;
    width: var(--codwo-swatch-size, 38px);
    height: var(--codwo-swatch-size, 38px);
    border-radius: 999px;
    border: 3px solid var(--codwo-bg);
    box-shadow: 0 0 0 1px var(--codwo-border-strong);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.codwo-product-form-wrapper .codwo-swatch-color .codwo-swatch-item:hover .codwo-color-swatch {
    box-shadow: 0 0 0 1px var(--codwo-text-muted);
}

.codwo-product-form-wrapper .codwo-swatch-color .codwo-swatch-item.selected .codwo-color-swatch {
    box-shadow: 0 0 0 2px var(--codwo-primary);
}

/* Image */
.codwo-product-form-wrapper .codwo-swatch-image .codwo-image-swatch {
    display: block;
    width: calc(var(--codwo-swatch-size, 38px) * 1.5);
    height: calc(var(--codwo-swatch-size, 38px) * 1.5);
    object-fit: cover;
    border-radius: var(--codwo-radius-input);
    border: 2px solid var(--codwo-border);
    transition: border-color 0.15s ease;
}

.codwo-product-form-wrapper .codwo-swatch-image .codwo-swatch-item.selected .codwo-image-swatch {
    border-color: var(--codwo-primary);
}

/* Tick on colour + image swatches */
.codwo-product-form-wrapper .codwo-swatch-color .codwo-swatch-item.selected::after,
.codwo-product-form-wrapper .codwo-swatch-image .codwo-swatch-item.selected::after {
    content: "";
    position: absolute;
    top: -3px;
    inset-inline-end: -3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--codwo-primary) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
    box-shadow: 0 0 0 2px var(--codwo-bg);
    z-index: 2;
    pointer-events: none;
}

/* Button / label */
.codwo-product-form-wrapper .codwo-button-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: max(40px, var(--codwo-swatch-size, 40px));
    padding: 0 16px;
    border: 1px solid var(--codwo-field-border);
    border-radius: min(var(--codwo-radius-input), 12px);
    background: var(--codwo-field-bg);
    color: var(--codwo-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.codwo-product-form-wrapper .codwo-swatch-item:hover .codwo-button-swatch {
    border-color: var(--codwo-text-muted);
    background: var(--codwo-field-bg);
    color: var(--codwo-text);
}

.codwo-product-form-wrapper .codwo-swatch-item.selected .codwo-button-swatch {
    border-color: var(--codwo-primary);
    background: var(--codwo-primary);
    color: #fff;
    box-shadow: none;
}

/* Unavailable combination */
.codwo-product-form-wrapper .codwo-swatch-item.out-of-stock,
.codwo-product-form-wrapper .codwo-swatch-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.codwo-product-form-wrapper .codwo-swatch-item.out-of-stock::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 120%;
    background: var(--codwo-danger);
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 3;
    pointer-events: none;
}

.codwo-product-form-wrapper .codwo-variation-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--codwo-radius-input);
    border: 1px solid var(--codwo-border);
    background: var(--codwo-surface);
}

.codwo-product-form-wrapper .codwo-variation-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--codwo-text);
}

.codwo-product-form-wrapper .codwo-variation-stock {
    text-transform: none;
    letter-spacing: 0;
}

/* ==================================================================== *
 * 5. Quantity offers (bundle picker)
 * ==================================================================== */

.codwo-product-form-wrapper .codwo-promo-options {
    display: grid;
    gap: 12px;
}

.codwo-product-form-wrapper .codwo-promo-option {
    position: relative;
    display: grid;
    grid-template-columns: 22px 56px minmax(0, 1fr) auto;
    grid-template-areas: "radio media main price";
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    width: 100%;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 14px;
    border: 1.5px solid var(--codwo-border);
    border-radius: min(var(--codwo-radius-card), 14px);
    background: var(--codwo-bg);
    background-image: none;
    color: var(--codwo-text);
    text-align: start;
    font-size: 14px;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    cursor: pointer;
    overflow: visible;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.codwo-product-form-wrapper .codwo-promo-option::before {
    content: "";
    grid-area: radio;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--codwo-border-strong);
    background: var(--codwo-bg);
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.codwo-product-form-wrapper .codwo-promo-option:hover {
    border-color: var(--codwo-text-muted);
    background: var(--codwo-bg);
    box-shadow: none;
    transform: none;
}

.codwo-product-form-wrapper .codwo-promo-option.selected,
.codwo-product-form-wrapper .codwo-promo-option.selected:hover {
    border-color: var(--codwo-primary);
    background: var(--codwo-primary-soft);
    box-shadow: 0 0 0 1px var(--codwo-primary);
}

.codwo-product-form-wrapper .codwo-promo-option.selected::before {
    border-color: var(--codwo-primary);
    box-shadow: inset 0 0 0 4px var(--codwo-bg), inset 0 0 0 10px var(--codwo-primary);
}

.codwo-product-form-wrapper .codwo-promo-option:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--codwo-ring);
}

.codwo-product-form-wrapper .codwo-promo-option.disabled,
.codwo-product-form-wrapper .codwo-promo-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.codwo-product-form-wrapper .codwo-promo-option-media {
    grid-area: media;
    width: 56px;
    height: 56px;
    border-radius: min(var(--codwo-radius-input), 10px);
    border: 1px solid var(--codwo-border);
    background: #fff;
    overflow: hidden;
}

.codwo-product-form-wrapper .codwo-promo-option-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.codwo-product-form-wrapper .codwo-promo-option-main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}

.codwo-product-form-wrapper .codwo-promo-option-title {
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--codwo-text);
    unicode-bidi: plaintext;
}

.codwo-product-form-wrapper .codwo-promo-option-subtitle {
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--codwo-text-muted);
    unicode-bidi: plaintext;
}

.codwo-product-form-wrapper .codwo-promo-option-badge {
    display: inline-flex;
    width: auto;
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--codwo-success-soft);
    color: var(--codwo-success);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.5;
}

.codwo-product-form-wrapper .codwo-promo-option-badge:empty,
.codwo-product-form-wrapper .codwo-promo-option-old-price:empty,
.codwo-product-form-wrapper .codwo-promo-option-recommended:empty {
    display: none !important;
}

.codwo-product-form-wrapper .codwo-promo-option-pricing {
    grid-area: price;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: end;
}

.codwo-product-form-wrapper .codwo-promo-option-new-price {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--codwo-text);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.codwo-product-form-wrapper .codwo-promo-option-old-price {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--codwo-text-muted);
    text-decoration: line-through;
    white-space: nowrap;
}

/* "Most popular" / "Recommended" ribbon on the card edge */
.codwo-product-form-wrapper .codwo-promo-option-recommended {
    /* grid-area:auto → positioned against the card, not an implicit row. */
    grid-area: auto;
    position: absolute;
    top: -11px;
    inset-inline-end: 14px;
    display: none;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--codwo-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.7;
    white-space: nowrap;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.35);
}

.codwo-product-form-wrapper .codwo-promo-option.is-highlighted {
    margin-top: 4px;
}

.codwo-product-form-wrapper .codwo-promo-option.is-highlighted .codwo-promo-option-recommended {
    display: inline-flex;
}

/* ==================================================================== *
 * 6. Quantity stepper
 * ==================================================================== */

.codwo-product-form-wrapper .codwo-quantity-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.codwo-product-form-wrapper .codwo-quantity-section > label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--codwo-text);
}

.codwo-product-form-wrapper .codwo-quantity-controls {
    display: inline-grid;
    grid-template-columns: 44px 56px 44px;
    align-items: stretch;
    max-width: none;
    height: 46px;
    padding: 0;
    border: 1px solid var(--codwo-field-border);
    border-radius: min(var(--codwo-radius-input), 999px);
    background: var(--codwo-field-bg);
    overflow: hidden;
}

.codwo-product-form-wrapper .codwo-qty-minus,
.codwo-product-form-wrapper .codwo-qty-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--codwo-text);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.codwo-product-form-wrapper .codwo-qty-minus:hover,
.codwo-product-form-wrapper .codwo-qty-plus:hover {
    background: var(--codwo-primary-soft);
    color: var(--codwo-primary);
    border: 0;
}

.codwo-product-form-wrapper .codwo-qty-minus:focus-visible,
.codwo-product-form-wrapper .codwo-qty-plus:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--codwo-primary);
}

.codwo-product-form-wrapper .codwo-quantity-controls input {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-inline: 1px solid var(--codwo-border);
    border-radius: 0;
    background: transparent;
    color: var(--codwo-text);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-shadow: none;
}

/* ==================================================================== *
 * 7. Fields
 * ==================================================================== */

.codwo-product-form-wrapper .codwo-form-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.codwo-product-form-wrapper .codwo-field-group {
    margin: 0;
}

.codwo-product-form-wrapper .codwo-field-group > label,
.codwo-product-form-wrapper .codwo-simple-captcha label {
    display: block;
    margin: 0 0 6px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--codwo-text);
}

.codwo-product-form-wrapper .codwo-field-group .required {
    color: var(--codwo-danger);
    text-decoration: none;
    border: 0;
}

/* Field selector: :is() keeps one predictable specificity (0,3,1) for
   every state rule below, above the theme's input[type] rules. */
.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select),
.codwo-product-form-wrapper .codwo-captcha-input,
.codwo-product-form-wrapper .codwo-otp-input,
.codwo-product-form-wrapper .codwo-coupon-input {
    display: block;
    width: 100%;
    height: var(--codwo-input-height);
    min-height: 0;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--codwo-field-border);
    border-radius: var(--codwo-radius-input);
    background-color: var(--codwo-field-bg);
    color: var(--codwo-text);
    /* 16px keeps iOS Safari from zooming into the field. */
    font-size: 16px;
    line-height: 1.3;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.codwo-product-form-wrapper .codwo-field-group textarea {
    height: auto;
    min-height: 96px;
    padding-block: 12px;
    resize: vertical;
}

.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select)::placeholder,
.codwo-product-form-wrapper .codwo-coupon-input::placeholder {
    color: var(--codwo-text-muted);
    opacity: 0.75;
}

.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select):hover {
    border-color: var(--codwo-text-muted);
}

.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select):focus,
.codwo-product-form-wrapper .codwo-variation-select:focus,
.codwo-product-form-wrapper .codwo-captcha-input:focus,
.codwo-product-form-wrapper .codwo-otp-input:focus,
.codwo-product-form-wrapper .codwo-coupon-input:focus {
    border-color: var(--codwo-primary);
    box-shadow: 0 0 0 3px var(--codwo-ring);
    outline: none;
}

.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select).success {
    border-color: var(--codwo-success);
    box-shadow: none;
}

.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select).error,
.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select).error:focus {
    border-color: var(--codwo-danger);
    box-shadow: 0 0 0 3px var(--codwo-danger-soft);
}

.codwo-product-form-wrapper .codwo-field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--codwo-danger);
}

.codwo-product-form-wrapper .codwo-field-error:not(:empty) {
    margin-top: 6px;
}

.codwo-product-form-wrapper .codwo-field-error:not(:empty)::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==================================================================== *
 * 8. Panels: OTP, captcha, bank transfer, coupon
 * ==================================================================== */

.codwo-product-form-wrapper .codwo-otp-section,
.codwo-product-form-wrapper .codwo-captcha-wrapper,
.codwo-product-form-wrapper .codwo-bank-transfer-section,
.codwo-product-form-wrapper .codwo-coupon-section {
    margin: 0;
    padding: var(--codwo-panel-pad);
    border: 1px solid var(--codwo-border);
    border-radius: min(var(--codwo-radius-card), 14px);
    background: var(--codwo-surface);
}

.codwo-product-form-wrapper .codwo-otp-section.verified {
    border-color: var(--codwo-success);
    background: var(--codwo-success-soft);
}

.codwo-product-form-wrapper .codwo-otp-actions,
.codwo-product-form-wrapper .codwo-otp-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.codwo-product-form-wrapper .codwo-otp-verify-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.codwo-product-form-wrapper .codwo-otp-input {
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 700;
    direction: ltr;
}

.codwo-product-form-wrapper .codwo-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--codwo-button-bg);
    border-radius: min(var(--codwo-radius-button), 999px);
    background: var(--codwo-button-bg);
    color: var(--codwo-button-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.codwo-product-form-wrapper .codwo-btn-secondary:hover {
    background: var(--codwo-button-bg-hover);
    border-color: var(--codwo-button-bg-hover);
    color: var(--codwo-button-text);
    box-shadow: none;
    transform: none;
}

.codwo-product-form-wrapper .codwo-btn-secondary:focus-visible,
.codwo-product-form-wrapper .codwo-btn-link:focus-visible,
.codwo-product-form-wrapper .codwo-coupon-toggle:focus-visible {
    outline: 3px solid var(--codwo-ring);
    outline-offset: 2px;
}

.codwo-product-form-wrapper .codwo-btn-link {
    padding: 6px 2px;
    border: 0;
    background: transparent;
    color: var(--codwo-primary);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.codwo-product-form-wrapper .codwo-status-text {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.codwo-product-form-wrapper .codwo-status-text.success { color: var(--codwo-success); }
.codwo-product-form-wrapper .codwo-status-text.error { color: var(--codwo-danger); }
.codwo-product-form-wrapper .codwo-status-text.loading { color: var(--codwo-primary); }

/* Simple (math) captcha */
.codwo-product-form-wrapper .codwo-captcha-label {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 10px;
}

.codwo-product-form-wrapper .codwo-captcha-controls {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.codwo-product-form-wrapper .codwo-captcha-input {
    max-width: 160px;
    text-align: center;
    font-weight: 700;
}

.codwo-product-form-wrapper .codwo-refresh-captcha {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border: 1px solid var(--codwo-field-border);
    border-radius: var(--codwo-radius-input);
    background: var(--codwo-field-bg);
    color: var(--codwo-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Bank transfer */
.codwo-product-form-wrapper .codwo-bank-transfer-section {
    border-color: var(--codwo-primary);
    background: var(--codwo-primary-soft);
}

.codwo-product-form-wrapper .codwo-bank-transfer-details {
    margin: 0 0 10px;
    padding: 12px;
    border: 1px dashed var(--codwo-border-strong);
    border-radius: var(--codwo-radius-input);
    background: var(--codwo-bg);
    color: var(--codwo-text);
    font-size: 14px;
    line-height: 1.6;
}

.codwo-product-form-wrapper .codwo-field-bank-transfer-proof input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1.5px dashed var(--codwo-border-strong);
    border-radius: var(--codwo-radius-input);
    background: var(--codwo-bg);
    font-size: 14px;
    cursor: pointer;
}

/* Coupon: collapsed link → panel */
.codwo-product-form-wrapper .codwo-coupon-toggle-wrap {
    display: flex;
    justify-content: flex-start;
    margin: 0;
}

.codwo-product-form-wrapper .codwo-coupon-toggle,
.codwo-product-form-wrapper .codwo-coupon-toggle:hover,
.codwo-product-form-wrapper .codwo-coupon-toggle:focus,
.codwo-product-form-wrapper .codwo-coupon-toggle:active {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
    padding: 6px 2px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--codwo-primary) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: underline !important;
    text-decoration-style: dashed !important;
    text-underline-offset: 4px;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    transform: none !important;
}

.codwo-product-form-wrapper .codwo-coupon-toggle svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.codwo-product-form-wrapper .codwo-coupon-section.is-hidden {
    display: none !important;
}

.codwo-product-form-wrapper .codwo-coupon-section:not(.is-hidden) {
    animation: codwo-reveal 0.2s ease-out;
}

@keyframes codwo-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.codwo-product-form-wrapper .codwo-coupon-section > h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.codwo-product-form-wrapper .codwo-coupon-input-group {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0;
}

.codwo-product-form-wrapper .codwo-coupon-input {
    min-width: 0;
    text-transform: uppercase;
}

.codwo-product-form-wrapper .codwo-coupon-input-group .codwo-btn-secondary {
    width: auto;
    min-height: var(--codwo-input-height);
    padding-inline: 18px;
    white-space: nowrap;
}

.codwo-product-form-wrapper .codwo-coupon-status:not(:empty) {
    margin-top: 8px;
}

.codwo-product-form-wrapper .codwo-btn-secondary.codwo-remove-coupon {
    border-color: var(--codwo-danger);
    background: var(--codwo-danger);
}

/* ==================================================================== *
 * 9. Bundles (frequently bought together) + add-ons
 * ==================================================================== */

.codwo-product-form-wrapper .codwo-fbt-section,
.codwo-product-form-wrapper .codwo-extras-section {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.codwo-product-form-wrapper .codwo-fbt-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 12px;
    padding: 0;
}

.codwo-product-form-wrapper .codwo-fbt-head::before {
    display: none;
}

.codwo-product-form-wrapper .codwo-fbt-title {
    margin: 0 !important;
}

.codwo-product-form-wrapper .codwo-fbt-subtitle {
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: var(--codwo-text-muted) !important;
}

.codwo-product-form-wrapper .codwo-fbt-grid,
.codwo-product-form-wrapper .codwo-extras-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.codwo-product-form-wrapper .codwo-fbt-card,
.codwo-product-form-wrapper .codwo-extra-row {
    position: relative;
    display: grid;
    grid-template-columns: 22px 60px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border: 1.5px solid var(--codwo-border);
    border-radius: min(var(--codwo-radius-card), 12px);
    background: var(--codwo-bg);
    color: var(--codwo-text);
    font-weight: 400;
    cursor: pointer;
    transform: none;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.codwo-product-form-wrapper .codwo-extra-row {
    grid-template-columns: 22px 36px minmax(0, 1fr) auto;
}

.codwo-product-form-wrapper .codwo-fbt-card:hover,
.codwo-product-form-wrapper .codwo-extra-row:hover {
    border-color: var(--codwo-text-muted);
    transform: none;
    box-shadow: none;
}

.codwo-product-form-wrapper .codwo-fbt-card.is-selected,
.codwo-product-form-wrapper .codwo-extra-row.is-selected,
.codwo-product-form-wrapper .codwo-fbt-card:has(input:checked),
.codwo-product-form-wrapper .codwo-extra-row:has(input:checked) {
    border-color: var(--codwo-primary);
    background: var(--codwo-primary-soft);
    box-shadow: none;
}

/* Custom checkbox */
.codwo-product-form-wrapper .codwo-fbt-checkbox,
.codwo-product-form-wrapper .codwo-extra-checkbox,
.codwo-product-form-wrapper .codwo-upsell-item-checkbox {
    position: relative !important;
    top: auto !important;
    inset-inline-end: auto !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid var(--codwo-border-strong) !important;
    border-radius: 6px !important;
    background: var(--codwo-bg) !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-grid !important;
    place-items: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.codwo-product-form-wrapper .codwo-fbt-checkbox:checked,
.codwo-product-form-wrapper .codwo-extra-checkbox:checked,
.codwo-product-form-wrapper .codwo-upsell-item-checkbox:checked {
    border-color: var(--codwo-primary) !important;
    background: var(--codwo-primary) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat !important;
}

.codwo-product-form-wrapper .codwo-fbt-checkbox::after,
.codwo-product-form-wrapper .codwo-extra-checkbox::after {
    display: none !important;
}

.codwo-product-form-wrapper .codwo-fbt-checkbox:focus-visible,
.codwo-product-form-wrapper .codwo-extra-checkbox:focus-visible {
    outline: 3px solid var(--codwo-ring) !important;
    outline-offset: 2px;
}

.codwo-product-form-wrapper .codwo-fbt-image {
    position: relative;
    display: block;
    width: 60px;
    height: 60px;
    aspect-ratio: auto;
    border-radius: min(var(--codwo-radius-input), 10px);
    border: 1px solid var(--codwo-border);
    background: #fff;
    overflow: visible;
}

.codwo-product-form-wrapper .codwo-fbt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transform: none !important;
}

.codwo-product-form-wrapper .codwo-fbt-badge {
    position: absolute;
    top: -8px;
    bottom: auto;
    inset-inline-start: -8px;
    inset-inline-end: auto;
    z-index: 1;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--codwo-accent);
    color: #fff;
    text-align: center;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.5;
    box-shadow: none;
}

.codwo-product-form-wrapper .codwo-fbt-badge::before {
    display: none;
}

.codwo-product-form-wrapper .codwo-fbt-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 0;
}

.codwo-product-form-wrapper .codwo-fbt-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--codwo-text);
}

.codwo-product-form-wrapper .codwo-fbt-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.codwo-product-form-wrapper .codwo-fbt-new {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--codwo-text);
}

.codwo-product-form-wrapper .codwo-fbt-old {
    font-size: 12px;
    color: var(--codwo-text-muted);
    text-decoration: line-through;
}

.codwo-product-form-wrapper .codwo-fbt-bundle-hint {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--codwo-radius-input);
    background: var(--codwo-success-soft);
    color: var(--codwo-success);
    font-size: 13px;
    font-weight: 700;
}

.codwo-product-form-wrapper .codwo-extra-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--codwo-primary-soft);
    color: var(--codwo-primary);
    font-size: 15px;
}

.codwo-product-form-wrapper .codwo-extra-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.codwo-product-form-wrapper .codwo-extra-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--codwo-text);
}

.codwo-product-form-wrapper .codwo-extra-description {
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--codwo-text-muted);
}

.codwo-product-form-wrapper .codwo-extra-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--codwo-text);
    white-space: nowrap;
}

/* ==================================================================== *
 * 10. Order summary
 * ==================================================================== */

.codwo-product-form-wrapper .codwo-order-summary {
    margin: 0;
    padding: 6px 16px;
    border: 1px solid var(--codwo-border);
    border-radius: min(var(--codwo-radius-card), 14px);
    background: var(--codwo-surface);
}

.codwo-product-form-wrapper .codwo-summary-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border: 0;
    border-block-end: 1px dashed var(--codwo-border-strong);
    font-size: 14px;
    color: var(--codwo-text-muted);
}

.codwo-product-form-wrapper .codwo-summary-row > :last-child {
    color: var(--codwo-text);
    font-weight: 600;
    text-align: end;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

.codwo-product-form-wrapper .codwo-summary-row:last-child {
    border-block-end: 0;
}

.codwo-product-form-wrapper .codwo-discount-row,
.codwo-product-form-wrapper .codwo-discount-row > :last-child,
.codwo-product-form-wrapper .codwo-coupon-discount-row,
.codwo-product-form-wrapper .codwo-coupon-discount-row > :last-child,
.codwo-product-form-wrapper .codwo-fbt-bundle-row,
.codwo-product-form-wrapper .codwo-fbt-bundle-row > :last-child {
    color: var(--codwo-success);
    font-weight: 700;
}

.codwo-product-form-wrapper .codwo-total-row {
    margin: 0;
    padding: 12px 0 10px;
    border-block-start: 0;
    font-size: 15px;
    color: var(--codwo-text);
}

.codwo-product-form-wrapper .codwo-total-row strong:first-child {
    font-weight: 700;
}

.codwo-product-form-wrapper .codwo-order-summary .codwo-total-price {
    font-size: 21px;
    font-weight: 800;
    color: var(--codwo-primary);
}

/* ==================================================================== *
 * 11. Messages (success / error)
 * ==================================================================== */

.codwo-product-form-wrapper .codwo-form-messages {
    margin: 0;
}

.codwo-product-form-wrapper .codwo-form-messages:empty {
    display: none;
}

.codwo-product-form-wrapper .codwo-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: min(var(--codwo-radius-card), 12px);
    font-size: 14px;
    line-height: 1.5;
    animation: codwo-reveal 0.2s ease-out;
}

.codwo-product-form-wrapper .codwo-message__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: currentColor;
}

.codwo-product-form-wrapper .codwo-message__icon::before {
    content: "";
    width: 14px;
    height: 14px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.codwo-product-form-wrapper .codwo-message.success .codwo-message__icon::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.codwo-product-form-wrapper .codwo-message__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.codwo-product-form-wrapper .codwo-message__title {
    font-weight: 700;
    color: inherit;
}

.codwo-product-form-wrapper .codwo-message__meta {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.codwo-product-form-wrapper .codwo-message__note {
    font-size: 13px;
    opacity: 0.9;
}

.codwo-product-form-wrapper .codwo-message.success {
    color: var(--codwo-success);
    background: var(--codwo-success-soft);
    border-color: var(--codwo-success);
}

.codwo-product-form-wrapper .codwo-message.error {
    color: var(--codwo-danger);
    background: var(--codwo-danger-soft);
    border-color: var(--codwo-danger);
}

.codwo-product-form-wrapper .codwo-message--order {
    padding: 16px;
}

.codwo-product-form-wrapper .codwo-message--order .codwo-message__icon {
    width: 32px;
    height: 32px;
}

/* ==================================================================== *
 * 12. Call to action
 * ==================================================================== */

.codwo-product-form-wrapper .codwo-submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--codwo-cta-height);
    margin: 0;
    padding: 8px 20px;
    border: 0;
    border-radius: var(--codwo-radius-button);
    background: var(--codwo-button-bg);
    color: var(--codwo-button-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: var(--codwo-shadow-cta);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.codwo-product-form-wrapper .codwo-submit-btn:hover {
    background: var(--codwo-button-bg-hover);
    color: var(--codwo-button-text);
    border: 0;
    transform: translateY(-1px);
    box-shadow: var(--codwo-shadow-cta);
}

.codwo-product-form-wrapper .codwo-submit-btn:active {
    transform: translateY(0) scale(0.995);
}

.codwo-product-form-wrapper .codwo-submit-btn:focus-visible {
    outline: 3px solid var(--codwo-ring);
    outline-offset: 3px;
}

.codwo-product-form-wrapper .codwo-submit-btn:disabled {
    opacity: 0.8;
    cursor: progress;
    transform: none;
}

.codwo-product-form-wrapper .codwo-btn-text {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
}

.codwo-product-form-wrapper .codwo-btn-sep {
    display: none;
}

.codwo-product-form-wrapper .codwo-btn-price {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--codwo-price-chip);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.codwo-product-form-wrapper .codwo-btn-loading {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.codwo-product-form-wrapper .codwo-btn-loading[style*="block"] {
    display: inline-flex !important;
}

.codwo-product-form-wrapper .codwo-spinner {
    display: inline-block;
    flex: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    opacity: 0.9;
    animation: codwo-spin 0.7s linear infinite;
}

/* Attention sweep — only for skins that opt in (cod, card). */
.codwo-skin-cod.codwo-product-form-wrapper .codwo-submit-btn::after,
.codwo-skin-card.codwo-product-form-wrapper .codwo-submit-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 45%, transparent 60%);
    transform: translateX(-120%);
    animation: codwo-shine 3.6s ease-in-out 1.2s infinite;
    pointer-events: none;
}

@keyframes codwo-shine {
    0%, 62% { transform: translateX(-120%); }
    82%, 100% { transform: translateX(120%); }
}

@keyframes codwo-spin {
    to { transform: rotate(360deg); }
}

.codwo-product-form-wrapper .codwo-cta-note {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: -8px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--codwo-text-muted);
    text-align: center;
}

.codwo-product-form-wrapper .codwo-cta-note svg {
    flex: none;
    color: var(--codwo-success);
}

/* WhatsApp + add-to-cart */
.codwo-product-form-wrapper .codwo-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 18px;
    border: 0 !important;
    border-radius: var(--codwo-radius-button);
    background: #25d366 !important;
    color: #fff !important;
    font-size: 15.5px;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
}

.codwo-product-form-wrapper .codwo-whatsapp-btn:hover {
    background: #1ebe5d !important;
    transform: translateY(-1px);
}

.codwo-product-form-wrapper .codwo-woo-cart-fallback {
    margin: 14px 0 0;
    padding: 0;
}

.codwo-product-form-wrapper .codwo-woo-cart-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--codwo-text-muted);
}

.codwo-product-form-wrapper .codwo-add-to-cart-btn {
    min-height: 48px;
    border-radius: var(--codwo-radius-button);
    border: 1.5px solid var(--codwo-field-border) !important;
    background: var(--codwo-bg) !important;
    color: var(--codwo-text) !important;
    font-size: 15px;
    font-weight: 700;
}

.codwo-product-form-wrapper .codwo-add-to-cart-btn:hover,
.codwo-product-form-wrapper .codwo-add-to-cart-btn:focus-visible {
    border-color: var(--codwo-text) !important;
    background: var(--codwo-bg) !important;
    transform: none;
}

/* ==================================================================== *
 * 13. Trust row
 * ==================================================================== */

.codwo-product-form-wrapper .codwo-trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 8px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-block-start: 1px solid var(--codwo-border);
}

.codwo-product-form-wrapper .codwo-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 4px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--codwo-text);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.codwo-product-form-wrapper .codwo-badge-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--codwo-primary-soft);
    color: var(--codwo-primary);
    font-size: 16px;
}

/* ==================================================================== *
 * 14. Modals (upsell, swipe captcha)
 * ==================================================================== */

.codwo-upsell-modal-overlay,
.codwo-swipe-captcha-modal-overlay {
    background: rgba(15, 20, 30, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.codwo-product-form-wrapper .codwo-upsell-modal,
.codwo-product-form-wrapper .codwo-swipe-captcha-modal {
    border: 0;
    border-radius: min(var(--codwo-radius-card), 18px);
    background: var(--codwo-bg);
    color: var(--codwo-text);
    box-shadow: 0 30px 60px -20px rgba(10, 20, 32, 0.45);
    padding: 24px;
    animation: codwo-pop 0.22s ease-out;
}

@keyframes codwo-pop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.codwo-product-form-wrapper .codwo-upsell-modal h3,
.codwo-product-form-wrapper .codwo-swipe-captcha-modal h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--codwo-text);
}

.codwo-product-form-wrapper .codwo-upsell-close {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    left: auto;
    right: auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--codwo-surface);
    color: var(--codwo-text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.codwo-product-form-wrapper .codwo-upsell-product-item {
    grid-template-columns: 22px 64px minmax(0, 1fr);
    padding: 10px 12px;
    border: 1.5px solid var(--codwo-border);
    border-radius: min(var(--codwo-radius-card), 12px);
    background: var(--codwo-bg);
}

.codwo-product-form-wrapper .codwo-upsell-product-item:has(input:checked) {
    border-color: var(--codwo-primary);
    background: var(--codwo-primary-soft);
}

.codwo-product-form-wrapper .codwo-upsell-product-image img {
    width: 64px;
    height: 64px;
    border-radius: min(var(--codwo-radius-input), 10px);
}

.codwo-product-form-wrapper .codwo-upsell-product-badge {
    width: fit-content;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--codwo-accent-soft);
    color: var(--codwo-accent);
}

.codwo-product-form-wrapper .codwo-upsell-new-price {
    color: var(--codwo-text);
    font-weight: 800;
}

.codwo-product-form-wrapper .codwo-upsell-actions {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.codwo-product-form-wrapper .codwo-upsell-actions .codwo-btn-secondary {
    width: 100%;
    min-height: 50px;
    font-size: 15.5px;
}

.codwo-product-form-wrapper .codwo-swipe-thumb {
    background: var(--codwo-button-bg);
    color: var(--codwo-button-text);
}

.codwo-product-form-wrapper .codwo-swipe-fill {
    background: var(--codwo-success-soft);
}

/* ==================================================================== *
 * 15. Sticky mobile order bar (skins opt in: --codwo-sticky-cta: 1)
 * ==================================================================== */

.codwo-sticky-cta {
    position: fixed;
    inset-inline: 0;
    bottom: var(--codwo-sticky-offset, 0px);
    z-index: 9990;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--codwo-bg, #fff);
    color: var(--codwo-text, #101828);
    border-block-start: 1px solid var(--codwo-border, #e3e7ed);
    box-shadow: 0 -10px 30px -18px rgba(16, 24, 40, 0.45);
    transform: translateY(120%);
    transition: transform 0.25s ease;
}

.codwo-sticky-cta.is-visible {
    transform: none;
}

.codwo-sticky-cta__info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.codwo-sticky-cta__img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--codwo-border, #e3e7ed);
    flex: none;
}

.codwo-sticky-cta__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.codwo-sticky-cta__label {
    font-size: 11.5px;
    color: var(--codwo-text-muted, #5b6676);
}

.codwo-sticky-cta__price {
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.codwo-sticky-cta__btn {
    flex: none;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--codwo-radius-button, 12px);
    background: var(--codwo-button-bg, #0f4c81);
    color: var(--codwo-button-text, #fff);
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 10px 20px -12px rgba(16, 24, 40, 0.6);
}

.codwo-sticky-cta__btn:focus-visible {
    outline: 3px solid var(--codwo-ring, rgba(15, 76, 129, 0.3));
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .codwo-sticky-cta {
        display: flex;
    }
}

/* ==================================================================== *
 * 16. Skin: MODERN — clean, confident, blue (default)
 * ==================================================================== */

.codwo-skin-modern.codwo-product-form-wrapper {
    --codwo-bg: #ffffff;
    --codwo-surface: #f6f8fb;
    --codwo-border: #e2e8f0;
    --codwo-border-strong: #cbd5e1;
    --codwo-text: #0f1b2d;
    --codwo-text-muted: #55657a;
    --codwo-primary: #0f4c81;
    --codwo-button-bg: #0f4c81;
    --codwo-accent: #ef6c00;
    --codwo-success: #1b8a5a;
    --codwo-radius-card: 18px;
    --codwo-radius-input: 12px;
    --codwo-radius-button: 14px;
    --codwo-sticky-cta: 1;
}

.codwo-skin-modern.codwo-product-form-wrapper .codwo-product-header {
    background: linear-gradient(180deg, var(--codwo-primary-soft), transparent), var(--codwo-surface);
}

.codwo-skin-modern.codwo-product-form-wrapper .codwo-cta-note {
    display: flex;
}

/* ==================================================================== *
 * 17. Skin: MINIMAL — monochrome, hairlines, line inputs
 * ==================================================================== */

.codwo-skin-minimal.codwo-product-form-wrapper {
    --codwo-bg: #ffffff;
    --codwo-surface: #fafafa;
    --codwo-border: #ececec;
    --codwo-border-strong: #d4d4d4;
    --codwo-text: #0a0a0a;
    --codwo-text-muted: #6b6b6b;
    --codwo-primary: #0a0a0a;
    --codwo-button-bg: #0a0a0a;
    --codwo-accent: #0a0a0a;
    --codwo-success: #15803d;
    --codwo-radius-card: 8px;
    --codwo-radius-input: 0px;
    --codwo-radius-button: 6px;
    --codwo-input-height: 46px;
    --codwo-gap: 22px;
    --codwo-shadow-card: none;
    --codwo-shadow-cta: none;
    --codwo-ring: rgba(10, 10, 10, 0.12);

    border-color: #e5e5e5;
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-variations-section > h4,
.codwo-skin-minimal.codwo-product-form-wrapper .codwo-promo-selector-section > h4,
.codwo-skin-minimal.codwo-product-form-wrapper .codwo-coupon-section > h4,
.codwo-skin-minimal.codwo-product-form-wrapper .codwo-extras-title,
.codwo-skin-minimal.codwo-product-form-wrapper .codwo-fbt-title,
.codwo-skin-minimal.codwo-product-form-wrapper .codwo-field-group > label,
.codwo-skin-minimal.codwo-product-form-wrapper .codwo-variation-group > label,
.codwo-skin-minimal.codwo-product-form-wrapper .codwo-quantity-section > label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--codwo-text-muted);
}

.codwo-rtl.codwo-skin-minimal.codwo-product-form-wrapper .codwo-field-group > label,
.codwo-rtl.codwo-skin-minimal.codwo-product-form-wrapper .codwo-variations-section > h4,
.codwo-rtl.codwo-skin-minimal.codwo-product-form-wrapper .codwo-promo-selector-section > h4,
.codwo-rtl.codwo-skin-minimal.codwo-product-form-wrapper .codwo-quantity-section > label,
.codwo-rtl.codwo-skin-minimal.codwo-product-form-wrapper .codwo-variation-group > label {
    font-size: 13px;
    letter-spacing: 0;
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select) {
    padding-inline: 0;
    border: 0;
    border-block-end: 1.5px solid var(--codwo-border-strong);
    border-radius: 0;
    background-color: transparent;
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select):focus {
    border-block-end: 2px solid var(--codwo-text);
    box-shadow: none;
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select).error {
    border-block-end-color: var(--codwo-danger);
    box-shadow: none;
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-product-header,
.codwo-skin-minimal.codwo-product-form-wrapper .codwo-order-summary {
    background: transparent;
    border-radius: 0;
    border-inline: 0;
    padding-inline: 0;
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-promo-option {
    border-width: 1px;
    border-radius: 6px;
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-promo-option.selected {
    background: transparent;
    box-shadow: 0 0 0 1px var(--codwo-text);
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-promo-option-media {
    display: none;
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-promo-option {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    grid-template-areas: "radio main price";
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-promo-option-recommended {
    background: var(--codwo-text);
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-promo-option-badge {
    background: transparent;
    padding: 0;
    color: var(--codwo-success);
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-badge-icon {
    width: auto;
    height: auto;
    background: transparent;
    color: var(--codwo-text);
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-badge {
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--codwo-text-muted);
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-trust-badges {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-extra-icon {
    background: transparent;
    color: var(--codwo-text);
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-fbt-card.is-selected,
.codwo-skin-minimal.codwo-product-form-wrapper .codwo-extra-row.is-selected,
.codwo-skin-minimal.codwo-product-form-wrapper .codwo-fbt-card:has(input:checked),
.codwo-skin-minimal.codwo-product-form-wrapper .codwo-extra-row:has(input:checked) {
    background: transparent;
    border-color: var(--codwo-text);
}

.codwo-skin-minimal.codwo-product-form-wrapper .codwo-order-summary .codwo-total-price {
    color: var(--codwo-text);
}

/* ==================================================================== *
 * 18. Skin: COD CONVERSION — urgency, reassurance, big green CTA
 * ==================================================================== */

.codwo-skin-cod.codwo-product-form-wrapper {
    --codwo-bg: #ffffff;
    --codwo-surface: #f5f8ff;
    --codwo-border: #e2e8f0;
    --codwo-border-strong: #cbd5e1;
    --codwo-text: #0f172a;
    --codwo-text-muted: #5b6b82;
    --codwo-primary: #1d4ed8;
    --codwo-button-bg: #16a34a;
    --codwo-accent: #f59e0b;
    --codwo-success: #15803d;
    --codwo-danger: #dc2626;
    --codwo-radius-card: 16px;
    --codwo-radius-input: 12px;
    --codwo-radius-button: 14px;
    --codwo-input-height: 52px;
    --codwo-cta-height: 60px;
    --codwo-gap: 16px;
    --codwo-sticky-cta: 1;
    --codwo-shadow-cta: 0 14px 26px -12px rgba(22, 163, 74, 0.65);

    border-width: 2px;
    border-color: var(--codwo-primary);
    padding-top: calc(var(--codwo-card-pad) + 4px);
}

.codwo-skin-cod.codwo-product-form-wrapper::before {
    content: "";
    position: absolute;
    inset: -2px -2px auto;
    height: 6px;
    border-radius: var(--codwo-radius-card) var(--codwo-radius-card) 0 0;
    background: linear-gradient(90deg, var(--codwo-primary), var(--codwo-button-bg));
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-product-header {
    border-color: transparent;
    background: var(--codwo-surface);
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-submit-btn {
    font-size: 18px;
    animation: codwo-cod-nudge 5s ease-in-out 3s infinite;
}

@keyframes codwo-cod-nudge {
    0%, 90%, 100% { transform: none; }
    93% { transform: translateY(-2px) scale(1.01); }
    96% { transform: none; }
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-submit-btn:hover {
    animation: none;
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-cta-note {
    display: flex;
    padding: 8px 12px;
    margin-top: -6px;
    border-radius: 10px;
    background: var(--codwo-success-soft);
    color: var(--codwo-success);
}

/* Field icons */
.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-name :is(input[type="text"], input[type="tel"], input[type="email"], input:not([type])),
.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-phone :is(input[type="text"], input[type="tel"], input[type="email"], input:not([type])),
.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-address :is(input[type="text"], input[type="tel"], input[type="email"], input:not([type])),
.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-city :is(input[type="text"], input[type="tel"], input[type="email"], input:not([type])),
.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-email :is(input[type="text"], input[type="tel"], input[type="email"], input:not([type])) {
    padding-inline-start: 44px;
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: left 14px center;
}

.codwo-rtl.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input:not([type])) {
    background-position: right 14px center;
}

/* The phone field is direction:ltr (digits), so logical padding would land on the left. */
.codwo-rtl.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-phone input[type="tel"] {
    padding-right: 44px;
    padding-left: 14px;
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-name :is(input[type="text"], input[type="tel"], input[type="email"], input:not([type])) {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-phone :is(input[type="text"], input[type="tel"], input[type="email"], input:not([type])) {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-address :is(input[type="text"], input[type="tel"], input[type="email"], input:not([type])) {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.1 7-12a7 7 0 0 0-14 0c0 5.9 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-city :is(input[type="text"], input[type="tel"], input[type="email"], input:not([type])) {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V8l7-5 7 5v13M9 21v-6h6v6'/%3E%3C/svg%3E");
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-field-email :is(input[type="text"], input[type="tel"], input[type="email"], input:not([type])) {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-promo-option.selected {
    border-color: var(--codwo-button-bg);
    background: var(--codwo-success-soft);
    box-shadow: 0 0 0 1px var(--codwo-button-bg);
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-promo-option.selected::before {
    border-color: var(--codwo-button-bg);
    box-shadow: inset 0 0 0 4px var(--codwo-bg), inset 0 0 0 10px var(--codwo-button-bg);
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-trust-badges {
    padding: 14px 10px;
    border: 1.5px dashed var(--codwo-success);
    border-radius: 14px;
    background: var(--codwo-success-soft);
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-badge-icon {
    background: var(--codwo-bg);
    color: var(--codwo-success);
    box-shadow: 0 2px 6px -2px rgba(21, 128, 61, 0.35);
}

.codwo-skin-cod.codwo-product-form-wrapper .codwo-order-summary .codwo-total-price,
.codwo-skin-cod.codwo-product-form-wrapper .codwo-product-header__total-value {
    color: var(--codwo-button-bg);
}

/* ==================================================================== *
 * 19. Skin: EDITORIAL / LUXURY — cream, hairlines, quiet type
 * ==================================================================== */

.codwo-skin-editorial.codwo-product-form-wrapper {
    --codwo-bg: #fffdf8;
    --codwo-surface: #f6f1e7;
    --codwo-border: #e7dfcf;
    --codwo-border-strong: #d5cab4;
    --codwo-text: #1a1714;
    --codwo-text-muted: #7c7466;
    --codwo-primary: #1a1714;
    --codwo-button-bg: #1a1714;
    --codwo-button-text: #fbf6ea;
    --codwo-accent: #a16207;
    --codwo-success: #3f6b3f;
    --codwo-danger: #b3261e;
    --codwo-radius-card: 4px;
    --codwo-radius-input: 2px;
    --codwo-radius-button: 2px;
    --codwo-input-height: 50px;
    --codwo-card-pad: 30px;
    --codwo-gap: 24px;
    --codwo-shadow-card: 0 30px 60px -40px rgba(26, 23, 20, 0.35);
    --codwo-shadow-cta: none;
    --codwo-ring: rgba(161, 98, 7, 0.28);
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-form-heading__title,
.codwo-skin-editorial.codwo-product-form-wrapper .codwo-header-stacked > .codwo-form-title {
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.01em;
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-variations-section > h4,
.codwo-skin-editorial.codwo-product-form-wrapper .codwo-promo-selector-section > h4,
.codwo-skin-editorial.codwo-product-form-wrapper .codwo-extras-title,
.codwo-skin-editorial.codwo-product-form-wrapper .codwo-fbt-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--codwo-accent);
}

.codwo-rtl.codwo-skin-editorial.codwo-product-form-wrapper .codwo-variations-section > h4,
.codwo-rtl.codwo-skin-editorial.codwo-product-form-wrapper .codwo-promo-selector-section > h4,
.codwo-rtl.codwo-skin-editorial.codwo-product-form-wrapper .codwo-extras-title,
.codwo-rtl.codwo-skin-editorial.codwo-product-form-wrapper .codwo-fbt-title {
    font-size: 14px;
    letter-spacing: 0;
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-variations-section > h4::after,
.codwo-skin-editorial.codwo-product-form-wrapper .codwo-promo-selector-section > h4::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--codwo-border);
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-field-group > label {
    font-weight: 500;
    color: var(--codwo-text-muted);
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-product-header {
    border-radius: 2px;
    background: var(--codwo-surface);
    border-color: transparent;
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-product-header__total-value,
.codwo-skin-editorial.codwo-product-form-wrapper .codwo-order-summary .codwo-total-price {
    color: var(--codwo-text);
    font-weight: 600;
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-promo-option {
    border-width: 1px;
    border-radius: 2px;
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-promo-option.selected {
    background: var(--codwo-surface);
    box-shadow: inset 0 0 0 1px var(--codwo-text);
    border-color: var(--codwo-text);
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-promo-option-recommended {
    border-radius: 0;
    background: var(--codwo-accent);
    letter-spacing: 0.04em;
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-submit-btn {
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: inset 0 -3px 0 var(--codwo-accent);
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-btn-price {
    background: transparent;
    border-inline-start: 1px solid rgba(251, 246, 234, 0.35);
    border-radius: 0;
    padding-block: 0;
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-badge-icon {
    background: transparent;
    border: 1px solid var(--codwo-border-strong);
    color: var(--codwo-accent);
}

.codwo-skin-editorial.codwo-product-form-wrapper .codwo-button-swatch,
.codwo-skin-editorial.codwo-product-form-wrapper .codwo-quantity-controls {
    border-radius: 2px;
}

/* ==================================================================== *
 * 20. Skin: CLASSIC — navy, gold rules, trustworthy
 * ==================================================================== */

.codwo-skin-classic.codwo-product-form-wrapper {
    --codwo-bg: #ffffff;
    --codwo-surface: #f5f7fb;
    --codwo-border: #d8dee6;
    --codwo-border-strong: #b9c2cf;
    --codwo-text: #16243b;
    --codwo-text-muted: #51627a;
    --codwo-primary: #1f3a5f;
    --codwo-button-bg: #1f3a5f;
    --codwo-accent: #b8860b;
    --codwo-success: #2e7d32;
    --codwo-radius-card: 6px;
    --codwo-radius-input: 4px;
    --codwo-radius-button: 4px;
    --codwo-shadow-card: 0 2px 10px rgba(31, 58, 95, 0.08);

    border-block-start: 4px solid var(--codwo-primary);
}

.codwo-skin-classic.codwo-product-form-wrapper .codwo-variations-section > h4,
.codwo-skin-classic.codwo-product-form-wrapper .codwo-promo-selector-section > h4,
.codwo-skin-classic.codwo-product-form-wrapper .codwo-extras-title,
.codwo-skin-classic.codwo-product-form-wrapper .codwo-fbt-title,
.codwo-skin-classic.codwo-product-form-wrapper .codwo-form-heading__title {
    padding-block-end: 8px;
    border-block-end: 2px solid var(--codwo-accent);
    color: var(--codwo-primary);
}

.codwo-skin-classic.codwo-product-form-wrapper .codwo-product-header {
    border-radius: 4px;
    border-inline-start: 4px solid var(--codwo-accent);
    background: var(--codwo-surface);
}

.codwo-skin-classic.codwo-product-form-wrapper .codwo-promo-option {
    border-radius: 4px;
}

.codwo-skin-classic.codwo-product-form-wrapper .codwo-promo-option-recommended {
    border-radius: 2px;
    background: var(--codwo-accent);
}

.codwo-skin-classic.codwo-product-form-wrapper .codwo-submit-btn {
    box-shadow: inset 0 -4px 0 var(--codwo-accent), 0 8px 18px -12px rgba(31, 58, 95, 0.7);
}

.codwo-skin-classic.codwo-product-form-wrapper .codwo-order-summary {
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--codwo-bg);
}

.codwo-skin-classic.codwo-product-form-wrapper .codwo-summary-row {
    padding: 9px 14px;
    border-block-end: 1px solid var(--codwo-border);
}

.codwo-skin-classic.codwo-product-form-wrapper .codwo-summary-row:nth-child(even) {
    background: var(--codwo-surface);
}

.codwo-skin-classic.codwo-product-form-wrapper .codwo-total-row {
    background: var(--codwo-primary) !important;
    color: #fff;
}

.codwo-skin-classic.codwo-product-form-wrapper .codwo-total-row strong,
.codwo-skin-classic.codwo-product-form-wrapper .codwo-order-summary .codwo-total-price {
    color: #fff;
}

.codwo-skin-classic.codwo-product-form-wrapper .codwo-badge-icon {
    border-radius: 4px;
    background: var(--codwo-primary);
    color: #fff;
}

/* ==================================================================== *
 * 21. Skin: BOLD — neo-brutalist yellow/black, hard shadows
 * ==================================================================== */

.codwo-skin-bold.codwo-product-form-wrapper {
    --codwo-bg: #fffbe6;
    --codwo-surface: #ffffff;
    --codwo-border: #0a0a0a;
    --codwo-border-strong: #0a0a0a;
    --codwo-text: #0a0a0a;
    --codwo-text-muted: #2f2f2f;
    --codwo-primary: #0a0a0a;
    --codwo-button-bg: #0a0a0a;
    --codwo-button-text: #ffeb3b;
    --codwo-accent: #ff3d00;
    --codwo-success: #00796b;
    --codwo-radius-card: 0px;
    --codwo-radius-input: 0px;
    --codwo-radius-button: 0px;
    --codwo-input-height: 52px;
    --codwo-cta-height: 60px;
    --codwo-shadow-card: 8px 8px 0 #0a0a0a;
    --codwo-shadow-cta: 5px 5px 0 var(--codwo-accent);
    --codwo-field-bg: #ffffff;
    --codwo-ring: rgba(255, 61, 0, 0.35);
    --codwo-sticky-cta: 1;

    border: 3px solid var(--codwo-border);
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select),
.codwo-skin-bold.codwo-product-form-wrapper .codwo-quantity-controls,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-coupon-input,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-button-swatch {
    border-width: 2px;
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-field-group :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select):focus {
    box-shadow: 4px 4px 0 var(--codwo-accent);
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-variations-section > h4,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-promo-selector-section > h4,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-extras-title,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-fbt-title,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-field-group > label,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-quantity-section > label {
    font-weight: 900;
    text-transform: uppercase;
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-product-header,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-order-summary,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-promo-option,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-fbt-card,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-extra-row,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-coupon-section {
    border: 2px solid var(--codwo-border);
    border-radius: 0;
    background: var(--codwo-surface);
    box-shadow: 4px 4px 0 var(--codwo-border);
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-promo-option.selected,
.codwo-skin-bold.codwo-product-form-wrapper .codwo-fbt-card:has(input:checked),
.codwo-skin-bold.codwo-product-form-wrapper .codwo-extra-row:has(input:checked) {
    background: #ffeb3b;
    border-color: var(--codwo-border);
    box-shadow: 6px 6px 0 var(--codwo-border);
    transform: translate(-2px, -2px);
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-promo-option-recommended {
    border-radius: 0;
    background: var(--codwo-accent);
    box-shadow: 2px 2px 0 var(--codwo-border);
    text-transform: uppercase;
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-promo-option-badge {
    border-radius: 0;
    background: var(--codwo-border);
    color: #ffeb3b;
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-submit-btn {
    border: 3px solid var(--codwo-border);
    font-weight: 900;
    font-size: 19px;
    text-transform: uppercase;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-submit-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--codwo-accent);
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-submit-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--codwo-accent);
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-btn-price {
    border-radius: 0;
    background: #ffeb3b;
    color: #0a0a0a;
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-badge-icon {
    border-radius: 0;
    background: #ffeb3b;
    color: #0a0a0a;
    border: 2px solid #0a0a0a;
    box-shadow: 3px 3px 0 #0a0a0a;
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-cta-note {
    display: flex;
    color: var(--codwo-text);
}

.codwo-skin-bold.codwo-product-form-wrapper .codwo-swatch-item.selected .codwo-button-swatch {
    background: #0a0a0a;
    color: #ffeb3b;
}

.codwo-sticky-cta--bold .codwo-sticky-cta__btn {
    border-radius: 0;
    border: 2px solid #0a0a0a;
    box-shadow: 4px 4px 0 #ff3d00;
    text-transform: uppercase;
}

/* ==================================================================== *
 * 22. Skin: CARD — soft, friendly, gradient pill CTA
 * ==================================================================== */

.codwo-skin-card.codwo-product-form-wrapper {
    --codwo-bg: #ffffff;
    --codwo-surface: #f6f5ff;
    --codwo-border: #e7e5fb;
    --codwo-border-strong: #d4d0f5;
    --codwo-text: #1e1b4b;
    --codwo-text-muted: #6b6893;
    --codwo-primary: #5b4ee8;
    --codwo-button-bg: #5b4ee8;
    --codwo-accent: #ec4899;
    --codwo-success: #0f9f6e;
    --codwo-radius-card: 24px;
    --codwo-radius-input: 14px;
    --codwo-radius-button: 999px;
    --codwo-input-height: 50px;
    --codwo-shadow-card: 0 24px 60px -30px rgba(79, 70, 229, 0.35);
    --codwo-shadow-cta: 0 16px 30px -14px rgba(91, 78, 232, 0.75);
    --codwo-sticky-cta: 1;

    border-color: #ecebff;
}

.codwo-skin-card.codwo-product-form-wrapper .codwo-product-header {
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--codwo-primary-soft), var(--codwo-accent-soft)), var(--codwo-surface);
}

/* product-form.css strips background-image from form buttons with
   !important (theme gradients); the card CTA re-adds its own. */
.codwo-skin-card.codwo-product-form-wrapper .codwo-submit-btn {
    background-color: var(--codwo-button-bg);
    background-image: linear-gradient(120deg, var(--codwo-button-bg), var(--codwo-button-bg) 45%, var(--codwo-accent) 130%) !important;
}

.codwo-skin-card.codwo-product-form-wrapper .codwo-submit-btn:hover {
    background-color: var(--codwo-button-bg-hover);
    background-image: linear-gradient(120deg, var(--codwo-button-bg-hover), var(--codwo-button-bg-hover) 45%, var(--codwo-accent) 130%) !important;
}

.codwo-skin-card.codwo-product-form-wrapper .codwo-promo-option {
    border-radius: 18px;
}

.codwo-skin-card.codwo-product-form-wrapper .codwo-promo-option-recommended {
    background: linear-gradient(90deg, var(--codwo-accent), var(--codwo-primary));
}

.codwo-skin-card.codwo-product-form-wrapper .codwo-button-swatch,
.codwo-skin-card.codwo-product-form-wrapper .codwo-quantity-controls {
    border-radius: 999px;
}

.codwo-skin-card.codwo-product-form-wrapper .codwo-cta-note {
    display: flex;
}

.codwo-skin-card.codwo-product-form-wrapper .codwo-badge-icon {
    background: linear-gradient(135deg, var(--codwo-primary-soft), var(--codwo-accent-soft));
}

.codwo-sticky-cta--card .codwo-sticky-cta__btn {
    background: linear-gradient(120deg, var(--codwo-button-bg), var(--codwo-accent) 140%);
}

/* ==================================================================== *
 * 23. Responsive
 * ==================================================================== */

@media (max-width: 767px) {
    .codwo-product-form-wrapper {
        --codwo-card-pad: 18px;
        margin: 16px 0;
        border-radius: var(--codwo-radius-card);
    }

    .codwo-skin-editorial.codwo-product-form-wrapper {
        --codwo-card-pad: 20px;
    }
}

@media (max-width: 420px) {
    .codwo-product-form-wrapper {
        --codwo-card-pad: 16px;
        --codwo-gap: 16px;
    }

    .codwo-product-form-wrapper .codwo-promo-option {
        grid-template-columns: 20px 44px minmax(0, 1fr) auto;
        column-gap: 10px;
        padding: 12px;
    }

    .codwo-product-form-wrapper .codwo-promo-option-media {
        width: 44px;
        height: 44px;
    }

    .codwo-product-form-wrapper .codwo-product-header {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
    }

    .codwo-product-form-wrapper .codwo-product-header__media img {
        width: 64px;
        height: 64px;
    }

    .codwo-product-form-wrapper .codwo-submit-btn {
        font-size: 16px;
        padding-inline: 14px;
    }

    .codwo-product-form-wrapper .codwo-otp-actions,
    .codwo-product-form-wrapper .codwo-otp-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 370px) {
    .codwo-product-form-wrapper {
        --codwo-card-pad: 14px;
    }

    .codwo-product-form-wrapper .codwo-promo-option {
        grid-template-columns: 20px minmax(0, 1fr) auto;
        grid-template-areas: "radio main price";
    }

    .codwo-product-form-wrapper .codwo-promo-option-media {
        display: none;
    }

    .codwo-product-form-wrapper .codwo-fbt-card {
        grid-template-columns: 20px 48px minmax(0, 1fr);
    }

    .codwo-product-form-wrapper .codwo-fbt-image {
        width: 48px;
        height: 48px;
    }

    .codwo-product-form-wrapper .codwo-extra-row {
        grid-template-columns: 20px minmax(0, 1fr) auto;
    }

    .codwo-product-form-wrapper .codwo-extra-icon {
        display: none;
    }

    .codwo-product-form-wrapper .codwo-badge {
        font-size: 11.5px;
    }

    .codwo-product-form-wrapper .codwo-badge-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .codwo-product-form-wrapper .codwo-coupon-input-group {
        grid-template-columns: 1fr;
    }

    .codwo-sticky-cta__img {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .codwo-product-form-wrapper *,
    .codwo-product-form-wrapper *::before,
    .codwo-product-form-wrapper *::after,
    .codwo-sticky-cta {
        animation: none !important;
        transition: none !important;
    }
}

/* ==================================================================== *
 * 24. RTL mirrors for the few physical properties
 * ==================================================================== */

.codwo-rtl.codwo-product-form-wrapper .codwo-variation-select {
    background-position: left 14px center;
}

.codwo-rtl.codwo-product-form-wrapper .codwo-swatch-label,
.codwo-rtl.codwo-product-form-wrapper .codwo-product-header__total-label {
    letter-spacing: 0;
    text-transform: none;
}

/* Phone numbers read left-to-right but the box still starts on the right. */
.codwo-rtl.codwo-product-form-wrapper .codwo-field-group input[type="tel"],
.codwo-rtl.codwo-product-form-wrapper .codwo-otp-input {
    direction: ltr;
    text-align: right;
}

.codwo-rtl.codwo-product-form-wrapper .codwo-field-group input[type="tel"]::placeholder {
    direction: rtl;
    text-align: right;
}

/* Hard shadows fall towards the reading end in RTL. */
.codwo-rtl.codwo-skin-bold.codwo-product-form-wrapper {
    --codwo-shadow-card: -8px 8px 0 #0a0a0a;
    --codwo-shadow-cta: -5px 5px 0 var(--codwo-accent);
}
