/* Blockart - wishlist, delivery check, offer popup */
:root { --ba-accent: #eb8268; --ba-accent-2: #d96b50; --ba-ink: #222; --ba-muted: #777; --ba-line: #eee; --ba-ok: #1f8a5b; --ba-err: #c0392b; }


/* Blockart - Premium Delivery Date Checker */

.ba-engage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.ba-pin {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    background: linear-gradient(115deg, #fff5f2 0%, #fffafa 65%, #fcebea 100%);
    border: 1px solid #f3dfdc;
    border-radius: 10px;
    overflow: hidden;
}

/* Heading */
.ba-pin label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 5px;
    color: #503b48;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.ba-pin label i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #fff;
    background: #d96b86;
    border-radius: 8px;
    font-size: 15px;
}

/* Supporting text */
.ba-pin label::after {
    content: "";
}

.ba-pin label + .ba-pin-row {
    margin-top: 12px;
}

/* PIN input and button */
.ba-pin-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 440px;
    min-height: 46px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ead8dc;
    border-radius: 25px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.ba-pin-row:focus-within {
    border-color: #d96b86;
    box-shadow: 0 0 0 3px rgba(217, 107, 134, .12);
}

.ba-pin-row input {
    flex: 1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 11px 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #503b48;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: .5px;
}

.ba-pin-row input::placeholder {
    color: #999096;
    letter-spacing: 0;
}

.ba-pin-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 0 23px;
    border: 0;
    border-radius: 0;
    background: #d65379;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    cursor: pointer;
    transition: background .2s;
}

.ba-pin-row button:hover {
    background: #b94367;
}

.ba-pin-row button:focus-visible {
    outline: 2px solid #503b48;
    outline-offset: -4px;
}

/* Result message */
.ba-pin-msg {
    min-height: 0;
    margin-top: 8px;
    color: #777078;
    font-size: 13px;
    line-height: 1.5;
}

.ba-pin-msg:empty {
    display: none;
}

.ba-pin-msg.ok {
    color: #1f8a5b;
}

.ba-pin-msg.err {
    color: #c0392b;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .ba-engage {
        margin-top: 14px;
    }

    .ba-pin {
        padding: 13px;
        border-radius: 9px;
    }

    .ba-pin label {
        font-size: 14px;
    }

    .ba-pin-row {
        max-width: 100%;
        min-height: 44px;
    }

    .ba-pin-row input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .ba-pin-row button {
        padding: 0 15px;
        font-size: 12px;
    }
}


.ba-pin-help {
    margin: 0 0 10px 41px;
    color: #756672;
    font-size: 12.5px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .ba-pin-help {
        margin-left: 0;
    }
}


.ba-wish { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #ddd; border-radius: 8px;
    padding: 9px 14px; font-size: 14px; font-weight: 500; color: var(--ba-ink); cursor: pointer; transition: border-color .15s, color .15s; }
.ba-wish i { color: var(--ba-accent); font-size: 16px; }
.ba-wish:hover, .ba-wish.is-on { border-color: var(--ba-accent); color: var(--ba-accent-2); }
.add_CB_left { cursor: pointer; }
.add_CB_left .fas.fa-heart { color: var(--ba-accent); }

.ba-wish-link { position: relative; }
.ba-wish-link .num_total_BX { margin-left: 2px; }

/* panels */
.ba-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 9998; opacity: 0; transition: opacity .2s; }
.ba-back.in { opacity: 1; }
.ba-panel { position: fixed; z-index: 9999; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); opacity: 0; transition: transform .25s, opacity .2s; font-size: 14px; color: var(--ba-ink); }
.ba-panel.in { opacity: 1; }
.ba-panel-right { top: 0; right: 0; bottom: 0; width: min(400px, 92vw); transform: translateX(30px); display: flex; flex-direction: column; }
.ba-panel-right.in { transform: none; }
.ba-panel-center { left: 50%; top: 50%; width: min(420px, 92vw); border-radius: 14px; transform: translate(-50%, -46%); max-height: 92vh; overflow: auto; }
.ba-panel-center.in { transform: translate(-50%, -50%); }
.ba-drawer-head { display: flex; align-items: center; gap: 6px; padding: 16px 18px; border-bottom: 1px solid var(--ba-line); font-size: 16px; }
.ba-drawer-head span { color: var(--ba-muted); }
.ba-x { margin-left: auto; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #999; padding: 0 4px; }
.ba-x-abs { position: absolute; right: 10px; top: 8px; }
.ba-empty { text-align: center; color: var(--ba-muted); padding: 50px 20px; }
.ba-empty i { font-size: 34px; color: #ddd; display: block; margin-bottom: 10px; }
.ba-wl { list-style: none; margin: 0; padding: 6px 18px; overflow: auto; flex: 1; }
.ba-wl li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ba-line); align-items: flex-start; }
.ba-wl img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; background: #f5f5f5; }
.ba-wl li > div { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ba-wl li > div > a:first-child { color: var(--ba-ink); text-decoration: none; font-weight: 500; }
.ba-wl-buy { color: var(--ba-accent-2) !important; font-weight: 600; font-size: 13px; text-decoration: none; }
.ba-note { color: var(--ba-muted); font-size: 12.5px; margin: 10px 18px 6px; }
.ba-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ba-accent); color: #fff !important; border: 0; border-radius: 8px;
    padding: 12px 18px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; width: 100%; }
.ba-btn:hover { background: var(--ba-accent-2); }
.ba-btn-wa { background: #25d366; width: auto; margin: 0 18px 18px; }
.ba-btn-wa:hover { background: #1eb457; }

/* offer popup */
.ba-offer { padding: 30px 26px 24px; text-align: center; }
.ba-offer-tag { display: inline-block; background: #fdeee9; color: var(--ba-accent-2); font-weight: 700; font-size: 11.5px; letter-spacing: 1px; padding: 5px 10px; border-radius: 20px; }
.ba-offer h3 { font-size: 22px; margin: 12px 0 6px; line-height: 1.25; }
.ba-offer p { color: var(--ba-muted); margin: 0 0 16px; }
.ba-offer-row { display: flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.ba-offer-row span { background: #f7f7f7; padding: 11px 12px; color: #555; font-weight: 600; }
.ba-offer-row input { flex: 1; border: 0; padding: 11px 12px; font-size: 16px; outline: 0; min-width: 0; }
.ba-optin { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 12.5px; color: #666; margin: 0 0 14px; font-weight: 400; }
.ba-optin input { margin-top: 2px; accent-color: var(--ba-accent); }
.ba-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ba-offer-done { margin: 6px 0 8px !important; }
.ba-coupon { border: 2px dashed var(--ba-accent); border-radius: 10px; padding: 12px; font-size: 22px; font-weight: 800; letter-spacing: 2px; color: var(--ba-accent-2); display: flex; align-items: center; justify-content: center; gap: 12px; }
.ba-copy-coupon { border: 0; background: var(--ba-accent); color: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0; cursor: pointer; }

.ba-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #222; color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 14px;
    z-index: 10000; opacity: 0; transition: all .25s; pointer-events: none; }
.ba-toast.in { opacity: 1; transform: translate(-50%, 0); }
