/* css/navbar.css */
@font-face {
    font-family: 'Kawaii RT - Mona';
    src: url("../images/KawaiiRT-Mona.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bootzy TM';
    src: url("../images/BootzyTM.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

:root {
    --font-logo: 'Kawaii RT - Mona', 'Sniglet', 'Fredoka', cursive, sans-serif;
    --font-header: 'Bootzy TM', 'Urbanist', sans-serif;
    --font-body: 'Urbanist', sans-serif;

    --primary-pink: #F69299;
    --accent-pink: #F48A8E;
    --active-pink: #F48A8E;
    --hover-circle-bg: #FDE2DF;
    --text-dark: #594A42;
    --text-muted: #7C4F38;
    --nav-bg: #FBE6E4;
    --bg-main: #FDEFEE;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-dark) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 74px;
}

.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    padding: 14px 48px;
    box-sizing: border-box;
    z-index: 10000;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- BRAND LOGO --- */
.brand-container-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.brand-logo-img-nav,
.brand-container-nav img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    display: inline-block;
    flex-shrink: 0;
}

.brand-name-nav {
    font-family: var(--font-logo) !important;
    font-size: 26px;
    color: #f69299;
    -webkit-text-stroke: 1px #7c4f38;
    text-shadow: 
        -1px -1px 0 #7c4f38,
         1px -1px 0 #7c4f38,
        -1px  1px 0 #7c4f38,
         1px  1px 0 #7c4f38;
    letter-spacing: 0.5px;
    line-height: 1;
    display: inline-block;
}

/* --- DESKTOP NAV PILL MENU --- */
.nav-pill-menu {
    display: flex;
    align-items: center;
    background: var(--nav-bg);
    border-radius: 30px;
    padding: 3px;
    gap: 2px;
}

.nav-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border-radius: 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-pill-link i {
    font-size: 14px;
    color: var(--text-dark);
}

.nav-pill-link.active {
    background: #FBA9A6;
    color: #ffffff !important;
}

.nav-pill-link.active i {
    color: #ffffff !important;
}

.nav-pill-link:not(.active):hover {
    color: var(--primary-pink);
}

.nav-pill-link:not(.active):hover i {
    color: var(--primary-pink);
}

/* --- RIGHT NAV ACTIONS (DESKTOP) --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search-box {
    position: relative;
    background: #ffffff;
    border-radius: 30px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    width: 250px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1.5px solid #FCE1DD;
    transition: border-color 0.2s ease, width 0.2s ease;
}

.nav-search-box input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    font-size: 13.5px;
    color: var(--text-dark) !important;
    font-family: var(--font-body);
    font-weight: 500;
}

.nav-search-box input::placeholder {
    color: #d8bcbc;
}

.search-icon-btn {
    background: transparent;
    border: none;
    color: var(--accent-pink) !important;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-quick-action-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1.5px solid #FCE1DD;
    border-radius: 30px;
    padding: 9px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark) !important;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.nav-quick-action-btn i {
    font-size: 14px;
    color: var(--accent-pink);
}

.nav-quick-action-btn:hover {
    background-color: var(--hover-circle-bg);
    border-color: var(--primary-pink);
}

.nav-icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--accent-pink) !important;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-icon-btn:hover,
.nav-notif-container:hover .nav-icon-btn {
    background-color: var(--hover-circle-bg);
    color: var(--text-dark) !important;
}

.nav-icon-btn.active {
    background-color: var(--active-pink) !important;
    color: #ffffff !important;
}

/* Badge count for cart */
.nav-cart-badge,
.cart-badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #F48A8E;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 99px;
    padding: 2px 6px;
    line-height: 1;
    border: 2px solid var(--bg-main);
}

.nav-avatar-btn {
    width: 42px;
    height: 42px;
    background: var(--active-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.nav-avatar-btn:hover {
    transform: scale(1.04);
    opacity: 0.95;
}

.nav-profile-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
}

.nav-avatar-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
    border: none;
}

.nav-avatar-img-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-pink) !important;
    background: #ffffff;
    display: block;
    box-sizing: border-box;
    transition: transform 0.15s ease;
}

.nav-profile-dropdown-wrapper:hover .nav-avatar-img-badge {
    transform: scale(1.05);
}

.nav-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #FFF5F4;
    border: 2px solid #FCE1DD;
    border-radius: 20px;
    padding: 12px 0;
    box-shadow: 0 14px 34px rgba(89, 74, 66, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2200;
    font-family: var(--font-body);
}

.nav-profile-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #FFF5F4;
    border-left: 2px solid #FCE1DD;
    border-top: 2px solid #FCE1DD;
    transform: rotate(45deg);
    border-radius: 2px;
}

.nav-profile-dropdown-wrapper:hover .nav-profile-menu,
.nav-profile-dropdown-wrapper:focus-within .nav-profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    padding: 4px 18px 8px;
    display: flex;
    flex-direction: column;
}

.dropdown-greeting {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-username {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.dropdown-separator {
    border: none;
    height: 1px;
    background-color: #F8D3CE;
    margin: 6px 0;
}

.profile-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 18px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    transition: background 0.15s ease, padding-left 0.15s ease, color 0.15s ease;
}

.profile-dropdown-link i {
    font-size: 14px;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

.profile-dropdown-link:hover {
    background: #FDE8E5;
    color: var(--text-dark);
    padding-left: 22px;
}

.profile-dropdown-link:hover i {
    color: var(--active-pink);
}

.profile-dropdown-link.active {
    background: #FDE8E5;
    color: var(--text-dark);
}

.profile-dropdown-link.logout-accent {
    color: #D32F2F;
}

.profile-dropdown-link.logout-accent i {
    color: #D32F2F;
}

.profile-dropdown-link.logout-accent:hover {
    background: #FEECEB;
}

/* --- NOTIFICATION DROPDOWN POPOVER --- */
.nav-notif-container {
    position: relative;
    display: flex;
    align-items: center;
}

.notif-dropdown-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: -10px;
    width: 340px;
    background: #FDE8E5;
    border-radius: 22px;
    padding: 14px 14px 12px;
    box-shadow: 0 14px 34px rgba(89, 74, 66, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2100;
}

.notif-dropdown-popover::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 23px;
    width: 14px;
    height: 14px;
    background: #FDE8E5;
    transform: rotate(45deg);
    border-radius: 2px;
}

.nav-notif-container:hover .notif-dropdown-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-popover-header {
    padding: 0 4px 2px;
}

.notif-popover-title {
    font-family: var(--font-header) !important;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 1.5px !important;
    margin: 0;
}

.notif-popover-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popover-item-card {
    background: #FFF5F4;
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.popover-thumb-wrapper {
    position: relative;
    width: 44px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popover-thumb-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 22px;
    background: var(--thumb-accent, #F48A8E);
    border-radius: 8px;
    z-index: 1;
    opacity: 0.9;
}

.popover-thumb-img {
    position: relative;
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
    z-index: 2;
}

.popover-composite-thumb {
    position: relative;
    width: 44px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.popover-composite-thumb .cart-layer-flavor {
    position: absolute;
    width: 78%;
    height: 78%;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.popover-composite-thumb .cart-layer-toppings {
    position: absolute;
    width: 82%;
    height: 82%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

.popover-composite-thumb .cart-layer-cup {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: contain;
    z-index: 3;
    pointer-events: none;
}

.popover-item-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.popover-item-title {
    font-family: var(--font-header) !important;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.8px !important;
    line-height: 1.15;
    margin: 0;
}

.popover-item-desc {
    font-family: var(--font-body) !important;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.25;
    margin: 0;
}

.notif-popover-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.btn-popover-viewall {
    background: #FBA9A6;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 0;
    border-radius: 16px;
    flex: 1;
    text-align: center;
    transition: opacity 0.2s ease;
}

.btn-popover-markread {
    background: #FFF5F4;
    color: var(--text-dark);
    border: none;
    font-weight: 700;
    font-size: 11.5px;
    padding: 6px 0;
    border-radius: 16px;
    flex: 1.2;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-popover-viewall:hover,
.btn-popover-markread:hover {
    opacity: 0.88;
}

.mobile-bottom-nav {
    display: none;
}

/* ==================================================== */
/* MOBILE RESPONSIVE ADAPTATION (<= 860px)              */
/* ==================================================== */
@media (max-width: 860px) {
    .desktop-nav-menu {
        display: none !important;
    }

    body {
        padding-top: 56px;
    }

    .navbar-wrapper {
        position: fixed;
        top: 0;
        padding: 8px 14px;
        background: #FDEFEE;
        border-bottom: 1.5px solid #FCE1DD;
        box-shadow: 0 4px 16px rgba(89, 74, 66, 0.05);
        z-index: 10000;
    }

    .navbar-container {
        gap: 6px;
        position: relative;
    }

    .brand-container-nav {
        gap: 8px;
        transition: opacity 0.25s ease;
    }

    .brand-logo-img-nav,
    .brand-container-nav img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    .brand-name-nav {
        display: inline-block !important;
        font-size: 19px;
        letter-spacing: 0.2px;
        transition: opacity 0.25s ease;
    }

    .navbar-wrapper.search-expanded .brand-name-nav {
        opacity: 0 !important;
        pointer-events: none;
        width: 0;
        overflow: hidden;
    }

    .nav-actions {
        flex: 1;
        justify-content: flex-end;
        gap: 6px;
    }

    .nav-search-box {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
    }

    .nav-search-box input {
        width: 0;
        opacity: 0;
        padding: 0;
        font-size: 12px;
        background: transparent;
    }

    .nav-search-box.expanded {
        width: calc(100% - 130px);
        max-width: 220px;
        border-radius: 20px;
        background: #ffffff;
        border: 1.5px solid var(--primary-pink);
        padding: 0 8px 0 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .nav-search-box.expanded input {
        width: 100%;
        opacity: 1;
        padding: 4px 0;
    }

    .search-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        color: var(--accent-pink) !important;
        background: transparent;
    }

    .nav-quick-actions {
        gap: 4px;
    }

    .nav-quick-action-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        background: transparent;
        border: none;
        box-shadow: none;
        justify-content: center;
    }

    .nav-quick-action-btn span {
        display: none;
    }

    .nav-quick-action-btn i {
        font-size: 16px;
    }

    .nav-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        background: transparent;
        border: none;
        color: var(--accent-pink) !important;
    }

    .nav-avatar-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
        background: var(--accent-pink) !important;
    }

    .nav-avatar-img-badge {
        width: 36px;
        height: 36px;
        border-color: var(--accent-pink) !important;
    }

    /* Force-hidden below mobile breakpoint so touch tap won't flash popover */
    .notif-dropdown-popover {
        display: none !important;
    }

    .nav-profile-menu {
        right: 0;
        width: 200px;
    }

    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
        background: #FDEFEE !important;
        border-top: 1.5px solid #FCE1DD !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        padding: 4px 10px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
        justify-content: space-around !important;
        align-items: center !important;
        z-index: 999999 !important;
        box-shadow: 0 -4px 18px rgba(89, 74, 66, 0.08) !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        pointer-events: auto !important;
    }

    .mobile-bottom-nav .nav-pill-link {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 4px 0;
        background: transparent !important;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 700;
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.15s ease;
    }

    .mobile-bottom-nav .nav-pill-link i {
        font-size: 18px;
        color: var(--text-muted);
        transition: transform 0.15s ease, color 0.15s ease;
    }

    .mobile-bottom-nav .nav-pill-link span {
        font-size: 10.5px;
        line-height: 1.1;
        color: inherit;
    }

    .mobile-bottom-nav .nav-pill-link:not(.active):hover i {
        color: var(--primary-pink);
    }

    .mobile-bottom-nav .nav-pill-link.active {
        background: transparent !important;
        color: var(--active-pink) !important;
        font-weight: 800;
    }

    .mobile-bottom-nav .nav-pill-link.active i {
        color: var(--active-pink) !important;
        transform: scale(1.12);
    }
}

/* ==================================================== */
/* EXTRA-SMALL PHONES (<= 380px wide, e.g. 360x700)     */
/* Bar heights are kept the same as the 860px breakpoint */
/* above so they still line up with anything elsewhere   */
/* on the site that assumes a 58px bottom nav; only the  */
/* icon/text sizing and horizontal padding are tightened */
/* so nothing gets squeezed or clipped.                  */
/* ==================================================== */
@media (max-width: 380px) {
    .navbar-wrapper {
        padding: 8px 10px;
    }

    .navbar-container {
        gap: 4px;
    }

    .brand-container-nav {
        gap: 6px;
    }

    .brand-logo-img-nav,
    .brand-container-nav img {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }

    .brand-name-nav {
        font-size: 16px;
    }

    .nav-actions {
        gap: 2px;
    }

    .nav-search-box,
    .search-icon-btn,
    .nav-quick-action-btn,
    .nav-icon-btn,
    .nav-avatar-btn,
    .nav-avatar-img-badge {
        width: 32px !important;
        height: 32px !important;
    }

    .search-icon-btn,
    .nav-icon-btn {
        font-size: 14px;
    }

    .nav-avatar-btn {
        font-size: 13px;
    }

    .nav-search-box.expanded {
        width: calc(100% - 108px);
    }

    .nav-cart-badge,
    .cart-badge-count {
        font-size: 9.5px;
        padding: 1px 5px;
        top: -2px;
        right: -2px;
    }

    .mobile-bottom-nav {
        padding: 3px 4px calc(3px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .mobile-bottom-nav .nav-pill-link {
        gap: 2px;
    }

    .mobile-bottom-nav .nav-pill-link i {
        font-size: 16px;
    }

    .mobile-bottom-nav .nav-pill-link span {
        font-size: 9.5px;
    }
}
/* NOTIFICATION BELL ACTIVE / HIGHLIGHTED STATE */
.nav-icon-btn.active,
#navNotifBell.active {
    background-color: #F48A8E !important;
    color: #FFFFFF !important;
    border-radius: 50% !important;
}

.nav-icon-btn.active i,
#navNotifBell.active i {
    color: #FFFFFF !important;
}
/* ===================================================
   SWEETALERT2 MILKY MARBLE UNIFIED SYSTEM STYLE
   (shared here so every page that loads navbar.js gets
   correctly styled Swal dialogs for guest-restricted /
   logout confirmations, not just home.html and login.html)
   =================================================== */
/* Catch-all: ANY SweetAlert2 popup or toast (regardless of custom
   class) must render above the fixed navbar (z-index: 10000), or it
   ends up invisible underneath it. */
.swal2-container,
div.swal2-container {
  z-index: 999999 !important;
}

.swal2-container.mm-swal-container-top,
div.swal2-container.mm-swal-container-top {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(89, 74, 66, 0.55) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

div.swal2-popup.mm-swal-popup {
  background-color: #FFF5F4 !important;
  background: #FFF5F4 !important;
  border-radius: 28px !important;
  padding: 34px 28px 28px !important;
  border: 2px solid #FCE1DD !important;
  box-shadow: 0 20px 48px rgba(89, 74, 66, 0.28) !important;
  width: 90% !important;
  max-width: 440px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

div.swal2-title.mm-swal-title {
  font-family: 'Bootzy TM', 'Urbanist', sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #594A42 !important;
  letter-spacing: 1.5px !important;
  margin: 12px 0 8px !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

div.swal2-html-container.mm-swal-html {
  font-family: 'Urbanist', sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #7C4F38 !important;
  line-height: 1.5 !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}

div.swal2-actions.mm-swal-actions {
  margin-top: 24px !important;
  gap: 12px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

button.swal2-confirm.mm-swal-confirm-btn {
  background-color: #F48A8E !important;
  background: #F48A8E !important;
  color: #FFFFFF !important;
  border-radius: 24px !important;
  font-family: 'Urbanist', sans-serif !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 10px 26px !important;
  box-shadow: 0 4px 14px rgba(244, 138, 142, 0.4) !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s ease, opacity 0.2s ease !important;
}

button.swal2-confirm.mm-swal-confirm-btn:hover {
  opacity: 0.92 !important;
  transform: scale(1.03) !important;
}

button.swal2-cancel.mm-swal-cancel-btn {
  background-color: #FDE9E6 !important;
  background: #FDE9E6 !important;
  color: #594A42 !important;
  border-radius: 24px !important;
  font-family: 'Urbanist', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 22px !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s ease, opacity 0.2s ease !important;
}

button.swal2-cancel.mm-swal-cancel-btn:hover {
  opacity: 0.92 !important;
  transform: scale(1.03) !important;
}

/* Toast-style Swal notifications (top-end, no backdrop) that still need
   the Milky Marble look instead of SweetAlert2's plain default toast. */
div.swal2-popup.swal2-toast.mm-swal-toast {
  background-color: #FFF5F4 !important;
  background: #FFF5F4 !important;
  border-radius: 16px !important;
  border: 1.5px solid #FCE1DD !important;
  box-shadow: 0 8px 24px rgba(89, 74, 66, 0.18) !important;
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

div.swal2-popup.swal2-toast.mm-swal-toast .swal2-title {
  color: #594A42 !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
}


/* ===================================================
   SAVED BUILDS PANEL (navbar bookmark icon)
   Layered cup thumbnail: flavor + toppings/add-ons + cup,
   mirroring .layer-1-flavor / .layer-2-* / .layer-3-cup
   in home.css so it renders on every page.
   =================================================== */

/* This panel reuses the shared .mm-swal-popup padding (34px 28px 28px),
   which was designed for short confirmation/prompt text, not a scrolling
   list - on top of the list's own row padding it made the panel feel
   very roomy/empty. Tighten just this popup's outer padding without
   touching every other modal on the site. */
div.swal2-popup.mm-swal-popup.mm-swal-saved-builds-popup {
    padding: 20px 16px 16px !important;
}

.saved-builds-list {
    max-height: min(60vh, 430px);
    overflow-y: auto;
    padding: 2px 2px 0 0;
}

.saved-build-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #FCE1DD;
    text-align: left;
}
.saved-build-row:last-child { border-bottom: none; }

.saved-build-thumb {
    position: relative;
    flex-shrink: 0;
    width: 84px;
    height: 92px;
    border-radius: 20px;
    background: #ffffff;
    background: color-mix(in srgb, var(--sb-accent, #F48A8E) 16%, #ffffff);
    border: 1.5px solid #FCE1DD;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.saved-build-thumb-plain {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.saved-build-stack {
    position: relative;
    width: 70px;
    height: 100px;
    flex-shrink: 0;
}
.saved-build-stack.is-small {
    width: 66px;
    height: 79px;
}

.saved-build-layer-flavor {
    position: absolute;
    width: 78%;
    height: 78%;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.saved-build-layer-box {
    position: absolute;
    width: 82%;
    height: 82%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.saved-build-layer-topping {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.saved-build-layer-cup {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 3;
    pointer-events: none;
}

.saved-build-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.saved-build-title {
    font-weight: 800;
    font-size: 14.5px;
    color: #594A42;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.saved-build-meta,
.saved-build-addons {
    font-size: 12px;
    font-weight: 600;
    color: #7C4F38;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.saved-build-addons { color: #A0645A; }

.saved-build-date {
    font-size: 11px;
    color: #a8948d;
    margin-top: 2px;
}

.saved-build-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.saved-build-checkout {
    background: #664638;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.saved-build-checkout:hover { background: #7C4F38; }

.saved-build-remove {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
}

@media (max-width: 480px) {
    .saved-build-row { flex-wrap: wrap; }
    .saved-build-actions { width: 100%; justify-content: flex-end; }
}