/* SLB basket drawer. Same system as the basket page: Nunito, plum #543e78,
   white cards, 1px #e4dbea borders, 10-12px radii. */
.slb-drawer { position: fixed; inset: 0; z-index: 2147483000; font-family: Nunito, sans-serif; color: #3d3d3d; }
.slb-drawer[hidden] { display: none; }
.slb-drawer__overlay {
	position: absolute; inset: 0; background: rgba(45, 30, 66, .45);
	opacity: 0; transition: opacity .28s ease;
}
.slb-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: 440px; max-width: 100%;
	display: flex; flex-direction: column;
	background: #fff; box-shadow: -8px 0 32px rgba(84, 62, 120, .18);
	transform: translateX(100%); transition: transform .3s cubic-bezier(.22, .61, .36, 1);
	outline: 0;
}
.slb-drawer.is-open .slb-drawer__overlay { opacity: 1; }
.slb-drawer.is-open .slb-drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.slb-drawer__overlay, .slb-drawer__panel { transition: none; }
}
html.slb-dr-open, html.slb-dr-open body { overflow: hidden; }
html.slb-dr-open body { padding-right: var(--slb-dr-sbw, 0); }

.slb-drawer__head {
	flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
	padding: 0 12px 0 22px; height: 68px; border-bottom: 1px solid #e4dbea;
}
.slb-drawer__title {
	margin: 0; font: 700 26px/1.1 Nunito, sans-serif; color: #543e78; letter-spacing: -.2px;
}
.slb-drawer .slb-script {
	font-family: Sacramento, cursive; font-weight: 400; font-size: 1.14em; color: #8e3969;
	line-height: .8; margin-left: 2px;
}
.slb-drawer__close {
	width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
	background: none; border: 0; border-radius: 10px; color: #543e78; cursor: pointer;
}
.slb-drawer__close:hover { background: #f1ecf5; }
.slb-drawer button:focus-visible, .slb-drawer a:focus-visible { outline: 2px solid #543e78; outline-offset: 2px; }

.slb-dr-live { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; transition: opacity .15s; }
.slb-dr-live.is-busy { opacity: .55; pointer-events: none; }
.slb-dr-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 8px; -webkit-overflow-scrolling: touch; }

/* free delivery bar: the plugin's own output, same look as the basket page */
.slb-drawer .slb-fsl-top:empty { display: none; }
.slb-drawer .slb-fsl-top { margin: 0 0 6px; }
.slb-drawer .fsl-wrapper { margin: 0; }
.slb-drawer .devnet_fsl-free-shipping {
	box-sizing: border-box; background: #fff; border: 1px solid #e4dbea; border-radius: 12px;
	box-shadow: 0 1px 3px rgba(84, 62, 120, .06); padding: 12px 16px 13px; margin: 0;
	text-align: center; color: #543e78; font-family: Nunito, sans-serif;
}
.slb-drawer .fsl-title, .slb-drawer .fsl-description {
	display: block; margin: 0; font: 500 13.5px/1.45 Nunito, sans-serif; color: #543e78; text-align: center;
}
.slb-drawer .fsl-title { font-weight: 700; margin-bottom: 8px; }
.slb-drawer .fsl-description { margin-top: 8px; }
.slb-drawer .fsl-title .amount, .slb-drawer .fsl-description .amount { color: inherit; font-weight: 800; }
.slb-drawer .fsl-progress-bar {
	position: relative; display: block; height: 8px !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 8px !important; background: #f1ecf5 !important; overflow: hidden; box-shadow: none !important;
}
.slb-drawer .fsl-progress-bar::before, .slb-drawer .fsl-progress-bar::after,
.slb-drawer .fsl-progress-amount::before, .slb-drawer .fsl-progress-amount::after { display: none !important; content: none !important; }
.slb-drawer .fsl-progress-amount {
	display: block; height: 8px !important; border-radius: 8px !important; background: #543e78 !important;
	background-image: none !important; box-shadow: none !important; animation: none !important;
}

/* line items */
.slb-dr-items { list-style: none; margin: 0; padding: 0; }
.slb-dr-item {
	display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start;
	padding: 16px 0; margin: 0; border-bottom: 1px solid #e4dbea;
}
.slb-dr-item:last-child { border-bottom: 0; }
.slb-dr-thumb { display: block; width: 72px; height: 72px; border: 1px solid #e4dbea; border-radius: 10px; overflow: hidden; background: #fff; }
.slb-dr-thumb img { display: block; width: 72px; height: 72px; object-fit: contain; margin: 0; max-width: none; border-radius: 0; box-shadow: none; }
.slb-dr-info { min-width: 0; }
.slb-dr-name, .slb-dr-name a { font: 700 15px/1.3 Nunito, sans-serif; color: #543e78; text-decoration: none; }
.slb-dr-name a:hover { text-decoration: underline; }
.slb-dr-meta { margin-top: 3px; font: 500 13px/1.4 Nunito, sans-serif; color: #6d6c6c; }
.slb-dr-meta dl { margin: 0; }
.slb-dr-meta dt, .slb-dr-meta dd, .slb-dr-meta dd p { display: inline; margin: 0; font-weight: 500; }
.slb-dr-meta dt { font-weight: 600; }
.slb-dr-meta dd:after { content: ""; display: block; }
.slb-dr-incl { margin: 4px 0 0; padding: 0; list-style: none; font: 500 12.5px/1.4 Nunito, sans-serif; color: #6d6c6c; }
.slb-dr-incl li { margin: 0; padding: 0; }
.slb-dr-ctl { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.slb-dr-qty {
	display: inline-flex; align-items: center; height: 36px; border: 1px solid #e4dbea; border-radius: 10px; background: #fff; overflow: hidden;
}
.slb-dr-qty button {
	width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #543e78;
	font: 700 18px/1 Nunito, sans-serif; cursor: pointer; box-shadow: none; border-radius: 0; min-height: 0;
}
.slb-dr-qty button:hover:not([disabled]) { background: #f1ecf5; }
.slb-dr-qty button[disabled] { opacity: .35; cursor: default; }
.slb-dr-qty__n { min-width: 28px; text-align: center; font: 700 15px/1 Nunito, sans-serif; color: #3d3d3d; }
.slb-dr-remove {
	padding: 4px 0; border: 0; background: none; color: #6d6c6c; font: 600 13px/1 Nunito, sans-serif;
	text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 0; box-shadow: none;
}
.slb-dr-remove:hover { color: #543e78; }
.slb-dr-price { font: 800 15px/1.3 Nunito, sans-serif; color: #3d3d3d; text-align: right; white-space: nowrap; }
.slb-dr-price .amount { font-weight: 800; }
.slb-dr-price small, .slb-dr-price .woocommerce-Price-currencySymbol { font-size: inherit; }

/* footer */
.slb-dr-foot { flex: 0 0 auto; padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid #e4dbea; background: #fff; }
.slb-dr-sub { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; font: 700 16px/1.2 Nunito, sans-serif; color: #543e78; }
.slb-dr-sub strong { font-weight: 800; font-size: 18px; color: #3d3d3d; }
.slb-dr-btn {
	display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%;
	text-align: center; text-decoration: none; border-radius: 10px; font-family: Nunito, sans-serif; cursor: pointer;
}
.slb-dr-btn--primary { height: 53px; background: #543e78; color: #fff; border: 0; font-size: 16.5px; font-weight: 800; }
.slb-dr-btn--primary:hover { background: #46326a; color: #fff; }
.slb-dr-btn--ghost { height: 48px; margin-top: 10px; background: #fff; color: #543e78; border: 1px solid #543e78; font-size: 15px; font-weight: 700; }
.slb-dr-btn--ghost:hover { background: #f1ecf5; color: #543e78; }
.slb-drawer .slb-trust { margin: 12px 0 0; text-align: center; font: 500 13.5px/1.45 Nunito, sans-serif; color: #6d6c6c; }

/* empty */
.slb-dr-empty { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 28px 22px 80px; text-align: center; }
.slb-dr-empty p { margin: 0 0 18px; font: 700 17px/1.4 Nunito, sans-serif; color: #543e78; }

@media (max-width: 520px) {
	.slb-drawer__panel { width: 100%; }
	.slb-drawer__title { font-size: 24px; }
	.slb-dr-item { grid-template-columns: 72px 1fr auto; gap: 12px; }
	.slb-dr-scroll, .slb-dr-foot, .slb-dr-empty { padding-left: 16px; padding-right: 16px; }
	.slb-drawer__head { padding-left: 16px; }
}

/* Add-to-basket confirmations are redundant once the drawer opens. */
.slb-dr-hide { display: none !important; }

/* reached state: message only, no bar */
.slb-drawer .fsl-title:only-child, .slb-drawer .qualified_message .fsl-title { margin: 0; font-size: 14px; font-weight: 700; }

/* product page add: inline message above the button (nothing the customer chose is lost) */
.slb-add-err { margin: 0 0 12px; padding: 10px 14px; border: 1.5px solid #B3261E; border-radius: 10px; background: #FFF4F2; color: #8A1C15; font: 600 14px/1.4 Nunito, sans-serif; text-align: left; }
.slb-add-err p { margin: 0; }
.slb-add-err p + p { margin-top: 4px; }
.slb-add-err:focus { outline: 2px solid #543E78; outline-offset: 2px; }
form.cart .single_add_to_cart_button.loading { opacity: .6; pointer-events: none; }

/* phone add-to-basket toast */
.slb-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 100000; transform: translate(-50%, 12px); opacity: 0; transition: opacity .2s, transform .2s; max-width: calc(100vw - 24px); width: max-content; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 999px; background: #4a3470; color: #fff; font-size: 13.5px; line-height: 1.3; box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.slb-toast[hidden] { display: none; }
.slb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.slb-toast__t { min-width: 0; }
.slb-toast__v { flex: none; background: none; border: 0; padding: 4px 2px; color: #fff; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .slb-toast { transition: none; } }
.slb-toast__t { text-wrap: balance; }
