/* EcoBen side cart (proteros-style drawer) and free delivery bar. */
.ebsc { position: fixed; inset: 0; z-index: 9999; }
.ebsc[hidden] { display: none; }
.ebsc-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 0.25s; }
.ebsc-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; transform: translateX(100%); transition: transform 0.25s ease; display: flex; flex-direction: column; font-size: 14px; letter-spacing: 0; }
.ebsc.is-open .ebsc-overlay { opacity: 1; }
.ebsc.is-open .ebsc-panel { transform: none; }
.ebsc.is-busy .ebsc-scroll, .ebsc.is-busy .ebsc-foot { opacity: 0.55; pointer-events: none; }
html.ebsc-lock { overflow: hidden; }
.ebsc-body { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ebsc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; }
.ebsc-title { margin: 0; font-size: 18px; font-weight: 700; color: #16241c; }
.ebsc-title span { font-weight: 400; color: #56615a; }
.ebsc-x { border: 0; background: none; color: #56615a; padding: 6px; cursor: pointer; line-height: 0; }
.ebsc-empty { padding: 30px 18px; text-align: center; }
.eb-ship-bar { padding: 0 18px 12px; }
.eb-ship-bar p { margin: 0 0 6px; font-size: 13px; }
.eb-ship-track { height: 6px; border-radius: 99px; background: #f2efe6; overflow: hidden; }
.eb-ship-track span { display: block; height: 100%; border-radius: 99px; background: #0b7a31; }
.woocommerce-cart .eb-ship-bar { padding: 15px 20px; margin-bottom: 25px; border: 2px dashed #e6e6e6; }
.woocommerce-cart .eb-ship-bar p { font-size: 15px; margin-bottom: 10px; }
.ebsc-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 18px; }
.ebsc-items { list-style: none; margin: 0; padding: 0; }
.ebsc-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2efe6; align-items: flex-start; }
.ebsc-img img { width: 56px; height: 56px; object-fit: contain; background: #f2efe6; border-radius: 10px; padding: 4px; display: block; }
.ebsc-info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ebsc-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #16241c; }
.ebsc-row { display: flex; align-items: center; justify-content: space-between; }
.ebsc-qty { display: inline-flex; align-items: center; border-radius: 99px; background: #f2efe6; font-weight: 600; font-size: 13px; }
.ebsc-qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 16px; color: #16241c; cursor: pointer; padding: 0; }
.ebsc-qty span { min-width: 22px; text-align: center; }
.ebsc-price { font-weight: 700; font-size: 14.5px; color: #16241c; }
.ebsc-offer { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.ebsc-offer-title { margin: 0; font-size: 13px; font-weight: 600; color: #16241c; }
.ebsc-up { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #f2efe6; }
.ebsc-up img { width: 40px; height: 40px; object-fit: contain; background: #fbfaf6; border-radius: 8px; padding: 3px; flex: none; }
.ebsc-up-text { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.ebsc-up-text a { font-weight: 600; color: #16241c; line-height: 1.3; }
.ebsc-up-text > span { color: #56615a; }
.ebsc-add { width: 32px; height: 32px; border-radius: 99px; background: #0b7a31; color: #fff !important; font-size: 18px; line-height: 32px; text-align: center; flex: none; text-decoration: none; }
.ebsc-add.loading { opacity: 0.6; }
.ebsc-up a.added_to_cart { display: none; }
.ebsc-foot { display: flex; flex-direction: column; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid #f2efe6; }
.ebsc-total { display: flex; justify-content: space-between; align-items: center; color: #56615a; }
.ebsc-total strong { font-size: 19px; color: #16241c; }
.ebsc-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; background: #0b7a31; color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none; }
.ebsc-link { text-align: center; font-weight: 500; text-decoration: underline; font-size: 13px; color: #16241c; }
.ebsc-note { margin: 0; text-align: center; font-size: 13px; color: #56615a; }
/* Busy (adding, changing quantity): spinner over the drawer, no "empty cart" flash while the first product is added. */
.ebsc.is-busy .ebsc-panel::after { content: ""; position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 3px solid #f2efe6; border-top-color: #0b7a31; border-radius: 50%; animation: ebsc-spin 0.7s linear infinite; }
.ebsc.is-busy .ebsc-empty { visibility: hidden; }
@keyframes ebsc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ebsc.is-busy .ebsc-panel::after { animation-duration: 2s; } }
