/* Subham Mini Cart - all selectors are namespaced */
.swmc-root { --swmc-bg:#f4eee7; --swmc-text:#171717; --swmc-muted:#85817d; --swmc-accent:#d2a477; --swmc-card:#eee0d0; --swmc-border:#e5d0b8; --swmc-pad:18px; color:var(--swmc-text); font-family:var(--swmc-font, inherit); font-size:var(--swmc-base-size, 15px); }
.swmc-trigger { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:7px; border:0; background:transparent; color:inherit; cursor:pointer; padding:8px; }
.swmc-trigger-icon { display:inline-flex; align-items:center; justify-content:center; line-height:0; }
.swmc-trigger-icon svg, .swmc-trigger-custom-image { width:24px; height:24px; display:block; }
.swmc-trigger-custom-image { object-fit:contain; }
.swmc-count { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 4px; border-radius:20px; background:var(--swmc-accent); color:#fff; font-size:11px; line-height:1; }
.swmc-overlay { position:fixed; inset:0; z-index:99998; background:rgba(0,0,0,.45); opacity:0; visibility:hidden; transition:opacity .28s ease,visibility .28s ease; }
.swmc-drawer { position:fixed; z-index:99999; top:0; right:0; width:var(--swmc-drawer-width, 450px); max-width:100vw; height:100vh; height:100dvh; display:flex; flex-direction:column; background:var(--swmc-bg); color:var(--swmc-text); transform:translateX(102%); transition:transform .32s cubic-bezier(.2,.75,.25,1); box-shadow:-12px 0 40px rgba(0,0,0,.08); font-family:inherit; }
.swmc-root.swmc-open .swmc-overlay { opacity:1; visibility:visible; }
.swmc-root.swmc-open .swmc-drawer { transform:translateX(0); }
.swmc-header { flex:0 0 auto; min-height:74px; display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid rgba(160,130,100,.22); }
.swmc-header-title { margin:0; color:inherit; font-size:var(--swmc-heading-size, 20px); line-height:1.2; font-weight:600; letter-spacing:.01em; }
.swmc-close { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; padding:5px; border:0; background:transparent; color:inherit; cursor:pointer; }
.swmc-close svg { width:22px; height:22px; }
.swmc-body { flex:1 1 auto; min-height:0; overflow:hidden; display:flex; flex-direction:column; padding:24px 17px 16px; }
.swmc-empty { flex:1; min-height:250px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:25px 12px; }
.swmc-empty-icon { color:var(--swmc-accent); margin-bottom:22px; }
.swmc-empty-icon svg { width:54px; height:54px; display:block; }
.swmc-empty h3 { margin:0 0 8px; color:inherit; font-size:19px; line-height:1.3; font-weight:600; }
.swmc-empty p { margin:0 0 18px; color:var(--swmc-muted); font-size:15px; line-height:1.5; }
.swmc-start-shopping { width:min(100%,296px); min-height:50px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(30,30,30,.35); border-radius:12px; color:inherit; text-decoration:none; font-size:16px; transition:background .2s,color .2s; }
.swmc-start-shopping:hover { background:var(--swmc-text); color:#fff; }
.swmc-filled { display:flex; flex-direction:column; flex:1; min-height:0; }
.swmc-products { flex:1 1 auto; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:var(--swmc-product-gap, 14px); padding:0 0 18px; scrollbar-width:thin; }
.swmc-product { position:relative; flex:0 0 auto; display:flex; align-items:flex-end; justify-content:space-between; gap:12px; padding:12px 12px 10px 22px; border:1px solid var(--swmc-border); border-radius:var(--swmc-card-radius, 14px); background:var(--swmc-card); }
.swmc-product-info { min-width:0; flex:1; }
.swmc-product-image { display:none; }
.swmc-product-title { margin:0 0 3px; color:inherit; font-size:15px; line-height:1.4; font-weight:600; }
.swmc-variation { margin:0 0 5px; color:var(--swmc-muted); font-size:12px; }
.swmc-price { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:4px 0 11px; font-size:14px; }
.swmc-price del { color:var(--swmc-muted); opacity:.9; }
.swmc-price ins { color:var(--swmc-accent); text-decoration:none; font-weight:700; }
.swmc-quantity { display:inline-flex; align-items:center; justify-content:center; gap:0; min-height:36px; padding:0 5px; border-radius:9px; background:#fff; }
.swmc-qty-btn { display:inline-flex; align-items:center; justify-content:center; width:34px; height:36px; padding:8px; border:0; background:transparent; color:var(--swmc-text); cursor:pointer; }
.swmc-qty-btn svg { width:15px; height:15px; }
.swmc-qty-value { min-width:22px; text-align:center; color:var(--swmc-text); font-size:14px; font-weight:600; }
.swmc-remove { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; flex:0 0 30px; padding:7px; border:0; border-radius:9px; background:rgba(190,105,83,.17); color:#bd725d; cursor:pointer; }
.swmc-remove svg { width:15px; height:15px; }
.swmc-summary { flex:0 0 auto; padding-top:8px; background:var(--swmc-bg); }
.swmc-coupon { margin:0 0 18px; }
.swmc-coupon label { display:block; margin:0 0 9px; color:inherit; font-size:15px; font-weight:600; }
.swmc-coupon-row { display:flex; gap:7px; }
.swmc-coupon input { min-width:0; flex:1; height:46px; padding:0 12px; border:1px solid var(--swmc-border); border-radius:10px; outline:none; background:var(--swmc-card); color:var(--swmc-text); font:inherit; font-size:14px; }
.swmc-coupon button { flex:0 0 auto; min-width:72px; height:46px; padding:0 16px; border:0; border-radius:12px; background:#171717; color:#fff; font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.swmc-coupon-message { margin-top:6px; color:var(--swmc-muted); font-size:12px; }
.swmc-subtotal,.swmc-total { display:flex; align-items:center; justify-content:space-between; gap:15px; color:inherit; font-size:14px; }
.swmc-subtotal { margin-bottom:18px; }
.swmc-subtotal strong,.swmc-total strong { font-weight:500; white-space:nowrap; }
.swmc-total { padding:15px 0 0; border-top:1px solid rgba(160,130,100,.22); font-size:18px; font-weight:600; }
.swmc-total strong { font-size:19px; font-weight:700; }
.swmc-shipping-note { margin:12px 0 16px; color:var(--swmc-muted); font-size:13px; line-height:1.4; }
.swmc-checkout { min-height:57px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 17px; border-radius:11px; background:var(--swmc-checkout-bg, var(--swmc-accent)); color:var(--swmc-button-text, #fff); text-decoration:none; font-size:16px; font-weight:600; transition:filter .2s,transform .2s; }
.swmc-checkout:hover { color:#fff; filter:brightness(.96); transform:translateY(-1px); }
.swmc-payment-icons { font-size:14px; letter-spacing:2px; }
.swmc-payment-note { margin:10px 0 0; color:var(--swmc-text); text-align:center; font-size:12px; line-height:1.4; }
.swmc-is-loading { opacity:.55; pointer-events:none; }
body.swmc-no-scroll { overflow:hidden; }
@media (max-width:767px) {
	.swmc-drawer { width:100%; max-width:100vw; }
	.swmc-header { min-height:68px; padding:15px 18px; }
	.swmc-body { padding:18px 16px 14px; }
	.swmc-product { padding-left:14px; }
	.swmc-summary { padding-top:5px; }
}

/* Product thumbnails: enabled in the cart item layout */
.swmc-product { align-items:center; }
.swmc-product-media { display:block; flex:0 0 76px; width:76px; height:76px; overflow:hidden; border-radius:9px; background:rgba(255,255,255,.45); }
.swmc-product-image { display:block; width:100%; height:100%; max-width:none; object-fit:cover; object-position:center; border:0; box-shadow:none; }
.swmc-product-info { flex:1 1 auto; min-width:0; }
.swmc-root .swmc-close,
.swmc-root .swmc-qty-btn,
.swmc-root .swmc-remove,
.swmc-root .swmc-coupon button { appearance:none; -webkit-appearance:none; font-family:inherit; line-height:1; box-shadow:none; text-transform:none; letter-spacing:normal; }
.swmc-root .swmc-close { background:transparent; border:0; }
.swmc-root .swmc-qty-btn { background:transparent; border:0; }
.swmc-root .swmc-coupon button { background:#171717; color:#fff; border:0; }
.swmc-root .swmc-checkout { border:0; }

/* Elementor editor: render the drawer as an inline design preview instead of
   leaving the fixed drawer translated off-canvas as it is on the live site. */
.swmc-editor-preview { width:100%; display:flex; justify-content:flex-end; }
.swmc-editor-preview .swmc-overlay { display:none; }
.swmc-editor-preview .swmc-drawer {
  position:relative;
  inset:auto;
  transform:none;
  visibility:visible;
  width:100%;
  max-width:450px;
  height:760px;
  max-height:80vh;
  margin-left:auto;
  box-shadow:0 4px 24px rgba(0,0,0,.06);
}
.swmc-editor-preview .swmc-body { min-height:0; }
.swmc-editor-preview .swmc-products { min-height:90px; }
@media (max-width:767px) {
  .swmc-product-media { flex-basis:64px; width:64px; height:64px; }
  .swmc-editor-preview .swmc-drawer { max-width:100%; height:680px; max-height:80vh; }
}
.swmc-root .swmc-trigger { appearance:none; -webkit-appearance:none; border:0; background:transparent; color:inherit; box-shadow:none; font-family:inherit; text-transform:none; }


/* v1.0.2 — Elementor editor reset: keep widget appearance independent
   from Elementor, Astra and theme-wide button/input defaults. */
.swmc-root,
.swmc-root * {
	box-sizing: border-box;
}
.swmc-root .swmc-drawer {
	background: var(--swmc-bg, #efe9df);
	color: var(--swmc-text, #171717);
	font-family: inherit;
}
.swmc-root .swmc-header-title,
.swmc-root .swmc-product-title,
.swmc-root .swmc-empty h3,
.swmc-root .swmc-empty p,
.swmc-root .swmc-subtotal,
.swmc-root .swmc-total,
.swmc-root .swmc-shipping-note,
.swmc-root .swmc-payment-note,
.swmc-root .swmc-coupon label {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}
.swmc-root .swmc-product {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-width: 0;
	background: var(--swmc-card, #eedcd4);
	border: 1px solid var(--swmc-border, #e8cfc4);
}
.swmc-root .swmc-product-media {
	display: block;
	flex: 0 0 76px;
	width: 76px;
	height: 76px;
	min-width: 0;
	overflow: hidden;
}
.swmc-root .swmc-product-media img,
.swmc-root img.swmc-product-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0;
	object-fit: cover;
}
.swmc-root .swmc-product-info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}
.swmc-root .swmc-close,
.swmc-root .swmc-qty-btn,
.swmc-root .swmc-remove,
.swmc-root .swmc-coupon-row button {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	margin: 0;
	font-family: inherit;
	font-weight: 500;
	line-height: 1;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}
.swmc-root .swmc-close {
	width: 36px;
	height: 36px;
	padding: 7px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--swmc-text, #171717);
}
.swmc-root .swmc-close svg { display: block; width: 22px; height: 22px; }
.swmc-root .swmc-quantity {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 36px;
	padding: 0 5px;
	border: 0;
	border-radius: 9px;
	background: #fff;
}
.swmc-root .swmc-qty-btn {
	width: 34px;
	height: 36px;
	padding: 8px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--swmc-text, #171717);
}
.swmc-root .swmc-qty-btn svg { display: block; width: 15px; height: 15px; }
.swmc-root .swmc-qty-value { display: inline-block; min-width: 22px; text-align: center; }
.swmc-root .swmc-remove {
	width: 30px;
	height: 30px;
	padding: 7px;
	border: 0;
	border-radius: 9px;
	background: rgba(190,105,83,.17);
	color: #bd725d;
}
.swmc-root .swmc-coupon-row { display: flex; flex-wrap: nowrap; gap: 7px; }
.swmc-root .swmc-coupon-row input {
	display: block;
	flex: 1 1 auto;
	width: 1%;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--swmc-border, #e8cfc4);
	border-radius: 10px;
	background: var(--swmc-card, #eedcd4);
	color: var(--swmc-text, #171717);
	font: inherit;
	font-size: 14px;
	box-shadow: none;
}
.swmc-root .swmc-coupon-row button {
	flex: 0 0 auto;
	height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: #171717;
	color: #fff;
	font-size: 14px;
}
.swmc-root .swmc-checkout {
	display: flex;
	width: 100%;
	min-height: 57px;
	align-items: center;
	justify-content: space-between;
	padding: 0 17px;
	border: 0;
	border-radius: var(--swmc-button-radius, 10px);
	background: var(--swmc-checkout-bg, #f54967);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
}
.swmc-root .swmc-checkout:hover {
	background: var(--swmc-checkout-hover, #ed3e5e);
	color: #fff;
}
.swmc-editor-preview {
	display: flex;
	width: 100%;
	min-width: 0;
	justify-content: flex-end;
	overflow: visible;
}
.swmc-editor-preview .swmc-overlay { display: none; }
.swmc-editor-preview .swmc-drawer {
	position: relative;
	inset: auto;
	display: flex;
	width: min(100%, 450px);
	max-width: 100%;
	height: 740px;
	max-height: none;
	margin: 0 0 0 auto;
	transform: none;
	visibility: visible;
	opacity: 1;
	box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.swmc-editor-preview .swmc-body {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}
.swmc-editor-preview .swmc-filled {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
}
.swmc-editor-preview .swmc-products {
	display: flex;
	flex: 1 1 auto;
	min-height: 90px;
	overflow-y: auto;
}
@media (max-width: 767px) {
	.swmc-root .swmc-product-media { flex-basis: 64px; width: 64px; height: 64px; }
	.swmc-editor-preview .swmc-drawer { width: 100%; height: 680px; }
}


/* v1.0.3 — fine-grained Elementor controls and editor canvas sizing */
.elementor-widget-subham-mini-cart .swmc-root,
.elementor-widget-subham-mini-cart .swmc-root * { box-sizing: border-box; }
.elementor-widget-subham-mini-cart .swmc-editor-preview { width: 100%; min-width: 0; }
.elementor-widget-subham-mini-cart .swmc-editor-preview .swmc-drawer {
  max-width: 100%;
  min-width: 0;
  flex: 0 1 var(--swmc-drawer-width, 450px);
}
.elementor-widget-subham-mini-cart .swmc-product-media { flex-shrink: 0; }
.elementor-widget-subham-mini-cart .swmc-product-image { display: block; }
.elementor-widget-subham-mini-cart .swmc-product-info { min-width: 0; overflow-wrap: anywhere; }
.elementor-widget-subham-mini-cart .swmc-quantity { width: max-content; }
.elementor-widget-subham-mini-cart .swmc-coupon-row { align-items: stretch; }
.elementor-widget-subham-mini-cart .swmc-coupon input { min-width: 0; }
.elementor-widget-subham-mini-cart .swmc-checkout,
.elementor-widget-subham-mini-cart .swmc-start-shopping { box-sizing: border-box; }

/* Product image visibility must override the legacy hidden-image rule. */
.swmc-root .swmc-product-media img, .swmc-root img.swmc-product-image { display: block !important; }

/* v1.1.5 — applied coupon confirmation and visible discount row */
.swmc-root .swmc-coupon-applied {
	display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap;
	gap:5px; margin:7px 0 0; color:#249653; font-size:13px; line-height:1.4;
}
.swmc-root .swmc-coupon-applied-label { display:inline-flex; align-items:center; gap:5px; }
.swmc-root .swmc-coupon-tag { font-size:13px; }
.swmc-root .swmc-coupon-remove {
	min-width:0; height:auto; padding:0; border:0; border-radius:0;
	background:transparent; color:#d28a57; font:inherit; font-size:13px;
	font-weight:500; text-decoration:underline; cursor:pointer;
}
.swmc-root .swmc-coupon-remove:hover { background:transparent; color:#b96e3e; }
.swmc-root .swmc-discount {
	display:flex; align-items:center; justify-content:space-between; gap:15px;
	margin:-8px 0 14px; color:#249653; font-size:14px; line-height:1.4;
}
.swmc-root .swmc-discount strong { color:inherit; font-weight:500; white-space:nowrap; }
.swmc-root .swmc-coupon-message:empty { display:none; }
.swmc-root .swmc-coupon-message:not(:empty) { color:#c0392b; }
