@import url("https://fonts.googleapis.com/css2?family=Quattrocento+Sans:wght@400;700&family=Trirong:wght@400;500&display=swap");

:root {
	--background: #000;
	--text: #fff;
	--muted: #b9b9b9;
	--border: #6c6c6c;
	--accent: #58a6ff;
	--hover: #101a23;
	color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: var(--background); color: var(--text); font: 16px/1.5 "Quattrocento Sans", sans-serif; }
.site-header { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 14px 20px; border-bottom: 1px solid #252525; }
.brand { max-width: 220px; color: var(--text); font: 400 19px/1.15 Trirong, serif; text-align: center; text-decoration: none; }
.checkout { width: min(100%, 680px); margin: 0 auto; padding: 26px 20px 64px; }
h1 { margin: 0 0 24px; font: 400 31px/1.25 Trirong, serif; }
fieldset { min-width: 0; margin: 0 0 26px; padding: 0 0 22px; border: 0; border-bottom: 1px solid #333; }
legend { width: 100%; margin-bottom: 16px; font-size: 16px; font-weight: 700; }
label { display: block; margin-bottom: 16px; color: var(--text); font-size: 14px; }
input, select, textarea { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--background); color: var(--text); font: 16px "Quattrocento Sans", sans-serif; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input::placeholder { color: var(--muted); }
input[type="search"] { margin-bottom: 8px; }
input[type="radio"] { width: 18px; min-height: 18px; margin: 0 12px 0 0; accent-color: var(--accent); }
.checkbox-line { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.checkbox-line input { width: 18px; min-height: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.address-suggestions { max-height: 192px; overflow-y: auto; margin: -10px 0 16px; border: 1px solid var(--border); border-radius: 0 0 6px 6px; background: var(--background); }
.address-suggestions button { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-bottom: 1px solid #333; border-radius: 0; background: var(--background); color: var(--text); text-align: left; font-size: 14px; }
.address-suggestions button:hover, .address-suggestions button:focus-visible { background: var(--hover); }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.discount { gap: 8px; }
.discount button { align-self: end; margin: 0 0 16px; }
button, .action-link, .secondary-link { display: block; width: 100%; min-height: 48px; padding: 11px 18px; border: 1px solid var(--accent); border-radius: 6px; background: var(--background); color: var(--accent); font: 700 15px/1.5 "Quattrocento Sans", sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .action-link:hover { background: var(--hover); }
button:disabled { opacity: .5; cursor: not-allowed; }
#get-shipping { border-color: var(--border); color: var(--text); }
#shipping-rates label { display: flex; align-items: center; min-height: 48px; margin: 0; padding: 10px 0; border-bottom: 1px solid #333; cursor: pointer; }
#shipping-rates .rate-copy { min-width: 0; overflow-wrap: anywhere; }
#shipping-rates label:last-child { border-bottom: 0; }
.payment-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 20px; }
.payment-options label { display: flex; align-items: center; min-height: 48px; margin: 0; padding: 10px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.payment-options label:has(input:checked) { border-color: var(--accent); color: var(--accent); }
.payment-options input { flex: none; }
#paypal-buttons { min-height: 48px; }
#card-name, #card-number, #card-expiry, #card-cvv { min-width: 0; min-height: 54px; margin-bottom: 12px; }
.message { margin: 0 0 20px; padding: 12px; border-left: 3px solid #e38679; background: #271715; color: #ffd6cf; }
.order-summary { margin: 0 0 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.order-summary summary { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 0; cursor: pointer; list-style: none; }
.order-summary summary::-webkit-details-marker { display: none; }
.order-summary summary strong { margin-left: auto; white-space: nowrap; }
.order-summary summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.order-summary[open] summary::after { content: "-"; }
#summary-items { margin: 0; padding: 0; list-style: none; }
#summary-items li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid #333; }
#summary-items li > span { min-width: 0; overflow-wrap: anywhere; }
#summary-items small { display: block; color: var(--muted); }
#summary-items li > strong { white-space: nowrap; }
.summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0; padding: 16px 0 20px; border-top: 1px solid var(--border); }
.summary dd { margin: 0; text-align: right; }
.summary .total { padding-top: 14px; border-top: 1px solid var(--border); color: var(--text); font-size: 19px; font-weight: 700; }
#confirmation p { margin: 0 0 16px; color: var(--muted); }
#confirmation-order { color: var(--text) !important; font: 400 25px/1.4 Trirong, serif; }
.action-link, .secondary-link { margin-top: 12px; }
.secondary-link { border-color: var(--border); color: var(--text); }

@media (min-width: 600px) {
	.site-header { min-height: 82px; }
	.checkout { padding: 40px 32px 80px; }
	h1 { font-size: 38px; }
	.row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
	.discount { grid-template-columns: minmax(0, 1fr) auto; }
	.discount button { width: auto; }
}
