/* =========================
   FONT SIZE SYSTEM
========================= */

html {
    font-size: 14px;
}

body.small {
    font-size: 12px;
}

body.normal {
    font-size: 14px;
}

body.large {
    font-size: 16px;
}

body,
button,
input,
textarea,
select {
    font-size: inherit;
}


/* =========================
   MODAL
========================= */

.modal-overlay {

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    transition: 0.25s;

    z-index: 9999;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {

    width: 100%;
    max-width: 380px;

    background: rgba(20,20,20,0.95);

    border: 1px solid rgba(255,255,255,0.06);

    border-radius: 24px;

    padding: 30px 24px;

    text-align: center;

    animation: modalShow 0.25s ease;

    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.modal-box h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-box p {
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 28px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-btn {

    flex: 1;
    height: 52px;

    border: none;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.2s;
}

.modal-btn.primary {

    background: linear-gradient(
        135deg,
        #2ecc71,
        #27ae60
    );

    color: white;

    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.25);
}

.modal-btn.secondary {

    background: rgba(255,255,255,0.08);
    color: white;
}

.modal-btn.secondary:hover {
    background: rgba(255,255,255,0.15);
}

.modal-btn:hover {
    transform: translateY(-2px);
}


/* =========================
   CARDS
========================= */

.card {
    cursor: pointer;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.order-card,
.delivery-card,
.pickup-card {
    position: relative;
}

.order-card:hover,
.delivery-card:hover,
.pickup-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}