/* ============================================================
   Tier One Side Cart  (v1.0.1 — Tier One clinical blue theme)
   Scoped to .tosc- only. Hardcoded hex (no Bricks theme tokens).
   Deep Navy #0B1F33 | Tier Blue #459BD3 / #2F86C3 | Cyan #9DE6F2
   Type: Outfit (display) / DM Sans (body)
   ============================================================ */

.tosc-locked { overflow: hidden; }

/* ---- Floating launcher (dark navy, white glyph, cyan badge) ---- */
.tosc-launcher {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99998;
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: #0B1F33;
	box-shadow: 0 10px 26px rgba(11, 31, 51, 0.34);
	transition: transform 0.18s ease, background 0.18s ease;
}
.tosc-launcher:hover { background: #113251; transform: translateY(-2px); }

.tosc-launcher-icon {
	display: block;
	width: 100%;
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 26px 26px;
}

.tosc-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 12px;
	background: #9DE6F2;
	color: #0B1F33;
	font-family: "Outfit", "DM Sans", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(11, 31, 51, 0.25);
}

/* ---- Overlay ---- */
.tosc-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(13, 16, 25, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
}
.tosc-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---- Drawer (light) ---- */
.tosc-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	width: 420px;
	max-width: 92vw;
	height: 100%;
	background: linear-gradient(180deg, #FFFFFF 0%, #F4FBFE 100%);
	color: #0B1F33;
	box-shadow: -18px 0 48px rgba(11, 31, 51, 0.22);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	font-family: "DM Sans", sans-serif;
}
.tosc-drawer.is-open { transform: translateX(0); }

/* ---- Header (navy gradient banner) ---- */
.tosc-head {
	flex: 0 0 auto;
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 22px 24px 20px;
	background: linear-gradient(135deg, #0B1F33 0%, #123A5A 100%);
	color: #FFFFFF;
}
.tosc-eyebrow {
	display: block;
	font-family: "Outfit", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #459BD3;
	margin-bottom: 6px;
}
.tosc-title {
	margin: 0;
	font-family: "Outfit", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	color: #FFFFFF;
}
.tosc-subtitle {
	margin: 6px 0 0;
	font-size: 13px;
	color: #B9D7E8;
}
.tosc-close {
	border: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #D6E8F2;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	flex: 0 0 auto;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.tosc-close-icon {
	display: block;
	width: 14px;
	height: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23D6E8F2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 2l10 10M12 2L2 12'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
}
.tosc-close:hover { background: rgba(69, 155, 211, 0.2); transform: translateY(-1px); }
.tosc-close:hover .tosc-close-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23459BD3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 2l10 10M12 2L2 12'/%3E%3C/svg%3E"); }

/* ---- Research-use notice strip ---- */
.tosc-notice {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	background: #EEF9FD;
	border-bottom: 1px solid rgba(11, 31, 51, 0.06);
}
.tosc-notice-dot {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #459BD3;
	position: relative;
}
.tosc-notice-dot::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #459BD3;
}
.tosc-notice-text { font-size: 13px; color: #5F7385; }
.tosc-notice-text strong { color: #0B1F33; font-weight: 700; }

/* ---- Body / items ---- */
.tosc-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px 20px;
}
.tosc-items-wrap { display: flex; flex-direction: column; gap: 14px; }

/* ---- Empty cart ---- */
.tosc-empty-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 40px 28px;
	background: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(11, 31, 51, 0.06);
}
.tosc-empty-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #E7F7FB;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M27 12h10' stroke='%23459BD3' stroke-width='4'/%3E%3Cpath d='M32 14v12' stroke='%23459BD3' stroke-width='4'/%3E%3Cpath d='M24 26h16l-3 10a9 9 0 0 1-10 0l-3-10Z' fill='%23F4FBFE' stroke='%230B1F33' stroke-width='3'/%3E%3Cpath d='M29 41v8' stroke='%230B1F33' stroke-width='3'/%3E%3Cpath d='M20 52h24' stroke='%230B1F33' stroke-width='4'/%3E%3Ccircle cx='29' cy='31' r='2' fill='%239DE6F2'/%3E%3Ccircle cx='36' cy='31' r='2' fill='%23459BD3'/%3E%3Cpath d='M44 18l6 6-8 8' stroke='%239DE6F2' stroke-width='3'/%3E%3Cpath d='M20 18l-6 6 8 8' stroke='%239DE6F2' stroke-width='3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 36px 36px;
	margin-bottom: 18px;
}
.tosc-empty-title {
	margin: 0 0 8px;
	font-family: "Outfit", sans-serif;
	font-size: 21px;
	font-weight: 700;
	color: #0B1F33;
}
.tosc-empty-text {
	margin: 0 0 22px;
	max-width: 280px;
	font-size: 14px;
	line-height: 1.5;
	color: #5F7385;
}
.tosc-empty-btn {
	width: auto;
	padding: 0 32px;
	height: 50px;
}

/* ---- Item card ---- */
.tosc-item {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	align-items: center;
	padding: 16px 44px 16px 16px;
	background: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(11, 31, 51, 0.06);
}
.tosc-item.tosc-loading { opacity: 0.5; pointer-events: none; }

.tosc-item-thumb {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	background: #EEF6FA;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.tosc-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	mix-blend-mode: multiply;
}

.tosc-item-main { min-width: 0; }
.tosc-item-name {
	display: block;
	font-family: "Outfit", sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #0B1F33;
	text-decoration: none;
	line-height: 1.25;
	margin-bottom: 10px;
}
.tosc-item-name:hover { color: #2F86C3; }

.tosc-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.tosc-item-price {
	font-family: "Outfit", sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #0B1F33;
	white-space: nowrap;
}
.tosc-item-price .amount { color: #0B1F33; }

/* ---- Quantity stepper (light pill, white number chip) ---- */
.tosc-qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #EEF6FA;
	border-radius: 999px;
	padding: 4px;
}
.tosc-qty-btn {
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #0B1F33;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.tosc-qty-btn:hover { background: rgba(69, 155, 211, 0.18); color: #2F86C3; }
.tosc-qty-val {
	min-width: 34px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #FFFFFF;
	border-radius: 999px;
	font-family: "Outfit", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #0B1F33;
	box-shadow: 0 1px 3px rgba(11, 31, 51, 0.12);
}
.tosc-qty-static { font-size: 14px; color: #5F7385; }

/* ---- Remove (gray circle, top-right of card) ---- */
.tosc-remove {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ECEFF1;
	color: #73889A;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	border-radius: 50%;
	transition: color 0.15s ease, background 0.15s ease;
}
.tosc-remove:hover { color: #FFFFFF; background: #FF6B6B; }

/* ---- Footer ---- */
.tosc-foot {
	flex: 0 0 auto;
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tosc-subtotal-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px;
	border-radius: 16px;
	background: linear-gradient(135deg, #0B1F33 0%, #123A5A 100%);
	box-shadow: 0 8px 22px rgba(11, 31, 51, 0.18);
}
.tosc-subtotal-label {
	font-family: "Outfit", sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #FFFFFF;
}
.tosc-subtotal-value {
	font-family: "Outfit", sans-serif;
	font-size: 24px;
	font-weight: 800;
	color: #9DE6F2;
}
.tosc-subtotal-value .amount { color: #9DE6F2; }

.tosc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	border-radius: 999px;
	font-family: "Outfit", sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tosc-btn-ghost {
	color: #0B1F33;
	background: #FFFFFF;
	border: 1px solid rgba(11, 31, 51, 0.1);
	box-shadow: 0 4px 14px rgba(11, 31, 51, 0.06);
}
.tosc-btn-ghost:hover { border-color: #459BD3; color: #2F86C3; }
.tosc-btn-primary {
	color: #0B1F33;
	background: linear-gradient(90deg, #9DE6F2 0%, #459BD3 100%);
	border: 0;
	box-shadow: 0 8px 20px rgba(69, 155, 211, 0.32);
}
.tosc-btn-primary:hover { background: linear-gradient(90deg, #71D0E5 0%, #2F86C3 100%); color: #0B1F33; }

@media (max-width: 480px) {
	.tosc-drawer { width: 100%; max-width: 100%; }
	.tosc-launcher { right: 16px; bottom: 16px; }
}
