/* ==========================================================================
   IVISKIN Purchase Tabs  ·  assets/css/iviskin-tabs.css
   ========================================================================== */

/* Hide the native WooCommerce variation table & bundle dropdown */
.iviskin-hidden-select { display: none !important; }

/* ── Wrapper ── */
.iviskin-purchase-tabs {
    margin: 0 0 20px;
    font-family: inherit;
    border: 2px solid rgb(218, 207, 200);
    border-radius: 12px;
}

/* ── Tab switcher ── */
.ipt-switcher {
    display: flex;
    border-radius: 10px;
    padding: 16px;
    gap: 4px;
}

.ipt-tab {
    flex: 1;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: none;
    border-radius: 8px !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 600;
    color: #5c2d34 !important;
    cursor: pointer;
    text-transform: capitalize;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.ipt-tab--active {
    background: #F7F3F0 !important;
    color: #5c2d34 !important;
}

/* ── Panels ── */
.ipt-panel {
    display: none;
    padding: 0 16px 16px;
    margin-top: 12px;
}
.ipt-panel--active { display: block; }

/* ── Subscription panel ── */
.ipt-sub-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ipt-price-main {
    font-size: 28px;
    font-weight: 700;
    color: #2d1a16;
}

.ipt-price-regular {
    font-size: 16px;
    color: #aaa;
    text-decoration: line-through;
}

.ipt-sub-info {
    background: #faf7f6;
    border: 1px solid #e8ddd9;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #5a4a45;
    line-height: 1.5;
}
.subscription-details {
    margin-left: 10px;
}
.ipt-sub-renewal { margin: 0 0 6px; }
.ipt-sub-cancel  { margin: 0; color: #8a7a75; font-size: 12.5px; }

/* ── One-time / Bundle cards ── */
.ipt-bundles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ipt-bundle {
    position: relative;
    border: 2px solid #e8ddd9;
    border-radius: 12px;
    padding: 12px 10px 14px;
    text-align: center;
    cursor: pointer !important;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ipt-bundle:hover {
    border-color: #c4a49b;
}

.ipt-bundle--selected {
    border-color: #2d1a16;
}

.ipt-bundle img {
    width: 100%;
    max-width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 8px !important;
    margin: 8px auto 12px;
    display: block;
}

.ipt-bundle-name {
    font-size: 12px;
    font-weight: 600;
    color: #2d1a16;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-align: left;
}

.ipt-bundle-price {
    font-size: 20px;
    font-weight: 700;
    color: #2d1a16;
    padding: 12px 0 0;
    margin-top: 12px;
    line-height: 28px;
    text-align: left;
    border-top: 1px solid #E9E9E9;
}

.ipt-per-bottle {
    font-size: 11px;
    font-weight: 400;
    color: #8a7a75;
}

/* ── Badges ── */
.ipt-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    padding: 4px 12px;
    line-height: 16px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.ipt-badge.price-badge{
    position: unset;
    transform: unset;
    margin-left: 15px;
}
.ipt-badge--red    { background: #d63031; color: #fff; }
.ipt-badge--orange { background: #FF5B24; color: #fff; }
.ipt-badge--dark   { background: #5C2D34; color: #fff; }
.ipt-price-regular .woocommerce-Price-amount.amount {
    opacity: .5;
}
button.single_add_to_cart_button.button.alt {
    margin-left: 0 !important;
}
.single-product .product-short-description ul.list-type li:before  {
    color: #5c2d34 !important;
}
/* ── Responsive ── */
@media (max-width: 480px) {
    .ipt-bundles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ipt-bundle {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 12px;
    }
    .ipt-bundle img {
        width: 60px;
        height: 60px;
        margin: 0;
    }
    .ipt-bundle-name{
        width: 100%;
    }
    .ipt-bundle-name,
    .ipt-bundle-price { margin: 2px 0; border-top:0 !important }
    .ipt-badge {
        position: absolute;
        transform: none;
        margin-bottom: 4px;
        left: calc(50% - 48px);
    }
}