/* ============================================
   CHECKOUT TEMPLATE - Bitstech Store
   Modern, animated, 2-column checkout design
   ============================================ */

/* ── Global box-sizing ── */
.btc-hero,
.btc-hero *,
.btc-main,
.btc-main *,
.btc-form,
.btc-form * {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════
   HERO HEADER
═══════════════════════════════════════ */
.btc-hero {
    position: relative;
    padding: 50px 0 40px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btc-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.btc-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: btcFloat 12s ease-in-out infinite;
}

.btc-hero__orb--1 {
    width: 320px;
    height: 320px;
    top: -80px;
    left: -60px;
    background: radial-gradient(circle, #6c63ff, transparent 70%);
}

.btc-hero__orb--2 {
    width: 280px;
    height: 280px;
    top: -40px;
    right: -40px;
    background: radial-gradient(circle, #00e0f0, transparent 70%);
    animation-delay: -6s;
}

.btc-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8), transparent 70%);
}

@keyframes btcFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -20px) scale(1.05); }
}

.btc-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.btc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.25);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a5a0ff;
    margin-bottom: 16px;
    animation: btcFadeUp 0.6s ease-out both;
}

.btc-hero__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: btcPulse 1.8s ease-in-out infinite;
}

@keyframes btcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.3); }
}

@keyframes btcFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.btc-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.15;
    animation: btcFadeUp 0.7s ease-out 0.1s both;
}

.btc-hero__title-accent {
    display: inline-block;
    background: linear-gradient(135deg, #6c63ff, #00e0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.btc-hero__subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px 0;
    animation: btcFadeUp 0.8s ease-out 0.2s both;
}

/* ── Stepper ── */
.btc-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    animation: btcFadeUp 0.9s ease-out 0.3s both;
}

.btc-stepper__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
    font-weight: 500;
    transition: color 0.3s;
}

.btc-stepper__circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s;
}

.btc-stepper__item--done {
    color: #4ade80;
}

.btc-stepper__item--done .btc-stepper__circle {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

.btc-stepper__item--active {
    color: #fff;
}

.btc-stepper__item--active .btc-stepper__circle {
    background: linear-gradient(135deg, #6c63ff, #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
    animation: btcStepPulse 2s ease-in-out infinite;
}

@keyframes btcStepPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4); }
    50%      { box-shadow: 0 4px 24px rgba(108, 99, 255, 0.7); }
}

.btc-stepper__line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 10px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.btc-stepper__item--done + .btc-stepper__line {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.4), rgba(108, 99, 255, 0.4));
}

/* ═══════════════════════════════════════
   MAIN CHECKOUT AREA
═══════════════════════════════════════ */
.btc-main {
    padding: 32px 0 60px;
}

.btc-notices:empty {
    display: none;
}

.btc-notices {
    margin-bottom: 20px;
}

/* ── 2-column layout ── */
.btc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.btc-main-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btc-side-col {
    min-width: 0;
}

/* ═══════════════════════════════════════
   CARDS (Left side)
═══════════════════════════════════════ */
.btc-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(24px);
}

.btc-card.is-revealed {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--delay, 0) * 100ms);
}

.btc-card[data-bt-reveal="1"] { --delay: 0; }
.btc-card[data-bt-reveal="2"] { --delay: 1; }
.btc-card[data-bt-reveal="3"] { --delay: 2; }

.btc-card:hover {
    border-color: rgba(108, 99, 255, 0.25);
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.08);
}

.btc-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(108, 99, 255, 0.04), transparent);
}

.btc-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 224, 240, 0.08));
    border: 1px solid rgba(108, 99, 255, 0.2);
    color: #a5a0ff;
    flex-shrink: 0;
}

.btc-card__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}

.btc-card__header h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
}

.btc-card__body {
    padding: 20px;
}

/* ─ Form rows inside cards ─ */
.btc-card .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    position: relative;
}

.btc-card .form-row:last-child {
    margin-bottom: 0;
}

.btc-card .form-row label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.btc-card .form-row .required {
    color: #ff6b7a;
    text-decoration: none;
    margin-left: 2px;
}

.btc-card .form-row input[type="text"],
.btc-card .form-row input[type="email"],
.btc-card .form-row input[type="tel"],
.btc-card .form-row input[type="number"],
.btc-card .form-row input[type="password"],
.btc-card .form-row textarea,
.btc-card .form-row select,
.btc-card .form-row .select2-selection {
    width: 100% !important;
    padding: 11px 14px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 0.88rem !important;
    transition: all 0.25s !important;
    height: auto !important;
    min-height: 42px;
    font-family: inherit;
}

.btc-card .form-row input:hover,
.btc-card .form-row textarea:hover,
.btc-card .form-row select:hover {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.btc-card .form-row input:focus,
.btc-card .form-row textarea:focus,
.btc-card .form-row select:focus {
    border-color: #6c63ff !important;
    background: rgba(108, 99, 255, 0.06) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12) !important;
}

.btc-card .form-row textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.5;
}

.btc-card .form-row input::placeholder,
.btc-card .form-row textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Two-column form rows */
.btc-card .form-row-first,
.btc-card .form-row-last {
    width: calc(50% - 7px);
    display: inline-flex;
    vertical-align: top;
}

.btc-card .form-row-first {
    margin-right: 12px;
}

.btc-card .form-row-wide {
    width: 100%;
    clear: both;
}

/* Select2 */
.btc-card .select2-container--default .select2-selection--single {
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
}

.btc-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    color: #fff !important;
    padding-left: 14px !important;
    padding-right: 34px !important;
}

.btc-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 8px !important;
}

/* Headings inside card body (e.g. "Billing details") - hide default WooCommerce h3 */
.btc-card__body h3 {
    display: none;
}

/* Re-show specific ones we want */
.btc-card__body h3#ship-to-different-address {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    margin: 0 0 14px 0;
}

.btc-card__body h3#ship-to-different-address label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* ═══════════════════════════════════════
   TRUST BADGES
═══════════════════════════════════════ */
.btc-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.015);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.4s;
}

.btc-trust.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.btc-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btc-trust__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.08);
    color: #4ade80;
    flex-shrink: 0;
}

.btc-trust__item strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.btc-trust__item span {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* ═══════════════════════════════════════
   RIGHT SIDEBAR - ORDER SUMMARY
═══════════════════════════════════════ */
.btc-side-col {
    position: sticky;
    top: 90px;
}

.btc-summary {
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(108, 99, 255, 0.04), rgba(0, 224, 240, 0.02));
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.5s ease 0.15s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.btc-summary.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animated gradient border */
.btc-summary::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, transparent 30%, rgba(108, 99, 255, 0.3) 50%, transparent 70%);
    z-index: -1;
    opacity: 0;
    animation: btcBorderShimmer 4s ease-in-out infinite;
}

@keyframes btcBorderShimmer {
    0%, 100% { opacity: 0; }
    50%      { opacity: 0.5; }
}

.btc-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(108, 99, 255, 0.03);
}

.btc-summary__header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btc-summary__count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6c63ff;
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
}

/* ── Items list ── */
.btc-summary__items {
    padding: 12px 20px;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 99, 255, 0.3) transparent;
}

.btc-summary__items::-webkit-scrollbar { width: 4px; }
.btc-summary__items::-webkit-scrollbar-thumb { background: rgba(108, 99, 255, 0.3); border-radius: 2px; }

.btc-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.btc-item:last-child { border-bottom: none; }

.btc-item__thumb {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.btc-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btc-item__qty {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: linear-gradient(135deg, #6c63ff, #8b5cf6);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e2a45;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.4);
}

.btc-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btc-item__name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-bottom: 3px;
}

.btc-item__price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00e0f0;
}

.btc-item__price .woocommerce-Price-amount { color: inherit !important; }

/* ═══════════════════════════════════════
   COUPON TOGGLE
═══════════════════════════════════════ */
.btc-coupon {
    padding: 0 20px 12px;
}

.btc-coupon__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px dashed rgba(108, 99, 255, 0.3);
    border-radius: 10px;
    background: rgba(108, 99, 255, 0.04);
    color: #a5a0ff;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.btc-coupon__toggle:hover {
    background: rgba(108, 99, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.5);
}

.btc-coupon__toggle span { flex: 1; text-align: left; }

.btc-coupon__chevron {
    transition: transform 0.3s;
}

.btc-coupon__toggle.is-open .btc-coupon__chevron {
    transform: rotate(180deg);
}

.btc-coupon__panel {
    margin-top: 8px;
    animation: btcSlideDown 0.3s ease;
}

@keyframes btcSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.btc-coupon__row {
    display: flex;
    gap: 6px;
}

.btc-coupon__input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.82rem;
    min-width: 0;
}

.btc-coupon__input:focus {
    outline: none;
    border-color: #6c63ff;
    background: rgba(108, 99, 255, 0.05);
}

.btc-coupon__apply {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6c63ff, #8b5cf6);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.btc-coupon__apply:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4); }
.btc-coupon__apply:disabled { opacity: 0.5; cursor: wait; }

/* ═══════════════════════════════════════
   TOTALS
═══════════════════════════════════════ */
.btc-totals {
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
}

.btc-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.btc-totals__row span:last-child {
    color: #fff;
    font-weight: 600;
}

.btc-totals__row--coupon span:last-child {
    color: #4ade80;
}

.btc-totals__row--total {
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.btc-totals__row--total span:first-child {
    color: #fff;
    font-weight: 600;
}

.btc-total-amount,
.btc-totals__row--total .woocommerce-Price-amount {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #00e0f0 !important;
    background: linear-gradient(135deg, #00e0f0, #6c63ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ═══════════════════════════════════════
   PAYMENT METHODS
═══════════════════════════════════════ */
.btc-payment-wrap {
    padding: 14px 20px 20px;
}

.btc-payment__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

/* Hide WooCommerce's default "Your order" review table (we already show items above) */
#order_review table.shop_table,
#order_review .woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table {
    display: none !important;
}

/* Hide "Additional information" auto-heading inside order notes card */
.btc-card__body > h3,
.btc-card__body .woocommerce-additional-fields > h3,
.woocommerce-additional-fields__field-wrapper > h3 {
    display: none !important;
}

/* Hide privacy policy text and default terms block (we handle this cleanly) */
.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-terms-and-conditions {
    display: none !important;
}

/* Hide any coupon/login form that WC injects above the form */
form.woocommerce-form-login,
form.woocommerce-form-coupon,
.woocommerce-form-login-toggle,
.woocommerce-form-coupon-toggle {
    display: none !important;
}

/* Payment methods list */
#order_review ul.payment_methods,
#order_review ul.wc_payment_methods,
.woocommerce-checkout-payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: none !important;
    background: transparent !important;
}

#order_review ul.payment_methods > li,
#order_review ul.wc_payment_methods > li,
.woocommerce-checkout-payment ul.payment_methods > li {
    padding: 10px 12px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    transition: all 0.25s ease !important;
    list-style: none !important;
    line-height: 1.3 !important;
    position: relative;
    overflow: hidden;
}

#order_review ul.payment_methods > li::before,
#order_review ul.wc_payment_methods > li::before {
    display: none !important;
}

#order_review ul.payment_methods > li:hover,
#order_review ul.wc_payment_methods > li:hover {
    border-color: rgba(108, 99, 255, 0.35) !important;
    background: rgba(108, 99, 255, 0.04) !important;
}

#order_review ul.payment_methods > li:has(input:checked),
#order_review ul.wc_payment_methods > li:has(input:checked) {
    border-color: #6c63ff !important;
    background: rgba(108, 99, 255, 0.08) !important;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.12) !important;
}

/* Label - uses flexbox so icon + title align on one row */
#order_review ul.payment_methods > li > label,
#order_review ul.wc_payment_methods > li > label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer;
    font-size: 0.83rem !important;
    color: #fff !important;
    margin: 0 !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    width: 100%;
}

/* Radio input */
#order_review ul.payment_methods input[type="radio"],
#order_review ul.wc_payment_methods input[type="radio"] {
    accent-color: #6c63ff;
    width: 15px;
    height: 15px;
    margin: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
}

/* Custom icon box (injected by JS) */
.btc-pm-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(0, 224, 240, 0.05));
    border: 1px solid rgba(108, 99, 255, 0.18);
    color: #a5a0ff;
    flex-shrink: 0;
    transition: all 0.25s;
}

.btc-pm-icon svg {
    width: 16px;
    height: 16px;
}

#order_review ul.payment_methods > li:has(input:checked) .btc-pm-icon,
#order_review ul.wc_payment_methods > li:has(input:checked) .btc-pm-icon {
    background: linear-gradient(135deg, #6c63ff, #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(108, 99, 255, 0.35);
}

/* Built-in WooCommerce payment method icons (img tags) */
#order_review ul.payment_methods > li img,
#order_review ul.wc_payment_methods > li img {
    max-height: 18px !important;
    width: auto !important;
    margin: 0 0 0 auto !important;
    float: none !important;
    vertical-align: middle;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
    order: 99;
}

/* Payment method description box (shown when selected) */
#order_review .payment_box {
    padding: 10px 12px !important;
    margin: 8px 0 0 0 !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.74rem !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
}

#order_review .payment_box::before,
#order_review .payment_box::after { display: none !important; }

#order_review .payment_box p {
    margin: 0 !important;
    color: inherit !important;
    padding: 0 !important;
}

#order_review .payment_box p + p {
    margin-top: 4px !important;
}

/* "No available payment methods" notice */
#order_review ul.payment_methods > li.woocommerce-notice,
#order_review ul.wc_payment_methods > li.woocommerce-notice,
#order_review .woocommerce-notice,
.woocommerce-checkout-payment > .woocommerce-notice {
    padding: 14px 16px !important;
    margin: 0 !important;
    border: 1px dashed rgba(255, 193, 7, 0.3) !important;
    border-radius: 10px !important;
    background: rgba(255, 193, 7, 0.05) !important;
    color: #ffc107 !important;
    font-size: 0.78rem !important;
    line-height: 1.5;
    text-align: center;
    list-style: none !important;
}

#order_review ul.payment_methods > li.woocommerce-notice::before {
    content: '⚠';
    display: block;
    font-size: 1.4rem;
    margin-bottom: 6px;
    opacity: 0.8;
}

/* Hide any stray "Your personal data will be used..." privacy text */
#order_review .woocommerce-privacy-policy-text,
#order_review .woocommerce-terms-and-conditions-wrapper,
.btc-payment-wrap .woocommerce-privacy-policy-text,
.btc-payment-wrap .woocommerce-terms-and-conditions-wrapper {
    display: none !important;
}

/* ═══════════════════════════════════════
   PLACE ORDER BUTTON
═══════════════════════════════════════ */
#order_review .form-row.place-order,
#order_review .place-order {
    padding: 0 !important;
    margin: 16px 0 0 0 !important;
    display: block;
}

#place_order {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    padding: 15px 20px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer;
    color: #fff !important;
    background: linear-gradient(135deg, #6c63ff 0%, #8b5cf6 50%, #6c63ff 100%) !important;
    background-size: 200% 100% !important;
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.35) !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    overflow: hidden;
}

#place_order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

#place_order:hover {
    transform: translateY(-2px);
    background-position: 100% 0 !important;
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.5) !important;
}

#place_order:hover::before { left: 100%; }

#place_order:active {
    transform: translateY(0);
}

#place_order::after {
    content: none;
}

/* ═══════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════ */
.btc-empty {
    text-align: center;
    padding: 80px 24px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    max-width: 520px;
    margin: 0 auto;
    animation: btcFadeUp 0.6s ease-out both;
}

.btc-empty__icon {
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    display: inline-flex;
    animation: btcBob 3s ease-in-out infinite;
}

@keyframes btcBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.btc-empty h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}

.btc-empty p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px 0;
    font-size: 0.9rem;
}

.btc-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    background: linear-gradient(135deg, #6c63ff, #8b5cf6);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
    transition: all 0.25s;
}

.btc-empty__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(108, 99, 255, 0.5);
}

/* ═══════════════════════════════════════
   NOTICES
═══════════════════════════════════════ */
.btc-notices .woocommerce-notices-wrapper > *,
.btc-notices .woocommerce-error,
.btc-notices .woocommerce-info,
.btc-notices .woocommerce-message {
    padding: 12px 16px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    list-style: none !important;
    margin: 0 0 8px 0 !important;
}

.btc-notices .woocommerce-error   { border-left: 3px solid #ff4757 !important; }
.btc-notices .woocommerce-info    { border-left: 3px solid #6c63ff !important; }
.btc-notices .woocommerce-message { border-left: 3px solid #4ade80 !important; }

/* Login/coupon forms that WC shows at top */
.woocommerce-form-login-toggle,
.woocommerce-form-coupon-toggle {
    display: none !important;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 992px) {
    .btc-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btc-side-col {
        position: static;
        order: -1;
    }

    .btc-summary__items {
        max-height: 200px;
    }

    .btc-trust {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .btc-hero {
        padding: 32px 0 24px;
    }

    .btc-stepper {
        font-size: 0.72rem;
        padding: 8px 12px;
    }

    .btc-stepper__line {
        width: 24px;
        margin: 0 6px;
    }

    .btc-card .form-row-first,
    .btc-card .form-row-last {
        width: 100%;
        margin-right: 0;
    }

    .btc-card__body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .btc-stepper__item span {
        display: none;
    }

    .btc-card__header {
        padding: 14px 16px;
    }

    .btc-card__icon {
        width: 34px;
        height: 34px;
    }
}


/* ═══════════════════════════════════════
   MYANMAR PAYMENT GATEWAY INFO (QR + details)
═══════════════════════════════════════ */
.bt-mm-gateway-info {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
}

.bt-mm-gateway-qr {
    text-align: center;
    margin-bottom: 10px;
}

.bt-mm-gateway-qr img {
    max-width: 140px;
    max-height: 140px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 6px;
    display: block;
}

.bt-mm-gateway-qr-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.bt-mm-gateway-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bt-mm-gateway-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 0.8rem;
}

.bt-mm-gateway-row span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
}

.bt-mm-gateway-row strong {
    color: #fff;
    font-weight: 600;
}

/* Copy button */
.bt-mm-copy {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.bt-mm-copy:hover {
    color: #6c63ff !important;
}

.bt-mm-copy svg {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.bt-mm-copy:hover svg {
    opacity: 1;
}

/* Bank transfer multi-row */
.bt-mm-gateway-banks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bt-mm-bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bt-mm-bank-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #00e0f0;
    min-width: 50px;
}

.bt-mm-bank-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.bt-mm-bank-holder {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.bt-mm-bank-details strong {
    font-size: 0.8rem;
    color: #fff;
}

/* ═══════════════════════════════════════
   PAYMENT PROOF UPLOAD
═══════════════════════════════════════ */
.bt-proof-upload {
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed rgba(108, 99, 255, 0.3);
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.03);
    transition: all 0.25s;
}

.bt-proof-upload:hover {
    border-color: rgba(108, 99, 255, 0.5);
    background: rgba(108, 99, 255, 0.06);
}

.bt-proof-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #a5a0ff;
    font-size: 0.82rem;
    font-weight: 500;
}

.bt-proof-label svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.bt-proof-label span {
    font-weight: 600;
}

.bt-proof-label small {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin-top: 2px;
}

.bt-proof-input {
    margin-top: 10px;
    width: 100%;
    font-size: 0.82rem;
    color: #fff;
}

.bt-proof-input::file-selector-button {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    background: rgba(108, 99, 255, 0.1);
    color: #a5a0ff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s;
}

.bt-proof-input::file-selector-button:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: #6c63ff;
}

.bt-proof-preview {
    margin-top: 10px;
    position: relative;
    display: inline-block;
}

.bt-proof-preview img {
    max-width: 160px;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bt-proof-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff4757;
    color: #fff;
    border: 2px solid #1e2a45;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* ═══════════════════════════════════════
   SELECT2 DROPDOWN FIX (Country/Region)
   The dropdown panel has white background but text is also white in dark theme
═══════════════════════════════════════ */
.select2-container--default .select2-dropdown {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    z-index: 999999 !important;
}

.select2-container--default .select2-results__option {
    color: #1a1a1a !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
    background: #6c63ff !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: #f0eeff !important;
    color: #6c63ff !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    color: #1a1a1a !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #6c63ff !important;
    outline: none !important;
}

/* Fix the selected value display inside the input */
.btc-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
}

/* ═══════════════════════════════════════
   DUPLICATE TITLE FIX
   Hide the duplicate "ငွေပေးချေမှုနည်းလမ်း" heading from WooCommerce
═══════════════════════════════════════ */
.btc-payment-wrap #payment > h3,
.btc-payment-wrap #payment > h4,
.btc-payment-wrap .woocommerce-checkout-payment > h3,
.btc-payment-wrap .woocommerce-checkout-review-order > h3,
#order_review_heading {
    display: none !important;
}

/* ═══════════════════════════════════════
   "NO PAYMENT METHODS" NOTICE FIX
   Make it smaller and centered
═══════════════════════════════════════ */
.btc-payment-wrap .woocommerce-notice--info,
.btc-payment-wrap .woocommerce-info {
    padding: 12px 14px !important;
    border: 1px dashed rgba(255, 193, 7, 0.3) !important;
    border-radius: 10px !important;
    background: rgba(255, 193, 7, 0.05) !important;
    color: #ffc107 !important;
    font-size: 0.76rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin: 0 0 12px 0 !important;
}

/* ═══════════════════════════════════════
   PLACE ORDER BUTTON - remove duplicate lock icon
   (WooCommerce adds its own, we add ours via CSS ::before)
═══════════════════════════════════════ */
#place_order .bt-place-order-icon,
#place_order .bt-place-order-text {
    display: none !important;
}


/* ═══════════════════════════════════════
   CUSTOM PAYMENT METHODS (Customizer-based)
═══════════════════════════════════════ */
.btc-methods-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btc-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.btc-method:hover {
    border-color: rgba(108, 99, 255, 0.3);
    background: rgba(108, 99, 255, 0.04);
}

.btc-method.is-selected {
    border-color: #6c63ff;
    background: rgba(108, 99, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.12);
}

.btc-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.btc-method__radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.btc-method.is-selected .btc-method__radio {
    border-color: #6c63ff;
}

.btc-method.is-selected .btc-method__radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c63ff;
}

.btc-method__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(0, 224, 240, 0.05));
    border: 1px solid rgba(108, 99, 255, 0.18);
    color: #a5a0ff;
    flex-shrink: 0;
    transition: all 0.25s;
}

.btc-method__icon svg {
    width: 16px;
    height: 16px;
}

.btc-method.is-selected .btc-method__icon {
    background: linear-gradient(135deg, #6c63ff, #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(108, 99, 255, 0.35);
}

.btc-method__info {
    flex: 1;
    min-width: 0;
}

.btc-method__info strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1px;
}

.btc-method__info small {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Method details panel */
.btc-method-details {
    padding: 10px 14px 10px 56px;
    margin: -2px 0 4px 0;
    border-left: 2px solid rgba(108, 99, 255, 0.3);
    margin-left: 22px;
    animation: btcSlideDown 0.3s ease;
}

.btc-method-desc {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.btc-method-qr {
    text-align: center;
    margin-bottom: 10px;
}

.btc-method-qr img {
    max-width: 120px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 4px;
    display: block;
}

.btc-method-qr span {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
}

.btc-method-account {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btc-method-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 0.78rem;
}

.btc-method-account-row span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
}

.btc-method-account-row strong {
    color: #fff;
    font-weight: 600;
}

.btc-cod-note {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 193, 7, 0.06);
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-radius: 6px;
    font-size: 0.72rem;
    color: #ffc107;
}

.btc-no-methods {
    text-align: center;
    padding: 20px;
    border: 1px dashed rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.04);
    color: #ffc107;
    font-size: 0.8rem;
}

.btc-no-methods span {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 6px;
}

/* Place Order button */
.btc-place-order {
    margin-top: 16px;
}

.btc-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #6c63ff 0%, #8b5cf6 50%, #6c63ff 100%);
    background-size: 200% 100%;
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.35);
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btc-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btc-submit-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.5);
}

.btc-submit-btn:hover::before {
    left: 100%;
}

.btc-submit-btn:active {
    transform: translateY(0);
}

.btc-submit-btn__lock {
    font-size: 0.9rem;
}

.btc-submit-btn__arrow {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btc-submit-btn:hover .btc-submit-btn__arrow {
    transform: translateX(4px);
}

/* Hide WooCommerce's default place order button (we have our own) */
#order_review #place_order,
.woocommerce-checkout-review-order #place_order {
    display: none !important;
}


/* ═══════════════════════════════════════
   COD ZONES DISPLAY
═══════════════════════════════════════ */
.btc-cod-zones {
    margin: 8px 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.btc-cod-zones-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btc-cod-zones-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.btc-cod-zone-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 500;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 4px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════
   DELIVERY ZONE PRICING TABLE
═══════════════════════════════════════ */
.btc-delivery-zones-info {
    margin: 4px 0 8px;
    padding: 14px 16px;
    background: rgba(108, 99, 255, 0.06);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 10px;
}

.btc-delivery-zones-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--btc-text, rgba(255,255,255,0.92));
    margin-bottom: 10px;
}

.btc-delivery-zones-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btc-dz-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.btc-dz-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.btc-dz-fee {
    font-size: 0.78rem;
    font-weight: 700;
    color: #a78bfa;
}

.btc-dz-row.btc-dz-free {
    background: rgba(74, 222, 128, 0.06);
    border-color: rgba(74, 222, 128, 0.15);
}

.btc-dz-fee-free {
    color: #4ade80 !important;
    font-weight: 800;
}

.btc-delivery-zones-note {
    margin: 8px 0 0;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

/* Light mode */
html[data-theme="light"] .btc-delivery-zones-info {
    background: rgba(108, 99, 255, 0.04);
    border-color: rgba(108, 99, 255, 0.12);
}

html[data-theme="light"] .btc-dz-row {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .btc-dz-name {
    color: #333;
}

html[data-theme="light"] .btc-dz-fee {
    color: #6c63ff;
}

html[data-theme="light"] .btc-delivery-zones-note {
    color: #888;
}

/* Township tags inside expandable zones */
.btc-dz-expandable {
    cursor: pointer;
    transition: background 0.2s;
}

.btc-dz-expandable:hover {
    background: rgba(108, 99, 255, 0.1) !important;
}

.btc-dz-toggle {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-left: 4px;
    transition: transform 0.2s;
}

.btc-dz-townships {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 12px 10px;
    animation: btcDzSlide 0.2s ease;
}

@keyframes btcDzSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.btc-dz-township-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 4px;
    white-space: nowrap;
}

html[data-theme="light"] .btc-dz-township-tag {
    color: #6c63ff;
    background: rgba(108, 99, 255, 0.06);
    border-color: rgba(108, 99, 255, 0.15);
}

/* ═══════════════════════════════════════
   DELIVERY ZONE — INTERACTIVE STATES
═══════════════════════════════════════ */
/* Highlight matched zone */
.btc-dz-row.is-matched {
    background: rgba(74, 222, 128, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.45) !important;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.18);
    transform: translateX(2px);
    transition: all 0.25s ease;
}
.btc-dz-row.is-matched .btc-dz-name { color: #4ade80; font-weight: 700; }
.btc-dz-row.is-matched .btc-dz-fee { color: #4ade80; }
.btc-dz-row.btc-dz-free.is-matched { background: rgba(74, 222, 128, 0.18) !important; }

/* Status banner */
.btc-dz-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.25);
    transition: all 0.25s ease;
}
.btc-dz-status[data-kind="matched"] {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.35);
}
.btc-dz-status[data-kind="free"] {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(108, 99, 255, 0.1));
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25), 0 4px 16px rgba(74, 222, 128, 0.15);
}
.btc-dz-status[data-kind="default"] {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.35);
}
.btc-dz-status__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.btc-dz-status__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.btc-dz-status__body strong {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}
.btc-dz-status[data-kind="matched"] .btc-dz-status__body strong { color: #4ade80; }
.btc-dz-status[data-kind="free"] .btc-dz-status__body strong { color: #4ade80; }
.btc-dz-status[data-kind="default"] .btc-dz-status__body strong { color: #fbbf24; }
.btc-dz-status__body small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

html[data-theme="light"] .btc-dz-status__body strong { color: #1a1a1a; }
html[data-theme="light"] .btc-dz-status[data-kind="matched"] .btc-dz-status__body strong { color: #16a34a; }
html[data-theme="light"] .btc-dz-status[data-kind="free"] .btc-dz-status__body strong { color: #16a34a; }
html[data-theme="light"] .btc-dz-status[data-kind="default"] .btc-dz-status__body strong { color: #b45309; }
html[data-theme="light"] .btc-dz-status__body small { color: #555; }

/* Live delivery fee row in totals */
.btc-totals__row--delivery {
    background: rgba(74, 222, 128, 0.06);
    border-radius: 8px;
    padding: 8px 10px !important;
    margin: 4px 0;
    border: 1px dashed rgba(74, 222, 128, 0.3);
    animation: btcDeliveryFadeIn 0.3s ease;
}
@keyframes btcDeliveryFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.btc-totals__row--delivery span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #4ade80;
}
.btc-totals__row--delivery .btc-delivery-fee-zone {
    font-style: normal;
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}
.btc-totals__row--delivery .btc-delivery-fee-amount {
    font-weight: 700;
    color: #4ade80;
}
.btc-totals__row--delivery .btc-delivery-fee-amount.is-free {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

html[data-theme="light"] .btc-totals__row--delivery {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(22, 163, 74, 0.3);
}
html[data-theme="light"] .btc-totals__row--delivery span:first-child,
html[data-theme="light"] .btc-totals__row--delivery .btc-delivery-fee-amount {
    color: #16a34a;
}
html[data-theme="light"] .btc-totals__row--delivery .btc-delivery-fee-zone {
    color: #555;
}

/* ═══════════════════════════════════════
   GOOGLE MAPS LOCATION FIELD
═══════════════════════════════════════ */
.btc-map-field {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.03);
}

.btc-map-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.btc-map-field-label svg {
    color: #ff6b6b;
}

.btc-map-field-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

#btcMapContainer {
    width: 100%;
    height: 280px;
    min-height: 280px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    position: relative;
}

.btc-map-coords {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btc-map-coords input {
    flex: 1;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.78rem;
    font-family: monospace;
}

.btc-map-coords input:focus {
    border-color: #6c63ff;
    outline: none;
}

.btc-map-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #6c63ff;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btc-map-btn:hover {
    background: #5a52e0;
}

/* Map layer toggle (Default / Satellite) */
.btc-map-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}
.btc-map-layers {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.btc-map-layer-btn {
    padding: 5px 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.btc-map-layer-btn:hover {
    color: #fff;
    background: rgba(108, 99, 255, 0.1);
}
.btc-map-layer-btn.is-active {
    background: linear-gradient(135deg, #6c63ff, #4f46e5);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.35);
}

/* Map hint badge after pin set */
.btc-map-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    font-size: 0.72rem;
    color: #4ade80;
    font-weight: 600;
}
.btc-map-hint__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.2);
    font-size: 0.7rem;
}

/* Make sure leaflet sits properly inside our container */
#btcMapContainer.leaflet-container {
    background: #1e293b;
    cursor: crosshair;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #1e293b !important;
    color: #fff !important;
}

/* ─── Hide broken-tile placeholder icons ───
   When a tile provider fails or is rate-limited, browsers normally render
   the default broken-image icon (red X). We suppress that so the map
   gracefully shows the dark background while the fallback provider loads. */
#btcMapContainer .leaflet-tile-container img.leaflet-tile-loaded[src=""],
#btcMapContainer .leaflet-tile-container img:not([src]),
#btcMapContainer .leaflet-tile-container img[src*="data:image/gif;base64,R0lG"] {
    visibility: hidden;
}
#btcMapContainer .leaflet-tile {
    /* Hide alt-text + broken icon, keep tile box */
    color: transparent;
    font-size: 0;
}
#btcMapContainer .leaflet-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #1e293b;
    z-index: -1;
}
/* Subtle "loading" pulse on the map container itself so it doesn't look dead */
#btcMapContainer.leaflet-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.04), transparent);
    pointer-events: none;
    z-index: 0;
}

html[data-theme="light"] .btc-map-layers {
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .btc-map-layer-btn { color: #555; }
html[data-theme="light"] .btc-map-layer-btn.is-active { color: #fff; }
html[data-theme="light"] .btc-map-hint {
    background: rgba(74, 222, 128, 0.08);
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.3);
}
html[data-theme="light"] #btcMapContainer.leaflet-container { background: #f0f0f0; }
html[data-theme="light"] #btcMapContainer .leaflet-tile::before { background: #f0f0f0; }


/* ═══════════════════════════════════════
   CUSTOM CHECKOUT FORM FIELDS
═══════════════════════════════════════ */
.btc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.btc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btc-field-full {
    grid-column: 1 / -1;
}

.btc-field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.btc-field label .req {
    color: #ff6b7a;
    margin-left: 2px;
}

.btc-field input[type="text"],
.btc-field input[type="email"],
.btc-field input[type="tel"],
.btc-field input[type="number"],
.btc-field textarea,
.btc-field select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.88rem;
    transition: all 0.25s;
    font-family: inherit;
    min-height: 42px;
    box-sizing: border-box;
}

.btc-field input:hover,
.btc-field textarea:hover,
.btc-field select:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.btc-field input:focus,
.btc-field textarea:focus,
.btc-field select:focus {
    border-color: #6c63ff;
    background: rgba(108, 99, 255, 0.06);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.btc-field input::placeholder,
.btc-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btc-field textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .btc-form-grid {
        grid-template-columns: 1fr;
    }
    .btc-field-half {
        grid-column: 1 / -1;
    }
}
