/* VAT Display Toggle — front-end styles */

.vat-toggle {
    display: inline-flex;
    align-items: center;
}

/* Button style */
.vat-toggle--buttons {
    border: 1px solid var(--theme-border-color, #d5d8dc);
    border-radius: 6px;
    overflow: hidden;
}

/* Insulate the toggle buttons from Elementor / theme global button styles.
   `all: revert` strips any inherited button chrome (background, border,
   shadow, transforms, etc.); the scoped `.vat-toggle` selector keeps our own
   values winning over element/single-class rules from the page builder. */
.vat-toggle .vat-toggle__btn {
    all: revert;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 6px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    text-shadow: none;
    color: var(--theme-text-color, #222);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.vat-toggle .vat-toggle__btn + .vat-toggle__btn {
    border-left: 1px solid var(--theme-border-color, #d5d8dc);
}

.vat-toggle .vat-toggle__btn:hover,
.vat-toggle .vat-toggle__btn:focus {
    background: var(--theme-palette-color-5, #f2f4f6);
    color: var(--theme-text-color, #222);
}

.vat-toggle .vat-toggle__btn.is-active {
    background: var(--theme-palette-color-1, #2872fa);
    color: #fff;
}

/* Dropdown style */
.vat-toggle--dropdown select {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid var(--theme-border-color, #d5d8dc);
    background: #fff;
}

/* -------------------------------------------------------------------------
 * Dual price block (single product page)
 * ---------------------------------------------------------------------- */
.vat-dual {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 0 1.2em;
}

.vat-dual__col {
    flex: 1 1 0;
    min-width: 0;
}

/* Divider between the two columns */
.vat-dual__col + .vat-dual__col {
    padding-left: 24px;
    margin-left: 24px;
    border-left: 1px solid var(--theme-border-color, #e2e5e9);
}

.vat-dual__label {
    color: var(--theme-palette-color-1, #2872fa);
    font-weight: 600;
    font-size: 1.15em;
    line-height: 1.3;
    margin-bottom: 4px;
}

.vat-dual__price {
    font-weight: 700;
    font-size: 1.5em;
    line-height: 1.2;
    color: var(--theme-text-color, #1c1c1c);
}

.vat-dual__price del {
    color: #999;
    font-weight: 400;
    margin-right: 6px;
}

/* Hide WooCommerce's single variation price line only when the dual block is
   present on the page (the block already shows the selected variation price). */
.has-vat-dual .woocommerce-variation-price {
    display: none;
}

@media (max-width: 480px) {
    .vat-dual__label { font-size: 1.05em; }
    .vat-dual__price { font-size: 1.3em; }
    .vat-dual__col + .vat-dual__col {
        padding-left: 16px;
        margin-left: 16px;
    }
}
