/* =====================================================================
   Header mini-cart ("Your Basket"). Design: study247-mini-cart-bootstrap5 (css/style.css on top of
   Bootstrap 5.3.3 reboot, offcanvas 520px). Markup: inc/mini-cart-template.php, behaviour: assets/js/mini-cart.js.
   The shell (toggle, backdrop, slide-in, close button) is Elementor Pro's Menu Cart widget; this file restyles
   the shell and everything inside `.widget_shopping_cart_content`.
   Values are the design's, in px, with the Bootstrap reboot defaults it relied on written out
   (Arial, line-height 1.5, text #212529, strong 700, svg block, p/h margins).
   Tokens: blue #0758f7, navy #111344, orange #ff5b05, line #e1e6f0.
   ===================================================================== */

/* ---- shell: backdrop + panel (Bootstrap offcanvas-end) ---- */
body .elementor-menu-cart__container { background-color: rgba(0, 0, 0, .5); }
body .elementor-menu-cart__main {
	width: 520px; max-width: 100%; padding: 0; margin: 0; border: 0; border-radius: 16px 0 0 16px; overflow: hidden;
	background: #fff; box-shadow: -12px 0 36px #121b3826; font: 400 16px/1.5 Arial, Helvetica, sans-serif; color: #212529;
}
body .elementor-menu-cart__main .widget_shopping_cart_content { flex: 1; min-height: 0; height: auto; }

/* close button: the glyph is Bootstrap's btn-close (16px, 60% opacity) in a 32px hit area, centred on the title row.
   Drawn on ::before because a theme reset sets `background: transparent !important` on this element. */
body .elementor-menu-cart__main .elementor-menu-cart__close-button {
	position: absolute; top: 38px; right: 20px; z-index: 3; width: 32px; height: 32px; margin: 0; padding: 0;
	cursor: pointer; opacity: .6; transition: opacity .15s;
}
body .elementor-menu-cart__main .elementor-menu-cart__close-button:hover { opacity: .75; }
body .elementor-menu-cart__main .elementor-menu-cart__close-button::after { display: none; }
body .elementor-menu-cart__main .elementor-menu-cart__close-button::before {
	content: ""; position: absolute; left: 8px; top: 8px; width: 16px; height: 16px; margin: 0; border-radius: 0; background: center / 16px auto no-repeat url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
	transform: none;
}
body .elementor-menu-cart__main .elementor-menu-cart__close-button:focus-visible { outline: 2px solid #0758f7; outline-offset: 0; border-radius: 6px; }

/* ---- panel content ---- */
.s247-mc, .s247-mc *, .s247-mc *::before, .s247-mc *::after { box-sizing: border-box; }
.s247-mc { display: flex; flex-direction: column; height: 100%; min-height: 0; font: 400 16px/1.5 Arial, Helvetica, sans-serif; color: #212529; text-align: left; letter-spacing: normal; text-transform: none; }
.s247-mc svg { display: block; flex: none; }
.s247-mc :is(p, h2, h3, dl, dd, dt, section, div, label, output, span, strong, small) { text-shadow: none; }
.s247-mc .woocommerce-Price-amount, .s247-mc .woocommerce-Price-currencySymbol, .s247-mc bdi { font: inherit; color: inherit; }
.s247-mc strong { font-weight: 700; }
.s247-mc.is-busy .s247-mc__body { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* title row */
.s247-mc__head { flex: none; display: flex; align-items: center; gap: 22px; padding: 30px 28px 24px; border-bottom: 1px solid #e1e6f0; }
.s247-mc__mark { position: relative; display: block; flex: none; width: 48px; height: 48px; }
.s247-mc__mark svg { width: 44px; height: 44px; fill: none; stroke: #111; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s247-mc__badge { position: absolute; top: -6px; right: -7px; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #fff; border-radius: 50%; background: #0758f7; color: #fff; font-size: 14px; font-weight: 400; }
.s247-mc .s247-mc__title { margin: 0; padding: 0; font: 800 31px/1.2 Arial, Helvetica, sans-serif; letter-spacing: -1px; color: inherit; }
.s247-mc__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* scrolling body */
.s247-mc__body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 28px 32px; }

/* basket line */
.s247-mc__item { position: relative; display: flex; gap: 20px; padding: 0 35px 26px 0; border-bottom: 1px solid #e1e6f0; }
.s247-mc__item + .s247-mc__item { padding-top: 24px; }
.s247-mc__thumb { flex: none; width: 100px; height: 100px; }
.s247-mc__thumb a { display: block; }
.s247-mc .s247-mc__img { display: block; width: 100px; height: 100px; max-width: none; object-fit: cover; filter: grayscale(1); border-radius: 12px; }
.s247-mc__info { min-width: 0; flex: 1; }
.s247-mc .s247-mc__name { margin: 0 0 10px; padding: 0; font: 800 19px/1.25 Arial, Helvetica, sans-serif; letter-spacing: normal; color: inherit; text-wrap: balance; }
body .s247-mc .s247-mc__name a { color: inherit; text-decoration: none; transition: color .2s; }
body .s247-mc .s247-mc__name a:hover { color: #0758f7; }
.s247-mc dl.variation { display: grid; grid-template-columns: max-content auto; gap: 2px 6px; margin: -4px 0 10px; font-size: 13px; line-height: 1.4; color: #566072; }
.s247-mc dl.variation dt { margin: 0; font-weight: 700; }
.s247-mc dl.variation dd { margin: 0; }
.s247-mc dl.variation dd p { margin: 0; }
.s247-mc__unit { margin-bottom: 13px; font-size: 16px; color: #111344; }
.s247-mc__qty-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 15px; }
.s247-mc__qty { display: flex; height: 38px; overflow: hidden; border: 1px solid #222; border-radius: 9px; }
body .s247-mc button.s247-mc__qty-btn {
	flex: none; width: 39px; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
	background: #fff; color: #000; font: 400 24px/1 Arial, Helvetica, sans-serif; letter-spacing: normal; text-transform: none; cursor: pointer; transition: background-color .15s;
}
body .s247-mc button.s247-mc__qty-btn:hover:not(:disabled), body .s247-mc button.s247-mc__qty-btn:focus-visible:not(:disabled) { background: #eef3ff; color: #000; }
body .s247-mc button.s247-mc__qty-btn:disabled { opacity: .45; color: rgba(16, 16, 16, .3); cursor: default; } /* the design fades the disabled glyph twice (UA grey + opacity) */
body .s247-mc button.s247-mc__qty-btn:focus-visible { outline: 2px solid #0758f7; outline-offset: -2px; }
.s247-mc__qty-val { display: grid; place-items: center; min-width: 44px; border-inline: 1px solid #e1e6f0; font-weight: 700; }
body .s247-mc a.s247-mc__remove {
	position: absolute; right: 0; top: 34px; display: grid; place-items: center; width: 29px; height: 29px; padding: 0; overflow: hidden;
	border: 1px solid #9ca3b8; border-radius: 50%; background: #fff; color: #81899c; font-size: 23px; line-height: 22px; text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.s247-mc__item + .s247-mc__item .s247-mc__remove { top: 58px; }
body .s247-mc a.s247-mc__remove:hover { background: #f6f8fc; border-color: #81899c; color: #111; }
body .s247-mc a.s247-mc__remove:focus-visible { outline: 2px solid #0758f7; outline-offset: 2px; }

/* message under the basket lines (e.g. a quantity limit) */
.s247-mc__msg { margin-top: 12px; font-size: 13px; line-height: 1.4; color: #b42318; }
.s247-mc__msg:empty { display: none; }

/* bulk-discount band */
.s247-mc__bulk { display: flex; align-items: center; gap: 16px; margin: 20px 0; padding: 16px; border-radius: 13px; background: #eaf1ff; color: #111344; }
.s247-mc__bulk svg { width: 34px; height: 34px; fill: none; stroke: #0758f7; stroke-width: 1.8; }
.s247-mc__bulk strong { display: block; font-size: 17px; line-height: 1.3; }
.s247-mc__bulk p { margin: 5px 0 0; font-size: 13px; line-height: 1.4; }
.s247-mc__bulk sup { position: relative; top: -.5em; font-size: .75em; line-height: 0; vertical-align: baseline; }

/* promo code */
.s247-mc__promo { padding: 20px 0 24px; border-top: 1px solid #e1e6f0; border-bottom: 1px solid #e1e6f0; }
.s247-mc__promo label { display: block; margin: 0 0 10px; font-size: 16px; font-weight: 400; line-height: 1.5; color: #111344; }
.s247-mc__promo-row { display: flex; gap: 12px; margin: 0; }
body .elementor-menu-cart__main .s247-mc input.s247-mc__input {
	display: block; flex: 1; width: 100%; min-width: 0; height: auto; margin: 0; padding: 10px 14px; border: 1px solid #777e98; border-radius: 11px; box-shadow: none;
	background: #fff; color: #212529; font: 400 15px/1.5 Arial, Helvetica, sans-serif; letter-spacing: normal; appearance: none; transition: border-color .15s, box-shadow .15s;
}
body .elementor-menu-cart__main .s247-mc input.s247-mc__input::placeholder { color: rgba(33, 37, 41, .75); opacity: 1; }
body .elementor-menu-cart__main .s247-mc input.s247-mc__input:focus { outline: 0; border-color: #0758f7; box-shadow: 0 0 0 3px #0758f71c; background: #fff; color: #212529; }
body .s247-mc button.s247-mc__apply {
	flex: none; min-width: 105px; height: auto; min-height: 0; margin: 0; padding: 9px 25px; border: 2px solid #0758f7; border-radius: 10px; box-shadow: none; /* 10px like View cart / Checkout (the design had a 25px pill; changed on request) */
	background: #fff; color: #111344; font: 800 16px/1.5 Arial, Helvetica, sans-serif; letter-spacing: normal; text-transform: none; cursor: pointer; transition: background-color .15s;
}
body .s247-mc button.s247-mc__apply:hover, body .s247-mc button.s247-mc__apply:focus-visible { background: #eef4ff; color: #111344; border-color: #0758f7; }
body .s247-mc button.s247-mc__apply:focus-visible { outline: 2px solid #0758f7; outline-offset: 2px; }
.s247-mc__feedback { margin-top: 8px; font-size: 14px; line-height: 1.5; color: rgba(33, 37, 41, .75); }
.s247-mc__feedback:empty { display: none; }
.s247-mc__feedback.is-error { color: #b42318; }
.s247-mc__feedback.is-ok { color: #12652d; }

/* totals */
.s247-mc__totals { padding: 22px 0 24px; }
.s247-mc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; font-size: 16px; }
.s247-mc__row > strong { font-size: 20px; }
.s247-mc__row--sub > strong, .s247-mc__row--sub > span > strong { font-size: 23px; }
.s247-mc__row small { font-size: 13px; font-weight: 400; }
.s247-mc__row--discount { font-size: 14px; color: #12652d; }
.s247-mc__row--discount > strong { font-size: 16px; }
body .s247-mc button.s247-mc__unapply { display: inline; margin: 0 0 0 6px; padding: 0; border: 0; box-shadow: none; background: none; color: inherit; font: 400 13px/1.5 Arial, Helvetica, sans-serif; text-decoration: underline; text-transform: none; cursor: pointer; }
body .s247-mc button.s247-mc__unapply:hover, body .s247-mc button.s247-mc__unapply:focus-visible { background: none; color: #0758f7; }

/* View cart / Checkout */
.s247-mc__actions { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; }
body .s247-mc a.s247-mc__view, body .s247-mc a.s247-mc__checkout {
	display: flex; align-items: center; justify-content: center; min-height: 53px; border-radius: 10px; font-size: 17px; font-weight: 800; line-height: 1.5; text-decoration: none; transition: background-color .15s;
}
body .s247-mc a.s247-mc__view { border: 1.5px solid #111; background: #fff; color: #111; }
body .s247-mc a.s247-mc__view:hover { background: #f6f8fc; color: #111; }
body .s247-mc a.s247-mc__checkout { gap: 10px; border: 1px solid #ff5b05; background: #ff5b05; color: #fff; }
body .s247-mc a.s247-mc__checkout:hover { background: #e94e00; border-color: #ff5b05; color: #fff; }
body .s247-mc a.s247-mc__checkout svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body .s247-mc a.s247-mc__view:focus-visible, body .s247-mc a.s247-mc__checkout:focus-visible { outline: 2px solid #0758f7; outline-offset: 2px; }

/* trust rows */
.s247-mc__secure { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 17px; border-radius: 13px; background: #e9faee; color: #076b21; }
.s247-mc__secure svg { width: 34px; height: 34px; fill: none; stroke: #07952c; stroke-width: 1.6; }
.s247-mc__secure strong { font-size: 15px; white-space: nowrap; }
.s247-mc__secure span { padding-left: 14px; border-left: 1px solid #a2cdb0; color: #1d2923; font-size: 12px; line-height: 1.4; }
.s247-mc__perks { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; text-align: center; }
.s247-mc__perks > div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 7px; font-size: 12px; line-height: 1.45; }
.s247-mc__perks > div + div { border-left: 1px solid #e1e6f0; }
.s247-mc__perks svg { width: 30px; height: 30px; fill: none; stroke: #111; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s247-mc__note { margin: 24px 0 0; font-size: 11px; line-height: 1.5; color: #737b8d; }

/* empty basket */
.s247-mc__empty { padding: 70px 10px; font-size: 16px; text-align: center; }
.s247-mc .s247-mc__empty h3 { margin: 0 0 8px; font: 800 28px/1.2 Arial, Helvetica, sans-serif; letter-spacing: normal; color: inherit; }
.s247-mc__empty p { margin: 0 0 16px; font-size: 16px; font-weight: 400; }
body .s247-mc a.s247-mc__shop { display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: 16px; font-weight: 400; line-height: 1.5; background: #0758f7; color: #fff; text-decoration: none; transition: background-color .15s; }
body .s247-mc a.s247-mc__shop:hover { background: #0649cf; color: #fff; }
body .s247-mc a.s247-mc__shop:focus-visible { outline: 2px solid #0758f7; outline-offset: 2px; }

/* phones (design breakpoint 575px): full-width panel, tighter spacing */
@media (max-width: 575px) {
	body .elementor-menu-cart__main { border-radius: 0; }
	body .elementor-menu-cart__main .elementor-menu-cart__close-button { top: 31px; right: 10px; }
	.s247-mc__head { gap: 15px; padding: 23px 18px 19px; }
	.s247-mc .s247-mc__title { font-size: 27px; }
	.s247-mc__body { padding: 20px 18px 30px; }
	.s247-mc__item { gap: 13px; padding-right: 28px; }
	.s247-mc__thumb { width: 82px; height: 86px; }
	.s247-mc .s247-mc__img { width: 82px; height: 86px; }
	.s247-mc .s247-mc__name { font-size: 16px; }
	.s247-mc__qty-row { gap: 7px; }
	.s247-mc__bulk { gap: 11px; padding: 13px; }
	.s247-mc__bulk strong { font-size: 15px; }
	.s247-mc__promo-row { gap: 8px; }
	body .s247-mc button.s247-mc__apply { min-width: 88px; padding: 8px 14px; }
	.s247-mc__secure { gap: 9px; padding: 12px; }
	.s247-mc__secure strong { font-size: 12px; }
	.s247-mc__secure span { padding-left: 9px; font-size: 11px; }
	.s247-mc__actions { gap: 9px; }
	body .s247-mc a.s247-mc__view, body .s247-mc a.s247-mc__checkout { font-size: 15px; }
	.s247-mc__perks > div { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	.s247-mc *, .s247-mc *::before, .s247-mc *::after { transition: none !important; }
}
