/* Sokopopote Checkout */
:root {
	--spc-accent: #F15A24;
	--spc-ink: #18181b;
	--spc-muted: #6b6b70;
	--spc-line: #e6e4e1;
	--spc-soft: #f6f5f3;
	--spc-bg: #ffffff;
	--spc-ok: #15803d;
	--spc-err: #c62828;
	--spc-warn: #b45309;
	--spc-radius: 14px;
	--spc-shadow: 0 18px 50px rgba(24, 24, 27, .18);
}

.spc-floating, .spc-checkout { color: var(--spc-ink); font-size: 15px; line-height: 1.5; }
.spc-floating *, .spc-checkout * { box-sizing: border-box; }
.spc-floating button, .spc-checkout button { font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }
.spc-floating [hidden], .spc-checkout [hidden] { display: none !important; }

/* Buttons */
.spc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border: 0 !important; border-radius: 999px;
	background: var(--spc-accent) !important; color: #fff !important;
	font-weight: 600 !important; font-size: 15px !important; line-height: 1 !important;
	text-decoration: none !important; box-shadow: none !important;
	transition: filter .15s ease, transform .15s ease;
}
.spc-btn:hover { filter: brightness(.94); color: #fff !important; }
.spc-btn:active { transform: translateY(1px); }
.spc-btn:disabled { opacity: .6; cursor: progress; }
.spc-btn-block { width: 100%; }
.spc-link { background: none !important; border: 0 !important; padding: 6px !important; color: var(--spc-muted) !important; text-decoration: underline; box-shadow: none !important; }

/* ================================================================== */
/* Floating cart                                                      */
/* ================================================================== */

.spc-fab {
	position: fixed; bottom: 24px; z-index: 99990;
	width: 62px; height: 62px; border-radius: 50% !important; border: 0 !important; padding: 0 !important;
	display: flex !important; align-items: center; justify-content: center;
	background: var(--spc-accent) !important; color: #fff !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .22) !important;
	transform: scale(0); opacity: 0; pointer-events: none;
	transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), opacity .2s ease;
}
.spc-pos-right .spc-fab { right: 24px; }
.spc-pos-left .spc-fab { left: 24px; }
.spc-floating.has-items .spc-fab { transform: scale(1); opacity: 1; pointer-events: auto; }
.spc-fab svg { width: 26px; height: 26px; }
.spc-count {
	position: absolute; top: -2px; right: -2px; min-width: 24px; height: 24px; padding: 0 6px;
	border-radius: 999px; background: var(--spc-ink); color: #fff;
	font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; border: 2px solid #fff;
}
.spc-fab.spc-bump { animation: spc-bump .5s ease; }
@keyframes spc-bump { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.18); } 65% { transform: scale(.94); } }

.spc-overlay {
	position: fixed; inset: 0; z-index: 99998; background: rgba(15, 15, 18, .45);
	opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.spc-floating.is-open .spc-overlay { opacity: 1; pointer-events: auto; }

.spc-drawer {
	position: fixed; top: 0; bottom: 0; z-index: 99999; width: min(420px, 100vw); height: 100%; height: 100dvh;
	background: var(--spc-bg); box-shadow: var(--spc-shadow);
	transition: transform .32s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
}
.spc-pos-right .spc-drawer { right: 0; transform: translateX(100%); }
.spc-pos-left .spc-drawer { left: 0; transform: translateX(-100%); }
.spc-floating.is-open .spc-drawer { transform: none; visibility: visible; }
html.spc-lock, html.spc-lock body { overflow: hidden; }

.spc-drawer-inner { display: flex; flex-direction: column; height: 100%; }
.spc-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid var(--spc-line); }
.spc-drawer-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.spc-drawer-head h2 span { margin-left: 6px; color: var(--spc-muted); font-size: 14px; font-weight: 500; }
.spc-close { display: flex; padding: 8px !important; border: 0 !important; border-radius: 50%; background: var(--spc-soft) !important; color: var(--spc-ink) !important; box-shadow: none !important; }

.spc-items { flex: 1; overflow-y: auto; margin: 0 !important; padding: 8px 20px !important; list-style: none !important; }
.spc-drawer.is-busy .spc-items, .spc-drawer.is-busy .spc-drawer-foot { opacity: .55; pointer-events: none; transition: opacity .15s; }
.spc-item { position: relative; display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--spc-line); margin: 0 !important; transition: opacity .2s; }
.spc-item:last-child { border-bottom: 0; }
.spc-item.is-removing { opacity: .3; }
.spc-thumb { flex: 0 0 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--spc-soft); }
.spc-thumb img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; }
.spc-info { flex: 1; min-width: 0; padding-right: 28px; }
.spc-name { display: block; color: var(--spc-ink) !important; font-weight: 600; text-decoration: none !important; line-height: 1.35; }
.spc-meta, .spc-meta dl { margin: 2px 0 0; color: var(--spc-muted); font-size: 13px; }
.spc-meta dt, .spc-meta dd, .spc-meta p { display: inline; margin: 0; }
.spc-unit { color: var(--spc-muted); font-size: 13px; }
.spc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.spc-line { font-weight: 700; }
.spc-qty { display: inline-flex; align-items: center; border: 1px solid var(--spc-line); border-radius: 999px; overflow: hidden; }
.spc-qty button { width: 34px; height: 34px; padding: 0 !important; border: 0 !important; background: transparent !important; color: var(--spc-ink) !important; font-size: 18px; line-height: 1; box-shadow: none !important; }
.spc-qty button:hover { background: var(--spc-soft) !important; }
.spc-qty input { width: 38px !important; height: 34px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important; text-align: center; font-weight: 600; -moz-appearance: textfield; box-shadow: none !important; }
.spc-qty input::-webkit-outer-spin-button, .spc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.spc-qty-fixed { color: var(--spc-muted); font-size: 13px; }
.spc-remove { position: absolute; top: 14px; right: 0; display: flex; padding: 6px !important; border: 0 !important; background: none !important; color: var(--spc-muted) !important; box-shadow: none !important; }
.spc-remove:hover { color: var(--spc-err) !important; }

.spc-drawer-foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--spc-line); background: var(--spc-bg); }
.spc-foot-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.spc-subtotal { font-size: 17px; }
.spc-discount { color: var(--spc-ok); }
.spc-note { margin: 2px 0 14px !important; color: var(--spc-muted); font-size: 13px; }
.spc-drawer-foot .spc-continue { display: block; margin: 8px auto 0; }
.spc-free { margin-bottom: 14px; padding: 12px 14px; border-radius: 10px; background: var(--spc-soft); }
.spc-free p { margin: 0 0 8px !important; font-size: 13px; }
.spc-free-bar { height: 6px; border-radius: 999px; background: var(--spc-line); overflow: hidden; }
.spc-free-bar span { display: block; height: 100%; border-radius: inherit; background: var(--spc-accent); transition: width .4s ease; }

.spc-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 20px; text-align: center; }
.spc-empty-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--spc-soft); color: var(--spc-muted); }
.spc-empty-icon svg { width: 32px; height: 32px; }
.spc-empty p { margin: 8px 0 14px !important; color: var(--spc-muted); }

.spc-toast {
	position: fixed; left: 50%; bottom: 100px; z-index: 100000; max-width: calc(100vw - 32px);
	padding: 12px 18px; border-radius: 10px; background: var(--spc-ink); color: #fff; font-size: 14px;
	transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .25s ease;
}
.spc-toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.spc-toast.is-error { background: var(--spc-err); }

/* ================================================================== */
/* Checkout                                                           */
/* ================================================================== */

.spc-checkout { max-width: 1120px; margin: 0 auto; }
.spc-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) {
	.spc-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
	.spc-summary { position: sticky; top: 24px; }
}
@media (max-width: 899px) { .spc-summary { order: -1; } }

.spc-card, .spc-step, .spc-summary { background: var(--spc-bg); border: 1px solid var(--spc-line); border-radius: var(--spc-radius); }
.spc-card { padding: 24px; }
.spc-center { text-align: center; max-width: 560px; margin: 0 auto; }
.spc-center h2 { margin: 12px 0 8px; }
.spc-center .spc-btn { margin-top: 12px; }
.spc-muted { color: var(--spc-muted); }

/* Steps */
.spc-step { margin-bottom: 14px; transition: box-shadow .2s; }
.spc-step.is-active { box-shadow: 0 6px 24px rgba(24, 24, 27, .06); border-color: #d9d6d2; }
.spc-step-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.spc-step-head h3 { margin: 0 !important; font-size: 17px; font-weight: 700; }
.spc-step.is-locked .spc-step-head h3 { color: var(--spc-muted); }
.spc-step-num {
	flex: 0 0 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: var(--spc-soft); color: var(--spc-muted); font-size: 14px; font-weight: 700;
}
.spc-step.is-active .spc-step-num { background: var(--spc-accent); color: #fff; }
.spc-step.is-done .spc-step-num { background: var(--spc-ok); color: #fff; font-size: 0; }
.spc-step.is-done .spc-step-num::after { content: "\2713"; font-size: 15px; }
.spc-edit { display: none; margin-left: auto; padding: 4px 10px !important; border: 0 !important; background: none !important; color: var(--spc-accent) !important; font-weight: 600; box-shadow: none !important; }
.spc-step.is-done .spc-edit { display: inline-block; }
.spc-step-summary { display: none; padding: 0 22px 18px 66px; color: var(--spc-muted); font-size: 14px; word-break: break-word; }
.spc-step.is-done .spc-step-summary { display: block; }
.spc-step-summary strong { color: var(--spc-ink); }
.spc-step-body { display: none; padding: 0 22px 22px; }
.spc-step.is-active .spc-step-body { display: block; }

/* Fields */
.spc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 600px) { .spc-fields { grid-template-columns: 1fr; } }
.spc-field { display: flex; flex-direction: column; gap: 6px; }
.spc-full { grid-column: 1 / -1; }
.spc-field label, .spc-stk-form label, .spc-manual-form label, .spc-panel-label { font-weight: 600; font-size: 14px; margin: 0; }
.spc-optional { color: var(--spc-muted); font-weight: 400; }
.spc-field small { color: var(--spc-muted); font-size: 12.5px; }
.spc-checkout input[type="text"], .spc-checkout input[type="tel"], .spc-checkout input[type="email"], .spc-checkout select, .spc-checkout textarea {
	width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
	border: 1px solid #d6d3cf; border-radius: 10px; background: #fff; color: var(--spc-ink);
	font-size: 16px; line-height: 1.4; box-shadow: none; outline: none; transition: border-color .15s, box-shadow .15s;
}
.spc-checkout textarea { min-height: 72px; resize: vertical; }
.spc-checkout input:focus, .spc-checkout select:focus, .spc-checkout textarea:focus {
	border-color: var(--spc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--spc-accent) 18%, transparent);
}
.spc-field.has-error input, .spc-field.has-error select, .spc-field.has-error textarea { border-color: var(--spc-err); }
.spc-field-err { color: var(--spc-err); font-size: 13px; }
.spc-field-err-slot:not(:empty) { margin: -8px 0 14px; }

/* Choice cards */
.spc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.spc-choices.is-hidden { display: none; }
@media (max-width: 480px) { .spc-choices { grid-template-columns: 1fr; } }
.spc-choice, .spc-branch, .spc-method {
	position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px;
	border: 1.5px solid var(--spc-line); border-radius: 12px; background: #fff; cursor: pointer;
	transition: border-color .15s, background .15s;
}
.spc-choice:hover, .spc-branch:hover, .spc-method:hover { border-color: #cfcbc6; }
.spc-choice.is-checked, .spc-branch.is-checked, .spc-method.is-checked {
	border-color: var(--spc-accent); background: color-mix(in srgb, var(--spc-accent) 6%, #fff);
}
.spc-choice input, .spc-branch input, .spc-method input { position: absolute; opacity: 0; pointer-events: none; }
.spc-choice strong, .spc-branch strong, .spc-method strong { display: block; font-size: 15px; }
.spc-choice small, .spc-branch small, .spc-method small { display: block; color: var(--spc-muted); font-size: 13px; line-height: 1.4; }
.spc-choice-icon { display: flex; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; border-radius: 10px; background: var(--spc-soft); color: var(--spc-ink); }
.spc-choice.is-checked .spc-choice-icon { background: var(--spc-accent); color: #fff; }
.spc-choice input:focus-visible + .spc-choice-icon, .spc-method input:focus-visible + .spc-radio { outline: 2px solid var(--spc-accent); outline-offset: 2px; }
.spc-panel { margin-bottom: 4px; }
.spc-panel-label { display: block; margin-bottom: 10px !important; }
.spc-branches, .spc-methods { display: grid; gap: 10px; margin-bottom: 20px; }
.spc-radio { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid #c9c5c0; transition: border .15s; }
.spc-method.is-checked .spc-radio { border: 6px solid var(--spc-accent); }
.spc-branch::before { content: ""; flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid #c9c5c0; }
.spc-branch.is-checked::before { border: 6px solid var(--spc-accent); }
.spc-notes { margin-bottom: 18px; }
.spc-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fdecec; color: var(--spc-err); font-size: 14px; }
.spc-place { min-height: 54px; font-size: 16px !important; }
.spc-fine { margin: 12px 0 0 !important; color: var(--spc-muted); font-size: 13px; text-align: center; }

/* Summary */
.spc-summary { padding: 22px; }
.spc-summary h3 { margin: 0 0 14px !important; font-size: 17px; }
.spc-sum-items { margin: 0 0 14px !important; padding: 0 !important; list-style: none !important; max-height: 320px; overflow-y: auto; }
.spc-sum-items li { display: flex; align-items: center; gap: 12px; padding: 8px 0; margin: 0 !important; }
.spc-sum-thumb { position: relative; flex: 0 0 52px; height: 52px; border-radius: 9px; background: var(--spc-soft); }
.spc-sum-thumb img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 9px; margin: 0 !important; }
.spc-sum-thumb em { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--spc-muted); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 20px; text-align: center; }
.spc-sum-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.spc-sum-name dl, .spc-sum-name dd, .spc-sum-name dt, .spc-sum-name p { display: inline; margin: 0; font-weight: 400; color: var(--spc-muted); font-size: 12.5px; }
.spc-sum-price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.spc-sum-rows { border-top: 1px solid var(--spc-line); padding-top: 12px; }
.spc-sum-rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.spc-sum-total { margin-top: 8px; padding-top: 12px !important; border-top: 1px solid var(--spc-line); font-size: 17px !important; }
.spc-sum-total strong { font-size: 20px; }

/* ================================================================== */
/* Complete your payment                                              */
/* ================================================================== */

.spc-pay[data-order] { max-width: 600px; margin: 0 auto; }
.spc-pay-head { text-align: center; margin-bottom: 22px; }
.spc-eyebrow { margin: 0 !important; color: var(--spc-muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.spc-pay-head h2 { margin: 6px 0 4px !important; font-size: 26px; }
.spc-amount { margin: 0 !important; font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
.spc-pay-head .spc-muted { margin: 6px 0 0 !important; font-size: 14px; }

.spc-pay .spc-card { margin-bottom: 14px; }
.spc-state { display: none; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.spc-state h3 { margin: 0 0 4px !important; font-size: 17px; }
.spc-state p { margin: 0 !important; color: var(--spc-muted); font-size: 14px; }
.spc-pay[data-state="waiting"] .spc-state-waiting,
.spc-pay[data-state="timeout"] .spc-state-timeout,
.spc-pay[data-state="failed"] .spc-state-failed,
.spc-pay[data-state="idle"] .spc-state-idle,
.spc-pay[data-state="paid"] .spc-state-paid { display: flex; }
.spc-pay[data-state="paid"] .spc-stk-form { display: none; }

.spc-badge { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--spc-soft); color: var(--spc-ink); }
.spc-center .spc-badge { width: 64px; height: 64px; }
.spc-badge.is-ok { background: #e7f6ec; color: var(--spc-ok); }
.spc-badge.is-err { background: #fdecec; color: var(--spc-err); }
.spc-badge.is-warn { background: #fef3e2; color: var(--spc-warn); }

.spc-spinner { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--spc-soft); border-top-color: var(--spc-accent); animation: spc-spin .9s linear infinite; }
@keyframes spc-spin { to { transform: rotate(360deg); } }

.spc-stk-form, .spc-manual-form { display: flex; flex-direction: column; gap: 8px; }
.spc-inline { display: flex; gap: 10px; }
.spc-inline input { flex: 1; min-width: 0; }
.spc-inline .spc-btn { flex: 0 0 auto; border-radius: 10px; }
@media (max-width: 480px) { .spc-inline { flex-direction: column; } }
.spc-inline-err { margin: 0 !important; color: var(--spc-err); font-size: 13px; }

.spc-manual summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.spc-manual summary::-webkit-details-marker { display: none; }
.spc-manual summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--spc-muted); }
.spc-manual[open] summary::after { content: "\2212"; }
.spc-steps { margin: 18px 0 20px !important; padding-left: 22px !important; }
.spc-steps li { margin: 0 0 8px !important; padding-left: 4px; }
.spc-copy-wrap { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spc-copy-wrap strong { font-size: 16px; letter-spacing: .02em; }
.spc-copy { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px !important; border: 1px solid var(--spc-line) !important; border-radius: 999px; background: #fff !important; color: var(--spc-muted) !important; font-size: 12px !important; box-shadow: none !important; }
.spc-copy:hover { color: var(--spc-ink) !important; }
.spc-manual-form input { text-transform: uppercase; letter-spacing: .08em; }
.spc-manual-form input::placeholder { text-transform: none; letter-spacing: normal; }
.spc-hint { color: var(--spc-muted); font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
	.spc-drawer, .spc-fab, .spc-overlay, .spc-toast { transition: none; }
	.spc-spinner, .spc-fab.spc-bump { animation: none; }
}
