/* =====================================================
   WCCA BOGO Offer — styles
   Matches the existing wcca design language.
   ===================================================== */

/* ---------- REGISTRATION ADDRESS FIELDS ---------- */
.wcca-bogo-addr-group {
    margin-bottom: 18px;
}
.wcca-bogo-addr-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1c1c1c;
    margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #c13124;
    display: inline-block;
}
.wcca-bogo-addr-group .wcca-field select {
    flex: 1;
    padding: 13px 14px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14.5px;
    color: #1c1c1c;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
}
.wcca-bogo-ship-same {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    margin: 10px 0 6px;
    user-select: none;
}
.wcca-bogo-ship-same input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1c1c1c;
}

/* ---------- CART BONUS ITEMS ---------- */
.wcca-bogo-badge {
    display: inline-block;
    background: #c13124;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}
.wcca-bogo-qty-locked {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-weight: 600;
    color: #888;
}
tr.cart_item:has(.wcca-bogo-badge) {
    background: linear-gradient(90deg, rgba(193,49,36,0.04), transparent);
}

/* ---------- BOGO POPUP ---------- */
.wcca-bogo-popup[hidden] { display: none; }

.wcca-bogo-popup {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.wcca-bogo-popup__backdrop {
    position: absolute; inset: 0;
    background: rgba(20, 20, 20, 0.72);
    backdrop-filter: blur(4px);
    cursor: pointer;
    animation: wcca-bogo-fade 0.25s ease;
}
.wcca-bogo-popup__card {
    position: relative;
    max-width: 460px;
    width: calc(100% - 32px);
    background: #fff;
    border-radius: 12px;
    padding: 44px 36px 32px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    animation: wcca-bogo-pop 0.35s cubic-bezier(.34,1.56,.64,1);
}
.wcca-bogo-popup__close {
    position: absolute; top: 12px; right: 16px;
    background: transparent; border: none;
    font-size: 28px; line-height: 1;
    color: #999; cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}
.wcca-bogo-popup__close:hover { color: #1c1c1c; }

.wcca-bogo-popup__eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #c13124;
    margin-bottom: 12px;
}
.wcca-bogo-popup__title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    color: #1c1c1c;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.wcca-bogo-popup__title span {
    display: block;
    color: #c13124;
    margin-top: 4px;
}
.wcca-bogo-popup__body {
    font-size: 15px;
    line-height: 1.55;
    color: #555;
    margin: 0 0 24px;
}
.wcca-bogo-popup__cta {
    display: inline-block;
    background: #c13124;
    color: #fff !important;
    text-decoration: none;
    padding: 15px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: transform 0.15s, background 0.15s;
}
.wcca-bogo-popup__cta:hover {
    background: #a3291e;
    transform: translateY(-1px);
}
.wcca-bogo-popup__fineprint {
    font-size: 11.5px;
    color: #999;
    margin: 16px 0 0;
}

body.wcca-bogo-popup-open { overflow: hidden; }

@keyframes wcca-bogo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wcca-bogo-pop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@media (max-width: 480px) {
    .wcca-bogo-popup__card { padding: 36px 24px 26px; }
    .wcca-bogo-popup__title { font-size: 28px; }
}

/* ---------- ADMIN ORDER SCREEN HELPERS ---------- */
.wcca-bogo-review-box .button { text-align: left; }
