.bzh-gb-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15em 0.55em;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    vertical-align: middle;
    margin-inline-end: 0.35em;
}

/* Cart / checkout: pill badge centered under thumbnail */
.bzh-gb-cart-thumb-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    max-width: 96px;
    margin-inline: auto;
    vertical-align: top;
    box-sizing: border-box;
}
.bzh-gb-cart-thumb-media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    line-height: 0;
    flex-shrink: 0;
    position: relative;
}
.bzh-gb-cart-thumb-media a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}
.bzh-gb-cart-thumb-media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center;
    margin: 0;
}
.bzh-gb-cart-thumb-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    padding: 0 2px;
    box-sizing: border-box;
}
.bzh-gb-badge--pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 5px 11px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em;
    white-space: nowrap !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 55%, #2dd4bf 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.38);
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
    vertical-align: middle !important;
}
.bzh-gb-badge--pill.bzh-gb-badge--completed {
    background: linear-gradient(135deg, #64748b, #94a3b8) !important;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.35);
}

.bzh-gb-badge--completed {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.bzh-gb-completed-banner {
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(100, 116, 139, 0.35);
    border-radius: 12px;
    background: rgba(100, 116, 139, 0.08);
}

.bzh-gb-completed-title {
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
}

.bzh-gb-completed-meta,
.bzh-gb-completed-desc {
    margin: 0.35rem 0;
    font-size: 0.92rem;
    opacity: 0.9;
}

.bzh-gb-admin-guide {
    margin: 1.25rem 0 2rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    max-width: 920px;
}

.bzh-gb-guide-block {
    margin: 0.65rem 0;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.bzh-gb-guide-block summary {
    cursor: pointer;
    font-weight: 600;
}

.bzh-gb-guide-block ul,
.bzh-gb-guide-block ol {
    margin: 0.5rem 1.25rem 0.25rem 0;
}

.bzh-gb-block {
    margin: 0.85rem 0;
    padding: 0.65rem 0.8rem 0.7rem;
    border: 1px solid rgba(13, 148, 136, 0.22);
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.05);
    font-size: 0.84rem;
    line-height: 1.45;
}

.bzh-gb-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.35rem;
}

/* Rules trigger — theme/WC often paints all `button` pink/square; fight back */
.bzh-gb-block .bzh-gb-block-head button.bzh-gb-rules-btn,
body.single-product .bzh-gb-block button.bzh-gb-rules-btn,
.woocommerce .bzh-gb-block button.bzh-gb-rules-btn,
.elementor-widget-woocommerce-product-data .bzh-gb-block button.bzh-gb-rules-btn,
.elementor .bzh-gb-block button.bzh-gb-rules-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 26px !important;
    margin: 0 !important;
    padding: 4px 11px 4px 9px !important;
    border: 1px solid rgba(13, 148, 136, 0.38) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f766e !important;
    font-family: Vazirmatn, Tahoma, 'Iran Sans', system-ui, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.12) !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}
.bzh-gb-block .bzh-gb-block-head button.bzh-gb-rules-btn:hover,
.bzh-gb-block .bzh-gb-block-head button.bzh-gb-rules-btn:focus-visible,
body.single-product .bzh-gb-block button.bzh-gb-rules-btn:hover,
body.single-product .bzh-gb-block button.bzh-gb-rules-btn:focus-visible {
    background: rgba(13, 148, 136, 0.1) !important;
    border-color: rgba(13, 148, 136, 0.55) !important;
    color: #0d9488 !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.18) !important;
}
.bzh-gb-rules-btn__icon {
    flex-shrink: 0;
    display: block;
    width: 14px;
    height: 14px;
    color: inherit;
}
.bzh-gb-rules-btn__label {
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
}

.bzh-gb-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.45rem;
    margin: 0 0 0.25rem;
    font-weight: 600;
}
.bzh-gb-price-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
}
.bzh-gb-price-foreign {
    direction: ltr;
    unicode-bidi: isolate;
}
.bzh-gb-price-toman {
    unicode-bidi: isolate;
}

.bzh-gb-total-line {
    margin: 0 0 0.35rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    background: rgba(13, 148, 136, 0.08);
    font-size: 0.8rem;
    line-height: 1.5;
    color: #334155;
}
.bzh-gb-total-line__label {
    color: #64748b;
    font-weight: 600;
}
.bzh-gb-total-line__foreign,
.bzh-gb-total-line__toman {
    color: #0f766e;
    font-weight: 800;
    /* Keep the currency code glued to its number — otherwise the bidi
       algorithm can split USD off when the surrounding string mixes
       Persian + Latin + math symbols. */
    unicode-bidi: isolate;
}
.bzh-gb-total-line__foreign {
    direction: ltr;
}
.bzh-gb-total-line__sep {
    color: #94a3b8;
    font-weight: 600;
}
.bzh-gb-total-line__calc {
    display: inline-block;
    margin-inline-start: 0.25em;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    direction: ltr;
    unicode-bidi: isolate;
}

.bzh-gb-progress-wrap {
    margin-top: 0.15rem;
}
.bzh-gb-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.bzh-gb-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0d9488, #2dd4bf);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.bzh-gb-progress-text,
.bzh-gb-timer {
    margin: 0.28rem 0 0;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.45;
}

.bzh-gb-timer-val {
    font-weight: 700;
    color: #0f766e;
    font-variant-numeric: tabular-nums;
}

.bzh-gb-interest-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    margin: 0.3rem 0 0;
    padding: 0.28rem 0.45rem;
    border-radius: 8px;
    background: rgba(13, 148, 136, 0.07);
    font-size: 0.78rem;
    color: #334155;
}
.bzh-gb-interest-line[hidden] {
    display: none !important;
}
.bzh-gb-interest-line__icon {
    flex-shrink: 0;
    color: #0d9488;
}
.bzh-gb-interest-line strong {
    color: #0d9488;
    font-weight: 800;
}

/* Rules modal */

.bzh-gb-rules-modal[hidden] {
    display: none !important;
}
.bzh-gb-rules-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    box-sizing: border-box;
}
.bzh-gb-rules-modal.is-open {
    display: flex !important;
}
body.bzh-gb-rules-modal-open {
    overflow: hidden;
}
.bzh-gb-rules-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(3px);
    cursor: pointer;
}
.bzh-gb-rules-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: min(88vh, 680px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(13, 148, 136, 0.22);
    border-radius: 16px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
    font-family: 'Vazirmatn', 'Vazir', Tahoma, system-ui, sans-serif;
    color: #0f172a;
    animation: bzh-gb-rules-modal-in 0.22s ease-out;
}
@keyframes bzh-gb-rules-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.bzh-gb-rules-modal__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.9), #fff);
    flex-shrink: 0;
}
.bzh-gb-rules-modal__head-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #0d9488;
    background: rgba(13, 148, 136, 0.12);
}
.bzh-gb-rules-modal__title {
    margin: 0;
    flex: 1;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}
.bzh-gb-rules-modal__close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bzh-gb-rules-modal__close:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}
.bzh-gb-rules-modal__body {
    padding: 16px 18px 20px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.92rem;
    line-height: 1.75;
    color: #334155;
}
.bzh-gb-rules-content p {
    margin: 0 0 0.75rem;
}
.bzh-gb-rules-content p:last-child {
    margin-bottom: 0;
}
.bzh-gb-rules-content ul,
.bzh-gb-rules-content ol {
    margin: 0.5rem 1.25rem 0.75rem 0;
    padding: 0;
}
.bzh-gb-rules-content li {
    margin-bottom: 0.35rem;
}
.bzh-gb-rules-content a {
    color: #0d9488;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bzh-gb-external-wrap {
    margin: 0.25rem 0 0;
}
.bzh-gb-external {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0d9488;
}
.bzh-gb-closed {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    color: #b45309;
    font-weight: 600;
}

/* Legacy class — replaced by .bzh-gb-checkout-banner */
.bzh-gb-checkout-notice {
    margin-bottom: 1rem !important;
}

.bzh-gb-checkout-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(13, 148, 136, 0.28);
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.95) 0%, #fff 55%, rgba(236, 253, 245, 0.9) 100%);
    box-shadow: 0 4px 18px rgba(13, 148, 136, 0.1);
    box-sizing: border-box;
}
.bzh-gb-checkout-banner__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #0d9488;
    background: rgba(13, 148, 136, 0.12);
}
.bzh-gb-checkout-banner__body {
    flex: 1;
    min-width: 0;
}
.bzh-gb-checkout-banner__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}
.bzh-gb-checkout-banner__title .bzh-gb-badge--pill {
    font-size: 10px !important;
    padding: 4px 10px !important;
}
.bzh-gb-checkout-banner__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #475569;
    font-weight: 400;
}

.bzh-ty-gb-card {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(13, 148, 136, 0.3);
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.08), rgba(255, 255, 255, 0.95));
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}

.bzh-ty-gb-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.bzh-ty-gb-card-desc {
    margin: 0 0 1rem;
    line-height: 1.7;
    color: #334155;
}

.bzh-ty-gb-card-meta {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.bzh-ty-gb-card-actions .button {
    margin-inline-end: 0.5rem;
}

.bazeh-dlmgr-row--gb-pending .bazeh-dlmgr-status--gb-pending .bazeh-dlmgr-status-text {
    color: #b45309;
    font-weight: 600;
}

.bazeh-dlmgr-row--gb-pending .bazeh-dlmgr-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}
