/* Star Cart drawer */
.szs-cart, .szs-cart * { box-sizing: border-box; }
.szs-cart[hidden] { display: none !important; }
html.szs-cart-lock, html.szs-cart-lock body { overflow: hidden !important; }

.szs-cart {
	position: fixed; inset: 0; z-index: 999999;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #111827; font-size: 15px; line-height: 1.45;
}
.szs-cart-overlay {
	position: absolute; inset: 0;
	background: rgba(17, 24, 39, .45);
	opacity: 0; transition: opacity .25s ease;
}
.szs-cart-panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(440px, 100vw);
	display: flex; flex-direction: column;
	background: #fff;
	box-shadow: -12px 0 32px rgba(17, 24, 39, .18);
	transform: translateX(100%); transition: transform .25s ease;
	outline: 0;
}
.szs-cart.is-open .szs-cart-overlay { opacity: 1; }
.szs-cart.is-open .szs-cart-panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.szs-cart-overlay, .szs-cart-panel { transition: none; }
}

/* header */
.szs-cart-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 20px; border-bottom: 1px solid #E5E7EB; flex: none;
}
.szs-cart .szs-cart-title {
	display: flex; align-items: center; gap: 10px; margin: 0 !important;
	font: 800 22px/1.2 Inter, system-ui, sans-serif !important; color: #111827 !important;
}
.szs-cart-count {
	min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #111827; color: #fff; font-size: 13px; font-weight: 700;
}
.szs-cart button { font-family: inherit; cursor: pointer; }
.szs-cart .szs-cart-x {
	width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
	padding: 0; border: 0; border-radius: 10px; background: transparent !important; color: #111827 !important;
}
.szs-cart .szs-cart-x:hover { background: #F1F4FF !important; }
.szs-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* body */
.szs-cart-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; transition: opacity .15s ease; }
.szs-cart-panel.is-busy .szs-cart-body { opacity: .55; pointer-events: none; }
.szs-cart-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.szs-cart-loading { display: flex; gap: 6px; justify-content: center; padding: 48px 0; }
.szs-cart-loading span { width: 8px; height: 8px; border-radius: 50%; background: #C9D3FF; animation: szs-dot 1s infinite ease-in-out; }
.szs-cart-loading span:nth-child(2) { animation-delay: .15s; }
.szs-cart-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes szs-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.szs-cart .szs-cart-notice { margin: 12px 20px 0 !important; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.szs-cart-notice--error { background: #FDECEC; color: #8A1C1C; }
.szs-cart-notice--success { background: #E8F6EE; color: #1E6B3A; }

/* free shipping progress */
.szs-cart-progress { padding: 14px 20px; background: #F1F4FF; }
.szs-cart .szs-cart-progress p { margin: 0 0 8px !important; font-size: 14px; color: #111827; }
.szs-cart-bar { height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.szs-cart-bar span { display: block; height: 100%; border-radius: 999px; background: #1D5FD8; transition: width .3s ease; }
.szs-cart-fine { color: #5B6472; font-size: 13px; }

/* shipping estimate + free delivery bar */
.szs-cart-ship { padding: 14px 20px; background: #F1F4FF; display: flex; flex-direction: column; gap: 8px; }
.szs-cart .szs-cart-ship-title { display: flex; align-items: center; gap: 8px; margin: 0 !important; font-size: 14px; font-weight: 600; color: #111827; }
.szs-cart .szs-cart-ship-title svg { flex: none; width: 20px; height: 20px; color: #1D5FD8; }
.szs-cart .szs-cart-ship-title span { font-weight: 500; }
.szs-cart .szs-cart-ship-title strong { font-weight: 800; }
.szs-cart-ship-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.szs-cart-pc { display: flex; gap: 8px; }
.szs-cart .szs-cart-pc input {
	width: 120px; height: 40px; margin: 0 !important; padding: 0 12px !important; border: 1px solid #C9D3FF !important; border-radius: 8px !important;
	background: #fff; font: 600 15px Inter, system-ui, sans-serif; letter-spacing: .08em; color: #111827; box-shadow: none !important;
}
.szs-cart .szs-cart-pc input:focus { border-color: #1D5FD8 !important; outline: 0; }
.szs-cart .szs-cart-pc button { height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: #111827 !important; color: #fff !important; font-weight: 600; font-size: 14px; }
.szs-cart .szs-cart-pc button:hover { background: #1D5FD8 !important; }
.szs-cart-pc-change { flex: none; }
.szs-cart-pc-change summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: #1D5FD8; }
.szs-cart-pc-change summary::-webkit-details-marker { display: none; }
.szs-cart-pc-change[open] { flex-basis: 100%; }
.szs-cart-pc-change[open] summary { display: none; }
.szs-cart .szs-cart-ship-free { margin: 2px 0 0 !important; font-size: 14px; color: #111827; }

/* items */
.szs-cart .szs-cart-items { list-style: none !important; margin: 0 !important; padding: 0 20px !important; }
.szs-cart-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid #E5E7EB; margin: 0 !important; }
.szs-cart-thumb { flex: none; width: 76px; height: 76px; border-radius: 10px; background: #fff; border: 1px solid #E5E7EB; overflow: hidden; display: block; }
.szs-cart .szs-cart-thumb img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 6px; margin: 0 !important; }
.szs-cart-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.szs-cart-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.szs-cart-row:first-child { align-items: flex-start; }
.szs-cart .szs-cart-name { font-size: 15px; font-weight: 600; line-height: 1.35; color: #111827 !important; text-decoration: none !important; }
.szs-cart .szs-cart-name:hover { color: #1D5FD8 !important; }
.szs-cart .szs-cart-meta { margin: 0 !important; font-size: 13px; color: #5B6472; }
.szs-cart .szs-cart-remove {
	flex: none; width: 32px; height: 32px; margin: -6px -6px 0 0; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 8px; background: transparent !important; color: #5B6472 !important;
}
.szs-cart .szs-cart-remove:hover { background: #FDECEC !important; color: #B42318 !important; }
.szs-cart .szs-cart-remove svg { width: 16px; height: 16px; }

.szs-qty { display: inline-flex; align-items: center; height: 40px; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
.szs-cart .szs-qty button {
	width: 40px; height: 100%; padding: 0; border: 0; border-radius: 0;
	background: #fff !important; color: #111827 !important; font-size: 18px; line-height: 1;
}
.szs-cart .szs-qty button:hover { background: #F1F4FF !important; }
.szs-cart .szs-qty input {
	width: 44px !important; height: 100% !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	text-align: center; font: 600 15px Inter, system-ui, sans-serif; color: #111827; background: #fff;
	-moz-appearance: textfield;
}
.szs-qty input::-webkit-outer-spin-button, .szs-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.szs-cart-price { text-align: right; line-height: 1.2; }
.szs-cart-price s { display: block; font-size: 13px; color: #5B6472; }
.szs-cart-price strong { font-size: 16px; font-weight: 800; }

/* empty */
.szs-cart-empty { padding: 56px 24px; text-align: center; color: #5B6472; }
.szs-cart-empty svg { width: 44px; height: 44px; color: #C9D3FF; }
.szs-cart .szs-cart-empty p { margin: 12px 0 20px !important; font-size: 16px; }

/* recommendations */
.szs-cart-recs { margin: 8px 0 0; padding: 14px 20px 18px; background: #F7F9FB; }
.szs-cart-recs summary, .szs-cart-more summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
	font-size: 15px; font-weight: 600; color: #111827;
}
.szs-cart-recs summary::-webkit-details-marker, .szs-cart-more summary::-webkit-details-marker { display: none; }
.szs-cart-recs summary::after, .szs-cart-more summary::after {
	content: ""; width: 8px; height: 8px; margin-right: 4px;
	border-right: 2px solid #5B6472; border-bottom: 2px solid #5B6472; transform: rotate(45deg); transition: transform .15s ease;
}
.szs-cart-recs[open] summary::after, .szs-cart-more[open] summary::after { transform: rotate(-135deg); }
.szs-cart .szs-cart-recs ul { list-style: none !important; margin: 12px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.szs-cart .szs-cart-recs li { display: flex; flex-direction: column; gap: 6px; margin: 0 !important; min-width: 0; }
.szs-rec-img { display: block; aspect-ratio: 1; border-radius: 10px; background: #fff; overflow: hidden; }
.szs-cart .szs-rec-img img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 6px; margin: 0 !important; }
.szs-cart .szs-rec-name {
	font-size: 13px; font-weight: 600; line-height: 1.3; color: #111827 !important; text-decoration: none !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px;
}
.szs-rec-price { font-size: 13px; color: #111827; }
.szs-rec-price del { color: #5B6472; }
.szs-rec-price ins { text-decoration: none; color: #C2185B; font-weight: 700; }
.szs-cart .szs-rec-add {
	margin-top: auto; height: 36px; display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 8px; background: #111827 !important; color: #fff !important;
	font-size: 14px; font-weight: 600; text-decoration: none !important;
}
.szs-cart .szs-rec-add:hover { background: #1D5FD8 !important; }

/* footer */
.szs-cart-foot { flex: none; padding: 14px 20px 18px; border-top: 1px solid #E5E7EB; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.szs-cart .screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; border: 0 !important; }
.szs-cart-extras { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.szs-cart-more { border: 0; padding: 0; }
.szs-cart-more[open] { flex-basis: 100%; }
.szs-cart .szs-cart-more summary { justify-content: flex-start; gap: 6px; font-weight: 600; font-size: 14px; color: #1D5FD8; }
.szs-cart .szs-cart-more summary::after { display: none; }
.szs-cart .szs-cart-more summary::before { content: "+"; font-size: 16px; line-height: 1; }
.szs-cart .szs-cart-more[open] summary::before { content: "−"; }
.szs-cart-coupon { display: flex; gap: 8px; margin-top: 10px; }
.szs-cart .szs-cart-coupon input, .szs-cart .szs-cart-more textarea {
	flex: 1; min-width: 0; height: 42px; margin: 0 !important; padding: 0 12px !important;
	border: 1px solid #D1D5DB !important; border-radius: 8px !important; box-shadow: none !important;
	font: 15px Inter, system-ui, sans-serif; color: #111827; background: #fff;
}
.szs-cart .szs-cart-more textarea { width: 100%; height: auto; margin-top: 10px !important; padding: 10px 12px !important; resize: vertical; }
.szs-cart .szs-cart-coupon input:focus, .szs-cart .szs-cart-more textarea:focus { border-color: #1D5FD8 !important; outline: 0; }
.szs-cart .szs-cart-coupon button {
	height: 42px; padding: 0 16px; border: 0; border-radius: 8px;
	background: #111827 !important; color: #fff !important; font-weight: 600; font-size: 14px;
}
.szs-cart .szs-cart-chip { display: inline-flex; align-items: center; gap: 6px; margin: 10px 6px 0 0 !important; padding: 4px 6px 4px 10px; border-radius: 999px; background: #F1F4FF; font-size: 13px; font-weight: 600; }
.szs-cart .szs-cart-chip button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #fff !important; color: #111827 !important; line-height: 1; }

.szs-cart-info-box { padding: 10px 14px; border-radius: 10px; border: 1px solid #C9D3FF; background: #F1F4FF; font-size: 13px; color: #111827; }
.szs-cart .szs-cart-info-box p { margin: 0 !important; }
.szs-cart .szs-cart-info-box p + p { margin-top: 6px !important; }

.szs-cart .szs-cart-line { display: flex; justify-content: space-between; margin: 0 !important; font-size: 14px; }
.szs-cart .szs-cart-total { font-size: 17px; font-weight: 800; padding-top: 4px; }
.szs-cart .szs-cart-btn {
	display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 20px;
	border-radius: 10px; background: #111827 !important; color: #fff !important;
	font-size: 16px; font-weight: 700; text-decoration: none !important; transition: background .15s ease;
}
.szs-cart .szs-cart-btn:hover { background: #1D5FD8 !important; }
.szs-cart-empty .szs-cart-btn { display: inline-flex; }
.szs-cart .szs-cart-center { text-align: center; margin: 0 !important; }
.szs-cart .szs-cart-center a { color: #1D5FD8 !important; font-weight: 600; margin-left: 4px; }

.szs-cart a:focus-visible, .szs-cart button:focus-visible, .szs-cart summary:focus-visible {
	outline: 3px solid rgba(29, 95, 216, .4); outline-offset: 2px;
}

@media (max-width: 480px) {
	.szs-cart-head, .szs-cart-foot, .szs-cart-progress, .szs-cart-recs { padding-left: 16px; padding-right: 16px; }
	.szs-cart .szs-cart-items { padding: 0 16px !important; }
	.szs-cart-thumb { width: 64px; height: 64px; }
}
