/* Prebuilt — toast notifications + cart drawer. */

/* ------------------------------------------------ WooCommerce notices */
/* With JS, notices are turned into toasts; hide the inline copies. */
.pb-js .woocommerce-notices-wrapper { display: none !important; }
/* No-JS / inline fallback: tidy card style. */
.woocommerce-notices-wrapper > *, .woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 16px !important; padding: 16px 20px !important; border: 1px solid var(--pb-line) !important; border-left: 4px solid var(--pb-accent-2) !important; border-radius: var(--pb-radius-sm); background: var(--pb-bg) !important; color: var(--pb-text) !important; font-size: 15px; line-height: 1.5; }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before, .woocommerce .woocommerce-error::before { display: none !important; }
.woocommerce .woocommerce-error { border-left-color: #E5484D !important; }
.woocommerce .woocommerce-message { border-left-color: #2EBD6B !important; }
.woocommerce .woocommerce-message .button, .woocommerce .woocommerce-info .button { order: 2; margin-left: auto; padding: 10px 16px !important; font-size: 14px !important; }

/* ------------------------------------------------ toasts */
.pb-toasts { position: fixed; right: 24px; bottom: 24px; z-index: 100000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: min(400px, calc(100vw - 24px)); pointer-events: none; }
.pb-toast { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 14px 16px 16px; border-radius: 16px; background: var(--pb-ink); color: #F4F2EC; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; overflow: hidden; pointer-events: auto; font: 500 14.5px/1.45 var(--pb-font-body); animation: pb-toast-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.pb-toast.is-leaving { animation: pb-toast-out .3s ease forwards; }
@keyframes pb-toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes pb-toast-out { to { opacity: 0; transform: translateX(24px); } }
.pb-toast__ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #2EBD6B; color: #fff; }
.pb-toast--info .pb-toast__ico { background: var(--pb-accent-2); }
.pb-toast--error .pb-toast__ico { background: #E5484D; }
.pb-toast__ico svg { width: 16px; height: 16px; }
.pb-toast__body { flex: 1; min-width: 0; padding-top: 4px; }
.pb-toast__body p { margin: 0; }
.pb-toast__body a:not(.pb-toast__act) { color: var(--pb-accent); }
.pb-toast__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pb-toast__act { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; background: var(--pb-accent); color: var(--pb-accent-ink) !important; font: 600 13px/1 var(--pb-font-body); text-decoration: none !important; border: 0; cursor: pointer; }
.pb-toast__act--ghost { background: rgba(255, 255, 255, .1); color: #F4F2EC !important; }
.pb-toast__x { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; background: transparent; color: rgba(244, 242, 236, .6); cursor: pointer; }
.pb-toast__x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pb-toast__x svg { width: 16px; height: 16px; }
.pb-toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, .18); transform-origin: left; animation: pb-toast-bar linear forwards; }
.pb-toast--success .pb-toast__bar { background: #2EBD6B; }
.pb-toast--error .pb-toast__bar { background: #E5484D; }
.pb-toast:hover .pb-toast__bar { animation-play-state: paused; }
@keyframes pb-toast-bar { to { transform: scaleX(0); } }

/* ------------------------------------------------ cart drawer */
.pb-cart { position: fixed; inset: 0; z-index: 99990; visibility: hidden; }
.pb-cart.is-open { visibility: visible; }
.pb-cart__overlay { position: absolute; inset: 0; background: rgba(6, 9, 15, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.pb-cart.is-open .pb-cart__overlay { opacity: 1; }
.pb-cart__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 100vw); background: var(--pb-bg); color: var(--pb-text); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .5); transform: translateX(100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); outline: none; }
.pb-cart.is-open .pb-cart__panel { transform: none; }
.admin-bar .pb-cart__panel { top: 32px; }
.pb-cart-open { overflow: hidden; }
.pb-cart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--pb-line); }
.pb-cart__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; letter-spacing: -.025em; }
.pb-cart__head .pb-cart-count { position: static; display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--pb-ink); color: #fff; font: 700 12px/24px var(--pb-font-body); }
.pb-cart__head .pb-cart-count.is-empty { display: none; }
.pb-cart__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--pb-line); background: transparent; color: var(--pb-text); cursor: pointer; }
.pb-cart__close:hover { background: var(--pb-paper); }
.pb-cart .widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pb-cart .blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

.pb-mc { list-style: none; margin: 0; padding: 8px 24px; flex: 1; overflow-y: auto; }
.pb-mc__item { position: relative; display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--pb-line); }
.pb-mc__item:last-child { border-bottom: 0; }
.pb-mc__img { display: block; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--pb-paper); }
.pb-mc__img img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; display: block; }
.pb-mc__info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pb-mc__info small { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--pb-muted); }
.pb-mc__name { font: var(--pb-hw) 15.5px/1.3 var(--pb-font-head); color: var(--pb-text) !important; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pb-mc__price { font-weight: 600; font-size: 15px; }
.pb-mc__info dl.variation { margin: 0; font-size: 12.5px; color: var(--pb-muted); }
.pb-mc .pb-mc__remove, .woocommerce .pb-mc a.remove { display: grid !important; place-items: center; width: 32px !important; height: 32px !important; border-radius: 50%; color: var(--pb-muted) !important; background: transparent; font-size: 0 !important; line-height: 1 !important; text-decoration: none; transition: background .2s, color .2s; }
.pb-mc .pb-mc__remove:hover, .woocommerce .pb-mc a.remove:hover { background: #FDE8E8 !important; color: #B42318 !important; }
.pb-mc__foot { padding: 20px 24px 24px; border-top: 1px solid var(--pb-line); background: var(--pb-bg); }
.pb-mc__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 15px; }
.pb-mc__total strong { font: var(--pb-hw) 26px/1 var(--pb-font-head); letter-spacing: -.03em; }
.pb-mc__taxnote { margin: 6px 0 16px; font-size: 12.5px; color: var(--pb-muted); }
.pb-mc__btns { display: grid; gap: 8px; }
.pb-mc__btns .pb-btn { width: 100%; }
.pb-mc__btns .pb-btn--ghost { --b-fg: var(--pb-text); border-color: var(--pb-line); }
.pb-mc__trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 14px 0 0; padding: 0; font-size: 12px; color: var(--pb-muted); }
.pb-mc__trust li::before { content: "✓ "; color: #1F9D55; font-weight: 700; }
.pb-mc__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 32px; gap: 10px; }
.pb-mc__empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--pb-paper); color: var(--pb-text); margin-bottom: 6px; }
.pb-mc__empty strong { font: var(--pb-hw) 20px var(--pb-font-head); }
.pb-mc__empty p { margin: 0 0 10px; color: var(--pb-muted); max-width: 280px; }

/* buy button loading state */
.pb-panel__buy .single_add_to_cart_button.is-loading { opacity: .7; pointer-events: none; }
.pb-panel__buy .pb-btn .pb-ico { width: 18px; height: 18px; }

@media (max-width: 782px) { .admin-bar .pb-cart__panel { top: 46px; } }
@media (max-width: 767px) {
	.pb-toasts { right: 12px; left: 12px; bottom: 12px; width: auto; align-items: stretch; }
	.single-product .pb-toasts { bottom: 92px; }
	.pb-mc { padding: 4px 18px; }
	.pb-cart__head, .pb-mc__foot { padding-left: 18px; padding-right: 18px; }
	.pb-mc__item { grid-template-columns: 72px 1fr auto; }
	.pb-mc__img { width: 72px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .pb-toast, .pb-cart__panel, .pb-cart__overlay { animation: none !important; transition: none !important; } }

/* ------------------------------------------------ v1.3.1: neutralise WooCommerce widget styles inside the drawer */
.pb-cart ul.pb-mc, .woocommerce .pb-cart ul.pb-mc { margin: 0 !important; padding: 8px 24px !important; }
.pb-cart ul.pb-mc li.pb-mc__item, .woocommerce .pb-cart ul.cart_list li.pb-mc__item, .woocommerce .pb-cart ul.product_list_widget li.pb-mc__item { display: grid !important; grid-template-columns: 84px minmax(0, 1fr) 32px; gap: 14px; align-items: center; margin: 0 !important; padding: 16px 0 !important; list-style: none; }
.pb-cart ul.pb-mc li.pb-mc__item::before, .pb-cart ul.pb-mc li.pb-mc__item::after { content: none !important; display: none !important; }
.pb-cart ul.pb-mc li.pb-mc__item a.pb-mc__name { font: var(--pb-hw) 15.5px/1.3 var(--pb-font-head) !important; }
.pb-cart ul.pb-mc li.pb-mc__item img, .woocommerce .pb-cart ul.product_list_widget li img { float: none !important; width: 100% !important; height: 100% !important; margin: 0 !important; box-shadow: none !important; }
.pb-cart ul.pb-mc li.pb-mc__item .pb-mc__img { grid-column: 1; }
.pb-cart ul.pb-mc li.pb-mc__item .pb-mc__info { grid-column: 2; }
.pb-cart ul.pb-mc li.pb-mc__item a.remove, .woocommerce .pb-cart ul.cart_list li a.remove { grid-column: 3; position: static !important; top: auto !important; left: auto !important; justify-self: end; }
.pb-cart .pb-mc__info .quantity { display: none; }
@media (max-width: 767px) {
	.pb-cart ul.pb-mc, .woocommerce .pb-cart ul.pb-mc { padding: 4px 18px !important; }
	.pb-cart ul.pb-mc li.pb-mc__item { grid-template-columns: 72px minmax(0, 1fr) 32px !important; }
}

/* toasts never cover the open drawer */
@media (min-width: 768px) { .pb-cart-open .pb-toasts { right: calc(min(440px, 100vw) + 20px); } }
@media (max-width: 767px) { .pb-cart-open .pb-toasts { display: none; } }

/* v1.4.2: wide screenshots in the drawer */
.pb-cart ul.pb-mc li.pb-mc__item { grid-template-columns: 104px minmax(0, 1fr) 32px !important; }
.pb-mc__img { width: 104px !important; height: auto !important; aspect-ratio: var(--pb-card-ratio, 1905 / 880); }
.pb-cart ul.pb-mc li.pb-mc__item img { object-fit: cover; object-position: top center; }
@media (max-width: 767px) { .pb-cart ul.pb-mc li.pb-mc__item { grid-template-columns: 88px minmax(0, 1fr) 32px !important; } .pb-mc__img { width: 88px !important; } }
