/* Moran Gil - Mini Cart (dark slate design, radius 0, fonts inherited) */
:root{
	--mgc-slate:#3b3f4a;
	--mgc-slate-light:#4d5260;
	--mgc-cream:#eddfd4;
	--mgc-sand:#e1d7c6;
	--mgc-caramel:#c99a77;
	--mgc-ink:#2e2a2b;
	--mgc-ease:cubic-bezier(.22,.61,.36,1);
}

body.mgcart-is-open{overflow:hidden;}

.mgcart-backdrop{position:fixed;inset:0;background:rgba(46,42,43,.4);z-index:99990;opacity:0;pointer-events:none;transition:opacity .45s ease;}
body.mgcart-is-open .mgcart-backdrop{opacity:1;pointer-events:auto;}

.mgcart{position:fixed;top:0;bottom:0;left:0;width:min(430px,94vw);background:var(--mgc-slate);z-index:99991;transform:translateX(-100%);transition:transform .55s var(--mgc-ease);display:flex;flex-direction:column;color:var(--mgc-cream);}
body.mgcart-is-open .mgcart{transform:none;}
.mgcart.is-busy .mgcart-items,
.mgcart.is-busy .mgcart-foot{opacity:.6;pointer-events:none;}
.mgcart .woocommerce-Price-amount,.mgcart .woocommerce-Price-currencySymbol{color:inherit;}
.mgcart a{text-decoration:none;}

/* Head */
.mgcart-head{display:flex;justify-content:space-between;align-items:center;padding:26px 30px 18px;border-bottom:1px solid rgba(255,255,255,.16);flex-shrink:0;}
.mgcart-latin{font-size:13px;letter-spacing:.4em;color:var(--mgc-sand);text-transform:uppercase;direction:ltr;}
.mgcart-close{border:none;background:none;font-size:26px;cursor:pointer;color:var(--mgc-cream);line-height:1;padding:6px;border-radius:0;}

/* Items */
.mgcart-items{flex:1;overflow-y:auto;padding:6px 28px;}
.mgcart-item{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid rgba(255,255,255,.14);align-items:center;}
.mgcart-item img{width:74px;height:74px;object-fit:cover;flex-shrink:0;border-radius:0;}
.mgcart-info{flex:1;min-width:0;}
.mgcart-info h6{font-size:15px;font-weight:700;line-height:1.35;margin:0 0 4px;color:var(--mgc-cream);}
.mgcart-info h6 a{color:var(--mgc-cream);}
.mgcart-meta{display:block;font-size:12.5px;line-height:1.5;color:rgba(237,223,212,.72);margin:0 0 6px;}
.mgcart-item:has(.mgcart-meta){align-items:flex-start;}
.mgcart-price{display:block;font-size:13.5px;color:var(--mgc-caramel);font-weight:500;margin-bottom:8px;}
.mgcart-qty{display:inline-flex;align-items:center;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.07);direction:ltr;}
.mgcart-qty button{width:28px;height:28px;border:none;background:none;cursor:pointer;font-size:16px;color:var(--mgc-cream);font-family:inherit;border-radius:0;transition:background .2s;padding:0;}
.mgcart-qty button:hover{background:rgba(255,255,255,.12);}
.mgcart-qty b{min-width:26px;text-align:center;font-size:14px;color:var(--mgc-cream);}
.mgcart-side{display:flex;flex-direction:column;align-items:flex-end;gap:12px;}
.mgcart-line{font-size:15px;font-weight:700;color:var(--mgc-cream);}
.mgcart-remove{background:none;border:none;cursor:pointer;color:rgba(237,223,212,.5);font-size:17px;line-height:1;padding:2px;border-radius:0;transition:color .25s;}
.mgcart-remove:hover{color:var(--mgc-sand);}

/* Empty */
.mgcart-empty{text-align:center;padding:70px 24px;color:rgba(237,223,212,.72);}
.mgcart-empty-en{display:block;font-size:13px;letter-spacing:.4em;color:var(--mgc-caramel);text-transform:uppercase;margin-bottom:10px;direction:ltr;}
.mgcart-empty a{color:var(--mgc-cream);text-decoration:underline;text-underline-offset:3px;}

/* Foot - lighter slate */
.mgcart-foot{padding:20px 28px 30px;border-top:1px solid rgba(255,255,255,.18);background:var(--mgc-slate-light);color-scheme:dark;flex-shrink:0;}

/* Totals */
.mgcart-total .tr{display:flex;justify-content:space-between;align-items:baseline;font-size:14.5px;color:rgba(237,223,212,.75);padding:3px 0;}
.mgcart-total .tr b{font-weight:500;color:var(--mgc-cream);}
.mgcart-total .tr.grand{font-size:17px;color:var(--mgc-cream);border-top:1px solid rgba(255,255,255,.2);margin-top:8px;padding-top:10px;}
.mgcart-total .tr.grand b{font-size:22px;font-weight:700;}
.mgcart-totwrap{margin-bottom:16px;}
.mgcart-warn{margin-top:8px;font-size:12.5px;color:var(--mgc-cream);background:rgba(180,127,96,.22);border:1px solid var(--mgc-caramel);padding:7px 12px;line-height:1.5;}

/* Pay + continue */
.mgcart-pay{display:block;text-align:center;background:var(--mgc-cream);color:var(--mgc-ink) !important;border:1px solid var(--mgc-cream);padding:15px 20px;font-size:16px;font-weight:700;letter-spacing:.04em;border-radius:0;transition:.35s;}
.mgcart-pay:hover{background:transparent;color:var(--mgc-cream) !important;}
.mgcart-pay.disabled{opacity:.45;pointer-events:none;}
.mgcart-continue{display:block;margin:14px auto 0;background:none;border:none;cursor:pointer;font-family:inherit;font-size:14.5px;color:rgba(237,223,212,.7);text-decoration:underline;text-underline-offset:3px;border-radius:0;}
.mgcart-continue:hover{color:var(--mgc-sand);}

/* Shipping chooser - dark skin inside the drawer */
.mgcart .mgship-chooser{margin-bottom:16px;}
.mgcart .mgship-q{color:var(--mgc-cream);}
.mgcart .mgship-opts button{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.3);color:var(--mgc-cream);}
.mgcart .mgship-opts button small{color:rgba(237,223,212,.6);}
.mgcart .mgship-opts button.on{border-color:var(--mgc-cream);background:rgba(255,255,255,.14);}
.mgcart .mgship-extra select,
.mgcart .mgship-extra input[type=date]{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.3);color:var(--mgc-cream);}
.mgcart .mgship-extra select:focus,
.mgcart .mgship-extra input[type=date]:focus{border-color:var(--mgc-sand);}
.mgcart .mgship-extra select option{background:var(--mgc-slate-light);color:var(--mgc-cream);}
.mgcart .mgship-dt label{color:rgba(237,223,212,.7);}
.mgcart .mgship-note{color:rgba(237,223,212,.7);}
.mgcart .mgship-note a{color:var(--mgc-cream);}
.mgcart .mgship-warn{color:var(--mgc-cream);background:rgba(180,127,96,.22);border-color:var(--mgc-caramel);}

/* Header cart button ([mg_cart_button]) */
.mgcart-btn{position:relative;display:inline-grid;place-items:center;background:none;border:none;cursor:pointer;padding:4px;border-radius:0;transition:transform .3s;color:inherit;}
.mgcart-btn:hover{transform:scale(1.1);}
.mgcart-btn svg{width:27px;height:27px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.mgcart-count{position:absolute;top:-4px;left:-7px;background:#b47f60;color:#fff;font-size:11.5px;font-weight:700;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;}
.mgcart-count.is-empty{display:none;}

/* Mobile */
@media(max-width:560px){
	.mgcart-head{padding:20px 20px 14px;}
	.mgcart-items{padding:4px 20px;}
	.mgcart-foot{padding:14px 20px 20px;}
	.mgcart-totwrap{margin-bottom:12px;}
	.mgcart-total .tr{font-size:13.5px;padding:2px 0;}
	.mgcart-total .tr.grand{font-size:15.5px;margin-top:6px;padding-top:8px;}
	.mgcart-total .tr.grand b{font-size:19px;}
	.mgcart-pay{padding:12px 20px;font-size:15px;}
	.mgcart-continue{margin-top:10px;font-size:13.5px;}
}
