/* Site-wide cart; all rules are scoped to this component. */
.dwfc-launcher, .dwfc-drawer, .dwfc-drawer * { box-sizing: border-box; }
.dwfc-launcher {
    position: fixed; right: 26px; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 99990;
    display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px 12px 20px;
    border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: #1469a8; color: #fff !important;
    font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none !important; box-shadow: 0 10px 32px rgba(13,77,127,.28);
    transition: transform .2s ease, background .2s ease;
}
.dwfc-launcher:hover { background: #0d4d7f; transform: translateY(-3px); }
.dwfc-count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 50px; background: #fff; color: #0d4d7f; font-size: 12px; font-weight: 800; }
html.dwfc-open { overflow: hidden; }
dialog.dwfc-drawer {
    position: fixed; inset: 0 0 0 auto; width: min(460px, 100%); max-width: 100%; height: 100%; height: 100dvh; max-height: 100%;
    margin: 0; padding: 0; border: 0; border-radius: 22px 0 0 22px; background: #fff; color: #102434;
    box-shadow: -16px 0 70px rgba(16,36,52,.18); transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
    overflow: hidden; font-family: inherit;
}
dialog.dwfc-drawer:not([open]) { display: none; }
dialog.dwfc-drawer[open] { display: flex; flex-direction: column; }
dialog.dwfc-drawer.is-visible { transform: translateX(0); transition: none; animation: dwfc-slide-in .28s cubic-bezier(.2,.7,.2,1); }
.dwfc-drawer::backdrop { background: rgba(8,30,48,0); backdrop-filter: blur(3px); transition: background-color .28s ease; }
.dwfc-drawer.is-visible::backdrop { background: rgba(8,30,48,.48); transition: none; animation: dwfc-backdrop-in .28s ease; }
@keyframes dwfc-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes dwfc-backdrop-in { from { background-color: rgba(8,30,48,0); } to { background-color: rgba(8,30,48,.48); } }
.dwfc-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; padding: 30px 26px 24px; border-bottom: 1px solid #e1eaf0; background: linear-gradient(125deg,#eef8fb,#fff); }
.dwfc-heading p { margin: 0 0 7px; color: #1469a8; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.dwfc-heading h2 { margin: 0; color: #102434; font-size: 30px; font-weight: 750; line-height: 1.2; }
.dwfc-close { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; padding: 0; border: 1px solid #dbe6ec; border-radius: 50%; background: #fff; color: #102434; cursor: pointer; }
.dwfc-close:hover { background: #e9f3f8; }
.dwfc-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 26px 24px; }
.dwfc-drawer ul.woocommerce-mini-cart { display: block; list-style: none; margin: 0; padding: 0; }
.dwfc-drawer ul.woocommerce-mini-cart li.mini_cart_item {
    position: relative; display: flow-root; min-height: 112px; margin: 0; padding: 24px 30px 24px 0;
    border: 0; border-bottom: 1px solid #e1eaf0; color: #102434; font-size: 14px; line-height: 1.5;
}
.dwfc-drawer li.mini_cart_item a:not(.remove) { display: block; color: #102434; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.dwfc-drawer li.mini_cart_item img { float: left; width: 72px; height: 72px; margin: 0 16px 8px 0; padding: 5px; border: 1px solid #e1eaf0; border-radius: 12px; background: #fff; object-fit: contain; }
.dwfc-drawer li.mini_cart_item a.remove { position: absolute; top: 23px; right: 0; display: grid; place-items: center; width: 26px; height: 26px; margin: 0; border: 0; border-radius: 50%; background: #f2f6f8; color: #607280 !important; font-size: 21px; font-weight: 400; line-height: 1; text-decoration: none; }
.dwfc-drawer li.mini_cart_item a.remove:hover { background: #faeaea; color: #a92828 !important; }
.dwfc-drawer li.mini_cart_item .quantity { display: block; width: auto; height: auto; margin: 8px 0 0; border: 0; color: #607280; font-size: 13px; }
.dwfc-drawer li.mini_cart_item dl.variation { margin: 5px 0; padding: 0; border: 0; color: #607280; font-size: 12px; }
.dwfc-drawer dl.variation p { margin: 0; }
.dwfc-drawer .woocommerce-mini-cart__total { display: grid; grid-template-columns: 1fr auto; gap: 4px 15px; margin: 22px 0; padding: 18px 0 0; border-top: 0; color: #102434; font-size: 17px; }
.dwfc-drawer .woocommerce-mini-cart__total > .amount { color: #0d4d7f; font-weight: 800; text-align: right; }
.dwfc-drawer .woocommerce-mini-cart__total .tax_label { grid-column: 2; color: #607280; font-size: 11px; text-align: right; }
.dwfc-drawer .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.dwfc-drawer .woocommerce-mini-cart__buttons a.button, .dwfc-drawer .dwfc-shop { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin: 0; padding: 14px 18px; border: 1px solid #dbe6ec; border-radius: 10px; background: #fff; color: #1469a8; font-size: 14px; font-weight: 750; line-height: 1.4; text-align: center; text-decoration: none; text-transform: none; }
.dwfc-drawer .woocommerce-mini-cart__buttons a.checkout, .dwfc-drawer .dwfc-shop { border-color: #1469a8; background: #1469a8; color: #fff; }
.dwfc-drawer .woocommerce-mini-cart__buttons a.checkout:hover, .dwfc-drawer .dwfc-shop:hover { background: #0d4d7f; color: #fff; }
.dwfc-drawer .woocommerce-mini-cart__buttons a.button::before { display: none; }
.dwfc-footer { flex-shrink: 0; padding: 18px 26px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e1eaf0; background: #f5f9fb; text-align: center; }
.dwfc-footer p { margin: 0 0 12px; color: #607280; font-size: 12px; line-height: 1.5; }
.dwfc-footer button { padding: 4px; border: 0; background: transparent; color: #1469a8; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dwfc-added { margin: 16px 26px 0; padding: 12px 16px; border: 1px solid #cbe6dc; border-radius: 10px; background: #eff9f4; color: #167a5a; font-size: 13px; font-weight: 700; }
.dwfc-added::before { content: '✓'; margin-right: 9px; }
.dwfc-drawer .woocommerce-mini-cart__empty-message, .dwfc-loading { margin: 38px 0 24px; padding: 30px 18px; border-radius: 14px; background: #f5f9fb; color: #607280; font-size: 15px; line-height: 1.6; text-align: center; }
.dwfc-error { padding: 15px; background: #fff7ee; color: #70450f; font-size: 13px; }
.dwfc-drawer [hidden] { display: none !important; }
.dwfc-body .widget_shopping_cart_content[aria-busy="true"] { opacity: .6; }
.dwfc-sr-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dwfc-launcher:focus-visible, .dwfc-drawer :focus-visible { outline: 3px solid #2eb8c7; outline-offset: 3px; }
@media (max-width: 480px) {
    .dwfc-launcher { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); min-height: 56px; padding: 10px 13px 10px 17px; gap: 10px; }
    dialog.dwfc-drawer { border-radius: 0; }
    .dwfc-heading { padding: 24px 20px 20px; }
    .dwfc-heading p { font-size: 10px; letter-spacing: .8px; }
    .dwfc-body { padding-right: 20px; padding-left: 20px; }
    .dwfc-heading h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .dwfc-launcher, dialog.dwfc-drawer, .dwfc-drawer::backdrop, dialog.dwfc-drawer.is-visible, .dwfc-drawer.is-visible::backdrop { transition: none; animation: none; } }
