/* 2.5.25 — stable totals, dedicated cart actions and an active promotion field. */
/* Keep WooCommerce's interaction blocker; only replace its white paint/spinner. */
.em-checkout-summary .blockUI.blockOverlay {
 background:transparent!important;opacity:1!important;cursor:progress!important;
}
.em-checkout-summary .blockUI.blockOverlay::before {
 content:''!important;position:absolute!important;top:0!important;left:0!important;
 width:100%!important;height:2px!important;margin:0!important;border:0!important;border-radius:2px!important;
 background:linear-gradient(90deg,transparent,#f5ac8a,transparent)!important;
 background-size:200% 100%!important;box-shadow:none!important;transform:none!important;
 animation:em-totals-progress 1.4s linear infinite!important;
}
.em-totals-status {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@keyframes em-totals-progress {from{background-position:200% 0}to{background-position:0 0}}

body .em-review-checkout .em-cart-tools {gap:14px 12px;padding:20px;overflow:visible}
body .em-review-checkout .em-checkout-products {overflow:visible}
/* Fallback paints before JavaScript, so there is no rectangular-to-pill flash. */
body .em-cart-tools :is(a,button) {
 box-sizing:border-box;min-width:0;min-height:48px;padding:12px 16px!important;
 border:1px solid #526074;border-radius:15px;background:linear-gradient(145deg,#303948,#1b222e);
 color:#f1f3f8;font-size:13px!important;font-weight:500;line-height:1.35;text-decoration:none;
 box-shadow:inset 0 1px 0 #cbd4e51c,0 4px 0 #0a0e16;gap:9px;
}
body .em-cart-tools .em-action-icon {margin:0;color:#f3b091;width:20px;height:20px}
body .em-cart-tools :is(a,button):focus-visible {outline:2px solid #ffc1a3;outline-offset:5px}
body .em-cart-tools .em-motion-button.em-motion-button {min-width:0;min-height:48px;padding:12px 16px!important;font-size:13px!important}
body .em-cart-tools .em-motion-button .em-motion-label {gap:9px}
body .em-cart-tools .em-motion-button .em-motion-skin {border-radius:15px;background:linear-gradient(145deg,#303948,#1b222e);border-color:#526074;box-shadow:inset 0 1px 0 #cbd4e51c,0 4px 0 #0a0e16}
body .em-cart-tools .em-cart-continue .em-motion-skin {border-color:#637385;background:linear-gradient(145deg,#354251,#1c2632)}
body .em-cart-tools .em-cart-estimate .em-motion-skin {border-color:#77615d;background:linear-gradient(145deg,#3b3438,#26252e)}
@media(hover:hover) {
 body .em-cart-continue:hover .em-action-icon {transform:translateX(-3px)}
 body .em-cart-estimate:hover .em-action-icon {transform:rotate(-8deg)}
}
body .em-cart-tools .em-action-icon {transition:transform .2s}

/* Reference: charcoal pill → falling letters/open bin → circular orbit. */
body .em-cart-tools .em-cart-empty {border-radius:999px;background:linear-gradient(165deg,#454353,#292835 60%,#191a25);border-color:#797285;min-width:142px}
body .em-cart-tools .em-motion-empty .em-motion-skin {top:50%;bottom:auto;transform:translate(-50%,-50%);border-radius:999px;border-color:#797285;background:linear-gradient(165deg,#454353,#292835 60%,#191a25);box-shadow:inset 0 1px 1px #d5c8ef33,0 4px 0 #11121b,0 7px 14px #0004}
body .em-cart-tools .em-motion-empty .em-motion-label svg {color:#eee8f6}
body .em-motion-empty .em-empty-letters {display:inline-block;white-space:nowrap}
body .em-motion-empty .em-empty-letters>span {display:inline-block}
body .em-motion-empty .em-motion-scene {width:60px;height:60px;overflow:visible;transform:translate(-50%,-50%)}
body .em-motion-empty .em-m-bin {left:19px;top:10px;width:23px;height:36px}
body .em-motion-empty .em-m-bin-shell {left:3px;top:11px;width:18px;height:23px;border:1.5px solid #f0eaf7;border-radius:2px 2px 4px 4px;background:linear-gradient(135deg,#f6f2fd,#b7afc7);box-shadow:none;transform:none}
body .em-motion-empty .em-m-bin-shell::before {left:5px;top:4px;width:1px;height:12px;background:#5d546d;box-shadow:5px 0 0 #5d546d}
body .em-motion-empty .em-m-bin-lid {left:0;top:7px;width:24px;height:3px;background:#f3edff;border-radius:2px;box-shadow:none}
body .em-motion-empty .em-m-bin-lid::before {left:8px;top:-4px;width:7px;height:4px;border:1.5px solid #f3edff;border-bottom:0;border-radius:2px 2px 0 0}
body .em-motion-empty .em-m-empty-orbit {position:absolute;inset:1px;border:2px solid #bfb5cd;border-right-color:transparent;border-radius:50%;opacity:0}
body .em-motion-empty.em-motion-playing .em-motion-label {animation:em-empty-label 1.8s both}
body .em-motion-empty.em-motion-playing .em-empty-letters>span {animation:em-empty-letter .55s calc(var(--em-letter)*.025s + .08s) both}
body .em-motion-empty.em-motion-playing .em-motion-skin {animation:em-empty-pill 1.8s both}
body .em-motion-empty.em-motion-playing .em-motion-scene {animation:em-empty-scene 1.8s both}
body .em-motion-empty.em-motion-playing .em-m-bin-lid {animation:em-empty-lid 1.8s both}
body .em-motion-empty.em-motion-playing .em-m-empty-orbit {animation:em-empty-orbit 1.8s both}
@keyframes em-empty-label {0%,8%{opacity:1;transform:none}40%,90%{opacity:0;transform:none}100%{opacity:1;transform:none}}
@keyframes em-empty-letter {0%{opacity:1;transform:none}35%{opacity:1;transform:translate(-10px,-14px) rotate(-18deg)}100%{opacity:0;transform:translate(-32px,14px) rotate(-32deg) scale(.2)}}
@keyframes em-empty-pill {0%,12%,100%{width:100%;height:100%;border-radius:999px}46%,84%{width:48px;height:48px;border-radius:50%}}
@keyframes em-empty-scene {0%,13%,95%,100%{opacity:0}22%,84%{opacity:1}}
@keyframes em-empty-lid {0%,13%,60%,100%{transform:none}26%,44%{transform:translate(2px,-6px) rotate(38deg)}52%{transform:rotate(-7deg)}}
@keyframes em-empty-orbit {0%,55%{opacity:0;transform:rotate(-90deg) scale(.9)}66%,80%{opacity:1}90%,100%{opacity:0;transform:rotate(300deg) scale(1)}}

body .em-review-checkout .em-promotion {
 flex-wrap:wrap;gap:14px;padding:20px!important;border:1px solid #45404a;border-radius:16px;
 background:radial-gradient(ellipse at top left,#e88b7010,transparent 60%),linear-gradient(135deg,#22262f,#151922);
 box-shadow:inset 0 1px 0 #ffe3d80d;
}
.em-promo-field {position:relative;flex:1 1 220px;min-width:0}
.em-promo-icon {position:absolute;top:50%;left:15px;width:21px;height:21px;transform:translateY(-50%);color:#f0ac8d;pointer-events:none;z-index:1}
body .em-review-checkout .em-promo-field input {
 box-sizing:border-box;width:100%;min-height:50px;padding:12px 14px 12px 47px!important;
 background:#111720;border:1px solid #475364;border-radius:10px;color:#fff;font-size:16px;box-shadow:inset 0 2px 5px #0002;
}
body .em-review-checkout .em-promo-field input:focus {outline:2px solid #eeaa88;outline-offset:2px;background:#17202b}
body .em-review-checkout .em-promotion button {min-height:50px;min-width:146px!important;font-size:13px!important;border-radius:12px}
body .em-review-checkout .em-promotion button .em-motion-skin {border-color:#bc8270;border-radius:12px;background:linear-gradient(145deg,#68504c,#3d3034);box-shadow:inset 0 1px 1px #f5c0a52e,0 4px 0 #211a22}
.em-promo-help,.em-promo-feedback {margin:12px 2px 0;color:#adb8c7;font-size:13px;line-height:1.6}
.em-promo-feedback:not(:empty) {color:#f1c2a7}
.em-promotion-unavailable p {margin:0;color:#c5cbd6}
.em-review-checkout>.woocommerce-error,.em-review-checkout>.woocommerce-message {border-radius:10px;background:#222a35;color:#f1f3f8;border-top-color:#edaa89;font-size:14px}
@media(max-width:767px) {
 body .em-review-checkout .em-cart-tools {padding:6px 0 16px;gap:14px 10px}
 body .em-cart-tools .em-cart-continue,body .em-cart-tools .em-cart-estimate {flex:1 1 190px}
 body .em-cart-tools .em-cart-empty {margin:0 0 0 auto}
 body .em-review-checkout .em-promotion {padding:18px!important}
 .em-promo-field {flex-basis:100%}
 body .em-review-checkout .em-promotion button {width:100%}
}
@media(prefers-reduced-motion:reduce) {
 .em-checkout-summary .blockUI.blockOverlay::before {animation:none!important;background:#edaa89!important}
 body .em-motion-empty *,body .em-cart-tools .em-action-icon {animation:none!important;transition:none!important;transform:none}
 body .em-motion-empty .em-motion-label {opacity:1!important}
 body .em-motion-empty .em-motion-scene {display:none!important}
}
