/* Deals2Buy production styles. No build step or Tailwind runtime required. */
:root {
    --d2b-primary: #0f8f62;
    --d2b-primary-dark: #066b49;
    --d2b-accent: #0ea5e9;
    --d2b-ink: #111827;
    --d2b-muted: #667085;
    --d2b-line: #e6eaf0;
    --d2b-soft: #f5f8f6;
    --d2b-card: #ffffff;
}

.d2b-frontend,
.d2b-frontend * {
    box-sizing: border-box;
}

.d2b-frontend {
    width: min(1540px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 64px;
    color: var(--d2b-ink);
    font-family: inherit;
}

.d2b-product-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.d2b-product-media {
    position: sticky;
    top: 24px;
    overflow: hidden;
    border: 1px solid var(--d2b-line);
    border-radius: 8px;
    background: #f7faf8;
    box-shadow: 0 22px 60px rgba(17, 24, 39, 0.08);
}

.d2b-product-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: contain;
}

.d2b-product-panel {
    display: grid;
    gap: 22px;
}

.d2b-kicker,
.d2b-label,
.d2b-share span,
.d2b-timer span {
    display: block;
    margin: 0 0 6px;
    color: var(--d2b-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.d2b-product-heading h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.08;
    letter-spacing: 0;
}

.d2b-price-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.d2b-price-row > div {
    padding: 16px;
    border: 1px solid var(--d2b-line);
    border-radius: 8px;
    background: #fff;
}

.d2b-single-price,
.d2b-group-price {
    display: block;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
}

.d2b-group-price {
    color: var(--d2b-primary);
}

.d2b-save-badge {
    grid-column: 1 / -1;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff3e6;
    color: #9a4b00;
    font-size: 13px;
    font-weight: 800;
}

.d2b-short-description {
    color: #344054;
    font-size: 16px;
    line-height: 1.7;
}

.d2b-buy-card,
.d2b-tiers,
.d2b-product-tabs {
    border: 1px solid var(--d2b-line);
    border-radius: 8px;
    background: var(--d2b-card);
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.d2b-buy-card {
    padding: 18px;
}

.d2b-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 5px;
    border-radius: 8px;
    background: var(--d2b-soft);
}

.d2b-mode-tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475467;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
}

.d2b-mode-tabs button.is-active {
    background: #fff;
    color: var(--d2b-primary-dark);
    box-shadow: 0 7px 20px rgba(17, 24, 39, 0.08);
}

.d2b-buy-pane {
    display: none;
    padding-top: 22px;
}

.d2b-buy-pane.is-active {
    display: block;
}

.d2b-pane-note {
    margin: 0 0 18px;
    color: var(--d2b-muted);
}

.d2b-cart-form {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.d2b-cart-form .quantity,
.d2b-cart-form .quantity input {
    width: 100%;
}

.d2b-cart-form .qty {
    min-height: 52px;
    border: 1px solid var(--d2b-line);
    border-radius: 6px;
    text-align: center;
}

.d2b-button,
.woocommerce .d2b-button.button.alt {
    min-height: 52px;
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--d2b-primary), var(--d2b-primary-dark));
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(15, 143, 98, 0.2);
}

.d2b-button-secondary,
.woocommerce .d2b-button-secondary.button.alt {
    background: #111827;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}

.d2b-stats,
.d2b-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.d2b-avatars {
    display: flex;
}

.d2b-avatars span {
    display: grid;
    width: 38px;
    height: 38px;
    margin-right: -8px;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #dff4ea;
    color: var(--d2b-primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.d2b-timer {
    text-align: right;
}

.d2b-timer strong {
    display: block;
    font-size: 24px;
}

.d2b-progress {
    margin: 20px 0;
}

.d2b-progress-meta {
    margin-bottom: 9px;
    color: #344054;
    font-size: 14px;
}

.d2b-progress-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.d2b-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--d2b-primary), var(--d2b-accent));
}

.d2b-unlock-note {
    margin: 18px 0;
    padding: 12px 14px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.d2b-unlock-note.is-unlocked {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.d2b-share {
    margin-top: 24px;
    text-align: center;
}

.d2b-share > div {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}

.d2b-share a {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    text-decoration: none;
}

.d2b-share a:first-child {
    background: #e8f8ee;
    color: #16a34a;
}

.d2b-share a:last-child {
    background: #eef2f7;
    color: #344054;
}

.d2b-tiers {
    margin-top: 28px;
    padding: 24px;
}

.d2b-tiers h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.d2b-tiers > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.d2b-tiers article {
    padding: 14px;
    border: 1px solid var(--d2b-line);
    border-radius: 8px;
    background: var(--d2b-soft);
}

.d2b-tiers span,
.d2b-tiers strong {
    display: block;
}

.d2b-tiers span {
    color: var(--d2b-muted);
    font-size: 13px;
    font-weight: 800;
}

.d2b-tiers strong {
    margin-top: 4px;
    color: var(--d2b-primary-dark);
    font-size: 22px;
}

.d2b-product-tabs {
    margin-top: 32px;
    padding: 24px;
}

.d2b-product-tabs .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.d2b-product-tabs .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.d2b-product-tabs .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 10px 14px;
    border: 1px solid var(--d2b-line);
    border-radius: 999px;
    color: #344054;
    font-weight: 800;
    text-decoration: none;
}

.d2b-product-tabs .woocommerce-tabs ul.tabs li.active a {
    border-color: var(--d2b-primary);
    background: #e8f8ee;
    color: var(--d2b-primary-dark);
}

.d2b-glass {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.d2b-card {
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

@media (max-width: 900px) {
    .d2b-frontend {
        width: min(100% - 24px, 720px);
        padding-top: 24px;
    }

    .d2b-product-shell {
        grid-template-columns: 1fr;
    }

    .d2b-product-media {
        position: static;
    }
}

@media (max-width: 560px) {
    .d2b-price-row,
    .d2b-cart-form {
        grid-template-columns: 1fr;
    }

    .d2b-mode-tabs button,
    .d2b-button,
    .woocommerce .d2b-button.button.alt {
        font-size: 14px;
    }

    .d2b-product-tabs {
        padding: 18px;
    }
}
