/* Mini-cart slide-out drawer (templates/layout.php + assets/js/minicart.js).
   Self-contained — does not depend on shop.css. Palette: navy/teal/orange. */

.mc-overlay { position: fixed; inset: 0; background: rgba(0, 25, 59, .45); z-index: 100001; /* above the adminbar (100000) */
    opacity: 0; transition: opacity .22s; }
.mc-overlay.on { opacity: 1; }

.mc-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100002;
    width: min(420px, 70vw); background: #fff; box-shadow: -12px 0 34px rgba(0, 25, 59, .18);
    display: flex; flex-direction: column;
    transform: translateX(105%); transition: transform .26s ease; }
.mc-drawer.on { transform: translateX(0); }

.mc-head { display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid #e5e7eb; }
.mc-head h3 { margin: 0; font-size: 28px; color: #00193B; }
.mc-head-count { color: #00b7ad; font-size: 16px; }
.mc-close { border: 0; background: none; font-size: 26px; line-height: 1; color: #6b7280;
    cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.mc-close:hover { color: #00193B; background: #f3f4f6; }

.mc-items { flex: 1; overflow-y: auto; padding: 6px 18px; }
.mc-empty { text-align: center; color: #6b7280; padding: 40px 10px; }
.mc-empty a { display: inline-block; margin-top: 14px; background: #f37032; color: #fff !important;
    font-weight: 600; padding: 10px 22px; border-radius: 8px; text-decoration: none; }
.mc-empty a:hover { background: #e2601f; color: #fff !important; }

.mc-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f1f5f9; }
.mc-item-img { width: 56px; height: 56px; flex: none; border: 1px solid #e5e7eb; border-radius: 8px;
    background: #fff; object-fit: contain; }
.mc-item-main { flex: 1; min-width: 0; }
.mc-item-name { display: block; color: #00193B; font-weight: 600; font-size: 13.5px; line-height: 1.35;
    text-decoration: none; }
.mc-item-name:hover { color: #00b7ad; }
.mc-item-variant { color: #6b7280; font-size: 12px; margin-top: 1px; }
.mc-item-oos { color: #b91c1c; font-style: italic; font-size: 12px; }
.mc-item-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mc-item-line { margin-left: auto; font-weight: 700; color: #00193B; font-size: 13.5px; white-space: nowrap; }
.mc-item-unit { color: #6b7280; font-size: 11.5px; margin-top: 2px; text-align: right; }
.mc-x { border: 0; background: none; color: #9ca3af; font-size: 18px; line-height: 1; cursor: pointer;
    padding: 2px 6px; border-radius: 6px; align-self: flex-start; }
.mc-x:hover { color: #b91c1c; background: #fef2f2; }

.mc-qty { display: inline-flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.mc-qty button { border: 0; background: #f8fafc; width: 28px; height: 30px; font-size: 15px; font-weight: 700;
    color: #00193B; cursor: pointer; }
.mc-qty button:hover { background: #e0f7f5; color: #00b7ad; }
.mc-qty button:disabled { opacity: .4; cursor: default; }
.mc-qty input { width: 38px; height: 30px; border: 0; text-align: center; font: inherit; font-size: 13.5px;
    -moz-appearance: textfield; }
.mc-qty input::-webkit-outer-spin-button, .mc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mc-qty-locked { color: #6b7280; font-size: 12.5px; }

/* next-quantity-tier upsell nudge */
.mc-tier { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px;
    background: #f0fdfa; border: 1px dashed #00b7ad; border-radius: 8px; font-size: 12px; color: #0f766e; }
.mc-tier b { color: #00193B; }
.mc-tier button { margin-left: auto; flex: none; border: 0; background: #00b7ad; color: #fff; font-weight: 700;
    font-size: 12px; padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.mc-tier button:hover { background: #009e95; }

.mc-foot { border-top: 1px solid #e5e7eb; padding: 14px 18px 16px; }
.mc-sub { display: flex; justify-content: space-between; align-items: baseline; color: #00193B;
    font-size: 15px; margin-bottom: 2px; }
.mc-sub b { font-size: 19px; }
.mc-note { color: #6b7280; font-size: 12px; margin: 2px 0 12px; }
.mc-btn { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 9px;
    font-weight: 700; font-size: 15px; text-decoration: none; margin-bottom: 9px; }
.mc-btn-primary { background: #f37032; color: #fff !important; }
.mc-btn-primary:hover { background: #e2601f; }
.mc-btn-ghost { background: #fff; color: #00193B !important; border: 1px solid #e5e7eb; }
.mc-btn-ghost:hover { border-color: #00b7ad; color: #00b7ad !important; }
.mc-continue { display: block; width: 100%; border: 0; background: none; color: #6b7280; font: inherit;
    font-size: 13.5px; cursor: pointer; padding: 4px; }
.mc-continue:hover { color: #00b7ad; }

body.mc-open { overflow: hidden; }
