/* =====================================================
   WooCommerce Delivery Zone Blocker — Checkout Styles
   ===================================================== */

/* -------------------------------------------------------
   Persistent warning banner
   ----------------------------------------------------- */
#dzb-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s ease;
    font-family: inherit;
}

#dzb-banner.dzb-banner-in {
    opacity: 1;
    transform: translateY(0);
}

#dzb-banner.dzb-banner-out {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.dzb-banner-icon {
    font-size: 18px;
    line-height: 1.3;
    flex-shrink: 0;
    color: #d97706;
}

.dzb-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dzb-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    display: block;
}

.dzb-banner-msg {
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
}

.dzb-banner-more {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #f59e0b;
    color: #b45309;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    align-self: center;
    transition: background .15s;
}

.dzb-banner-more:hover {
    background: #fef3c7;
}

/* -------------------------------------------------------
   Place Order button — blocked state
   ----------------------------------------------------- */
#place_order.dzb-order-blocked {
    background-color: #9ca3af !important;
    border-color: #9ca3af !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* -------------------------------------------------------
   Modal overlay
   ----------------------------------------------------- */
#dzb-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

#dzb-modal.dzb-modal-visible {
    display: flex;
}

#dzb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    animation: dzb-fade-in .2s ease;
}

#dzb-modal-box {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px 32px;
    max-width: 420px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: dzb-slide-up .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#dzb-modal-icon {
    width: 56px;
    height: 56px;
    background: #fff7ed;
    border: 2px solid #fed7aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ea580c;
}

#dzb-modal-icon svg {
    width: 28px;
    height: 28px;
}

#dzb-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.3;
}

#dzb-modal-body {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 28px;
}

#dzb-modal-close {
    display: inline-block;
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    width: 100%;
}

#dzb-modal-close:hover {
    background: #dc2626;
}

#dzb-modal-close:active {
    transform: scale(0.98);
}

body.dzb-modal-open {
    overflow: hidden;
}

/* -------------------------------------------------------
   Animations
   ----------------------------------------------------- */
@keyframes dzb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes dzb-slide-up {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* -------------------------------------------------------
   Responsive
   ----------------------------------------------------- */
@media (max-width: 480px) {
    #dzb-modal-box { padding: 28px 20px 24px; }
    #dzb-modal-title { font-size: 18px; }
    #dzb-banner { flex-direction: column; gap: 8px; }
    .dzb-banner-more { align-self: flex-start; }
}
