/* Buttons/inputs don't inherit the page font by default in most browsers.
   Force every element inside our widget to use the site's own font-family. */
.isc-drawer,
.isc-overlay,
.isc-drawer *,
.isc-overlay * {
	font-family: inherit;
}

/* Overlay */
.isc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 10, 15, 0.45);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
	z-index: 100000;
}
.isc-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* Drawer */
.isc-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	width: min(400px, 92vw);
	background: #ffffff;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 40px rgba(0,0,0,.25);
	transition: transform .32s cubic-bezier(.22,.99,.35,1);
	font-family: inherit;
}
.isc-drawer.isc-side-left {
	left: 0;
	transform: translateX(-105%);
}
.isc-drawer.isc-side-left.is-open {
	transform: translateX(0);
}
.isc-drawer.isc-side-right {
	right: 0;
	transform: translateX(105%);
}
.isc-drawer.isc-side-right.is-open {
	transform: translateX(0);
}

/* Header */
.isc-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	background: #f6516f;
	color: #fff;
	flex-shrink: 0;
}
.isc-drawer-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
}
.isc-drawer-title svg { color: #fff; }
.isc-cart-count {
	background: #fff;
	color: #f6516f;
	font-size: 12px;
	font-weight: 800;
	min-width: 20px;
	height: 20px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}
.isc-close {
	background: #fff;
	border: none;
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	color: #f6516f;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .2s ease;
	box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.isc-close:hover { transform: scale(1.04); }
.isc-close svg { flex-shrink: 0; }

/* Flash success message */
.isc-drawer-flash {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #eafaf0;
	color: #1c8a4b;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 20px;
	border-bottom: 1px solid #d7f2e2;
	animation: isc-flash-in .3s ease;
	flex-shrink: 0;
}
.isc-flash-check {
	background: #01b700;
	color: #fff;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
@keyframes isc-flash-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Body */
.isc-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px 18px;
}
.isc-drawer-body::-webkit-scrollbar { width: 6px; }
.isc-drawer-body::-webkit-scrollbar-thumb { background: #eee; border-radius: 10px; }

.isc-items {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.isc-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 10px 10px;
	border: 1px solid #f0e3e6;
	border-radius: 14px;
	position: relative;
	background: #fff;
}
.isc-item-remove {
	position: absolute;
	top: -7px;
	left: -7px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid #f0e3e6;
	color: #8a8a8a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .15s ease;
	box-shadow: 0 2px 6px rgba(0,0,0,.08);
	z-index: 2;
}
.isc-item-remove:hover {
	background: #f6516f;
	border-color: #f6516f;
	color: #fff;
	transform: scale(1.08);
}
.isc-item-thumb {
	width: 76px;
	height: 76px;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
	background: #faf5f6;
	display: flex;
	align-items: center;
	justify-content: center;
}
.isc-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.isc-item-info { flex: 1; min-width: 0; }
.isc-item-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13.5px;
	line-height: 1.5;
	font-weight: 600;
	color: #1f1f1f;
	text-decoration: none;
	transition: color .15s ease;
}
.isc-item-name:hover { color: #f6516f; }
.isc-item-variation {
	margin-top: 3px;
	font-size: 11.5px;
	color: #8a8a8a;
	line-height: 1.6;
}
.isc-item-variation dl,
.isc-item-variation p {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 6px;
}
.isc-item-variation dt {
	font-weight: 600;
	color: #8a8a8a;
}
.isc-item-variation dd {
	margin: 0;
	color: #1f1f1f;
}
.isc-item-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 12px;
	color: #8a8a8a;
}
.isc-item-price-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.4;
}
.isc-item-price-regular {
	font-size: 11px;
	color: #f6b000;
	text-decoration: line-through;
	font-weight: 600;
}
.isc-item-price { color: #f6516f; font-weight: 700; }
.isc-item-price-unit {
	color: #1f1f1f;
	font-size: 11px;
	font-weight: 500;
}

.isc-savings-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 4px 0;
	font-size: 12.5px;
	color: #1f1f1f;
	font-weight: 600;
}
.isc-savings-row strong { font-size: 13px; }

.isc-qty-stepper {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	background: #f7f2f3;
	border-radius: 10px;
	padding: 3px;
}
.isc-qty-btn {
	width: 24px;
	height: 24px;
	margin:0px;
	border: none;
	border-radius: 7px;
	background: #fff;
	color: #f6516f;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
	transition: background .15s ease, transform .1s ease, color .15s ease;
}
.isc-qty-btn:hover { background: #f6516f; color: #fff; }
.isc-qty-btn:active { transform: scale(0.92); }
.isc-qty-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.isc-qty-value {
	min-width: 22px;
	text-align: center;
	font-size: 13px;
	font-weight: 800;
	color: #1f1f1f;
}
.isc-item.isc-updating { opacity: .5; pointer-events: none; }
.isc-item-remove {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fbecef;
	color: #f6516f;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background .2s ease, transform .2s ease;
}
.isc-item-remove:hover { background: #f6d5dc; transform: scale(1.05); }

.isc-subtotal-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 4px;
	border-top: 1px dashed #f0e3e6;
	margin-top: 4px;
	font-size: 15px;
}
.isc-subtotal-row strong { color: #f6516f; font-size: 17px; }

.isc-actions-stack {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}
.isc-actions {
	display: flex;
	gap: 8px;
}
.isc-btn-full {
	width: 100%;
}

.isc-btn {
	flex: 1;
	text-align: center;
	padding: 12px 10px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: transform .15s ease, filter .2s ease;
}
.isc-btn:hover { filter: brightness(0.95); }
.isc-btn:active { transform: scale(0.98); }
.isc-btn-primary {
	background: #f6516f;
	color: #fff;
}
.isc-btn-outline {
	background: #fff;
	color: #f6516f;
	border: 1.5px solid #f6516f;
}

/* Empty state */
.isc-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 10px;
	color: #8a8a8a;
}
.isc-empty-icon { color: #f0c3ce; margin-bottom: 12px; }
.isc-empty p { margin: 0 0 16px; font-size: 14px; }
.isc-empty .isc-btn { flex: none; padding: 10px 26px; }

/* Floating cart button (optional helper) */
.isc-fab {
	position: fixed;
	bottom: 22px;
	z-index: 99998;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #f6516f;
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(236,28,78,.35);
	cursor: pointer;
}
.isc-fab.isc-side-left { left: 18px; }
.isc-fab.isc-side-right { right: 18px; }
.isc-fab .isc-cart-count {
	position: absolute;
	top: -4px;
	inset-inline-end: -4px;
}

@media (max-width: 480px) {
	.isc-drawer { width: 100vw; }
}

.woocommerce-notices-wrapper:has(.woocommerce-message) {
	display: none !important;
}

.single_add_to_cart_button.loading,
button.loading {
	opacity: .7;
	pointer-events: none;
	position: relative;
}

.cart-customlocation span {
	visibility: visible !important;
}