@charset "utf-8";

/* Orders modal shell only — shared chrome lives in shop-admin.css */

html.orders-open,
html.orders-open body {
    overflow: hidden;
}

/* Letterbox / overscroll match the white panel (not list blue / mywines green) */
html.orders-open,
html.orders-open body,
html.orders-open body.theme-kate {
    background: #fff !important;
    background-color: #fff !important;
}

#ordersModal.admin-modal {
    background: #fff;
    color: #000;
    z-index: 90;
}

#ordersModal.admin-modal.is-open {
    display: block;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    /* viewport-fit=cover: keep header/CLOSE below notch, fill home-indicator */
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

#ordersModal .shop-admin {
    min-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

#ordersModal .shop-admin-table .orders-qty {
    width: 3.2rem;
    min-width: 3.2rem;
}

body.theme-kate #ordersModal,
body.theme-kate #ordersModal .shop-admin,
body.theme-kate #ordersModal .shop-admin h1,
body.theme-kate #ordersModal .shop-admin label,
body.theme-kate #ordersModal .shop-admin p,
body.theme-kate #ordersModal .shop-admin td,
body.theme-kate #ordersModal .shop-admin th {
    color: #000 !important;
    background: transparent;
    font-family: "Courier New", Courier, monospace !important;
}

body.theme-kate #ordersModal.admin-modal.is-open {
    background: #fff !important;
}

body.theme-kate #ordersModal .shop-admin-table tr.selected td {
    background: #000 !important;
    color: #fff !important;
}
