/* ==========================================
   RAMAZAN MARKET - MINI CART
========================================== */

.rm-mini-cart {
    position: fixed;
    inset: 0;
    z-index: 999999;
    visibility: hidden;
    pointer-events: none;
}

.rm-mini-cart.is-open {
    visibility: visible;
    pointer-events: auto;
}


/* ==========================================
   OVERLAY
========================================== */

.rm-mini-cart__overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 32, 51, 0.45);
    opacity: 0;
    transition: opacity .3s ease;
}

.rm-mini-cart.is-open .rm-mini-cart__overlay {
    opacity: 1;
}


/* ==========================================
   PANEL
========================================== */

.rm-mini-cart__panel {
    position: absolute;
    top: 0;
    right: 0;

    width: 420px;
    max-width: 100%;
    height: 100%;

    background: #ffffff;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    transition: transform .3s ease;

    box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
}

.rm-mini-cart.is-open .rm-mini-cart__panel {
    transform: translateX(0);
}


/* ==========================================
   HEADER
========================================== */

.rm-mini-cart__header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 22px;

    border-bottom: 1px solid #E8E3D8;
}

.rm-mini-cart__header h2 {
    margin: 0;
    font-size: 24px;
    color: #172033;
}


/* ==========================================
   MINI CART - CLOSE BUTTON
========================================== */

.rm-mini-cart__close {
    width: 42px !important;
    height: 42px !important;

    padding: 0 !important;

    border: 1px solid #E8E3D8 !important;
    border-radius: 50% !important;

    background: #F8F6F1 !important;

    color: #172033 !important;

    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    cursor: pointer;

    transition: all .2s ease;
}

.rm-mini-cart__close:hover {
    background: #C58A16 !important;
    border-color: #C58A16 !important;
    color: #ffffff !important;

    transform: rotate(90deg);
}
/* ==========================================
   BODY
========================================== */

.rm-mini-cart__body {
    flex: 1;

    overflow-y: auto;

    padding: 20px;
}


/* ==========================================
   CART ITEM
========================================== */

.rm-cart-item {
    padding: 16px 0;

    border-bottom: 1px solid #E8E3D8;
}


/* ==========================================
   ITEM INFO
========================================== */

.rm-cart-item__info {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 15px;

    margin-bottom: 12px;
}

.rm-cart-item__info strong {
    color: #172033;
    font-weight: 800;
}

.rm-cart-item__info span {
    color: #C58A16;
    font-weight: 800;
}


/* ==========================================
   ACTIONS
========================================== */

.rm-cart-item__actions {
    display: flex;

    align-items: center;

    gap: 10px;
}


/* ==========================================
   ALL ACTION BUTTONS
========================================== */

.rm-cart-item__actions button {
    width: 34px;
    height: 34px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 18px;
    font-weight: 800;

    transition:
        background .2s ease,
        transform .15s ease,
        opacity .2s ease;

    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-cart-item__actions button:hover {
    transform: translateY(-1px);
}


/* ==========================================
   DELETE BUTTON - RED
========================================== */

.rm-cart-item__remove {
    background: #D64545 !important;

    color: #ffffff !important;

    border: 1px solid #D64545 !important;

    margin-right: auto;
}

.rm-cart-item__remove:hover {
    background: #B93636 !important;

    border-color: #B93636 !important;
}


/* ==========================================
   PLUS BUTTON - GREEN
========================================== */

/*
 * The cart buttons are currently rendered
 * in this order:
 *
 * delete
 * plus
 * quantity
 * minus
 */

.rm-cart-item__actions
button:not(.rm-cart-item__remove):first-of-type {
    background: #16A34A !important;

    color: #ffffff !important;

    border: 1px solid #16A34A !important;
}

.rm-cart-item__actions
button:not(.rm-cart-item__remove):first-of-type:hover {
    background: #15803D !important;

    border-color: #15803D !important;
}


/* ==========================================
   MINUS BUTTON - BLUE
========================================== */

.rm-cart-item__actions
button:not(.rm-cart-item__remove):last-of-type {
    background: #2563EB !important;

    color: #ffffff !important;

    border: 1px solid #2563EB !important;
}

.rm-cart-item__actions
button:not(.rm-cart-item__remove):last-of-type:hover {
    background: #1D4ED8 !important;

    border-color: #1D4ED8 !important;
}


/* ==========================================
   QUANTITY NUMBER
========================================== */

.rm-cart-item__actions span {
    min-width: 24px;

    text-align: center;

    color: #172033;

    font-size: 18px;

    font-weight: 800;
}


/* ==========================================
   EMPTY CART
========================================== */

.rm-mini-cart__empty {
    text-align: center;

    padding: 80px 20px;

    color: #6B7280;
}

.rm-mini-cart__empty div {
    font-size: 55px;

    margin-bottom: 15px;
}

.rm-mini-cart__empty p {
    font-size: 20px;

    font-weight: 800;

    color: #172033;
}


/* ==========================================
   FOOTER
========================================== */

.rm-mini-cart__footer {
    padding: 20px;

    border-top: 1px solid #E8E3D8;

    background: #ffffff;
}


/* ==========================================
   FREE DELIVERY
========================================== */

.rm-mini-cart__delivery {
    background: #FAF8F2;

    border: 1px solid #C58A16;

    border-radius: 12px;

    padding: 12px;

    text-align: center;

    font-size: 14px;

    font-weight: 700;

    color: #172033;

    margin-bottom: 15px;
}


/* ==========================================
   TOTAL
========================================== */

.rm-mini-cart__total {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;

    font-size: 20px;

    color: #172033;
}

.rm-mini-cart__total strong {
    font-size: 24px;

    color: #C58A16;
}


/* ==========================================
   WHATSAPP
========================================== */

.rm-mini-cart__whatsapp {
    width: 100%;

    padding: 16px;

    border: 0;

    border-radius: 12px;

    background: #22C55E;

    color: #ffffff;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    transition: background .2s ease;
}

.rm-mini-cart__whatsapp:hover {
    background: #16A34A;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 480px) {

    .rm-mini-cart__panel {
        width: 100%;
    }

}


/* ==========================================
   RAMAZAN MARKET - FLOATING CART
========================================== */

.rm-floating-cart {
    position: fixed;

    left: 25px;
    bottom: 25px;

    width: 64px;
    height: 64px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(23, 32, 51, .18);

    z-index: 999998;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    border: 1px solid #E8E3D8;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.rm-floating-cart:hover {
    transform: scale(1.05);

    box-shadow:
        0 10px 30px rgba(23, 32, 51, .23);
}


/* ==========================================
   FLOATING CART ICON
========================================== */

.rm-floating-cart__icon {
    font-size: 32px;

    line-height: 1;
}


/* ==========================================
   FLOATING CART COUNT
========================================== */

.rm-floating-cart__count {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 25px;
    height: 25px;

    padding: 0 6px;

    border-radius: 50%;

    background: #C58A16;

    color: #ffffff;

    font-size: 13px;

    font-weight: 800;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}


/* ==========================================
   FLOATING CART MOBILE
========================================== */

@media (max-width: 480px) {

    .rm-floating-cart {
        left: 18px;
        bottom: 18px;

        width: 58px;
        height: 58px;
    }

    .rm-floating-cart__icon {
        font-size: 29px;
    }

}


/* ==========================================
   HIDE ORDERABLE FLOATING CART
========================================== */

.orderable-floating-cart__button {
    display: none !important;
}


/* ==========================================
   RAMAZAN MARKET - COLOR SYSTEM
========================================== */

:root {

    --rm-gold: #C58A16;

    --rm-gold-hover: #A8730F;

    --rm-navy: #172033;

    --rm-cream: #FAF8F2;

    --rm-border: #E8E3D8;

    --rm-red: #D64545;

    --rm-red-hover: #B93636;

    --rm-green: #16A34A;

    --rm-green-hover: #15803D;

    --rm-blue: #2563EB;

    --rm-blue-hover: #1D4ED8;
}


/* ==========================================
   FORCE CART COLORS
========================================== */

/* DELETE */

.rm-cart-item__remove {
    background: var(--rm-red) !important;
    color: #ffffff !important;
    border-color: var(--rm-red) !important;
}

.rm-cart-item__remove:hover {
    background: var(--rm-red-hover) !important;
    border-color: var(--rm-red-hover) !important;
}


/* PLUS */

.rm-cart-item__actions
button:not(.rm-cart-item__remove):first-of-type {
    background: var(--rm-green) !important;
    color: #ffffff !important;
    border-color: var(--rm-green) !important;
}

.rm-cart-item__actions
button:not(.rm-cart-item__remove):first-of-type:hover {
    background: var(--rm-green-hover) !important;
    border-color: var(--rm-green-hover) !important;
}


/* MINUS */

.rm-cart-item__actions
button:not(.rm-cart-item__remove):last-of-type {
    background: var(--rm-blue) !important;
    color: #ffffff !important;
    border-color: var(--rm-blue) !important;
}

.rm-cart-item__actions
button:not(.rm-cart-item__remove):last-of-type:hover {
    background: var(--rm-blue-hover) !important;
    border-color: var(--rm-blue-hover) !important;
}
/* ==========================================
   GUEST CUSTOMER MODAL
========================================== */

.rm-customer-modal {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    visibility: hidden;
    pointer-events: none;
}

.rm-customer-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.rm-customer-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: .25s ease;
}

.rm-customer-modal.is-open
.rm-customer-modal__overlay {
    opacity: 1;
}

.rm-customer-modal__box {
    position: relative;
    width: 460px;
    max-width: calc(100% - 30px);
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    margin: 15px auto;
    top: 50%;
    transform: translateY(-45%);
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    opacity: 0;
    transition: .25s ease;
}

.rm-customer-modal.is-open
.rm-customer-modal__box {
    transform: translateY(-50%);
    opacity: 1;
}

.rm-customer-modal__box h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 24px;
}

.rm-customer-modal__box > p {
    margin: 0 0 22px;
    color: #6b7280;
}

.rm-customer-modal__box label {
    display: block;
    margin: 15px 0 7px;
    color: #172033;
    font-weight: 700;
}

.rm-customer-modal__box label span {
    color: #6b7280;
    font-weight: 400;
    font-size: 13px;
}

.rm-customer-modal__box input,
.rm-customer-modal__box textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    background: #fff;
}

.rm-customer-modal__box textarea {
    resize: vertical;
}

.rm-customer-modal__box input:focus,
.rm-customer-modal__box textarea:focus {
    outline: none;
    border-color: #C58A16;
}

.rm-customer-modal__error {
    display: none;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background: #fff1f1;
    color: #D64545;
    font-size: 14px;
    font-weight: 700;
}

.rm-customer-modal__error.is-visible {
    display: block;
}

.rm-customer-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.rm-customer-modal__actions button {
    flex: 1;
    border: 0;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.rm-customer-cancel {
    background: #f3f4f6;
    color: #172033;
}

.rm-customer-confirm {
    background: #C58A16;
    color: #fff;
}

.rm-customer-confirm:hover {
    background: #A8730F;
}

@media (max-width: 480px) {

    .rm-customer-modal__box {
        width: auto;
        padding: 20px;
    }

    .rm-customer-modal__actions {
        flex-direction: column;
    }
}