/* ==========================================================================
   KScents — skin for WooCommerce's own checkout / account / thank-you.
   Layout and behaviour are WooCommerce's; this only dresses it as
   ivory stationery inside the black-and-gold frame.
   ========================================================================== */

.ks-woo { padding-bottom: clamp(80px, 12vh, 140px); }
.ks-paper {
	--wp--preset--color--contrast: #2a2117;
	--wp--preset--color--base: #fbf7ef;
	position: relative;
	padding: clamp(22px, 4vw, 60px);
	border-radius: 28px;
	color: #2a2117;
	background:
		radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, .7), transparent 50%),
		radial-gradient(ellipse at 100% 100%, rgba(196, 160, 100, .16), transparent 55%),
		linear-gradient(180deg, #fbf7ef, #f1e7d5);
	box-shadow: 0 70px 140px -70px rgba(0, 0, 0, .95);
	outline: 1px solid rgba(150, 110, 45, .3);
	outline-offset: -12px;
	font: 400 15px/1.6 var(--f-sans);
	letter-spacing: 0;
}
.ks-paper :where(h1, h2, h3, h4) { font-family: var(--f-serif); font-weight: 500; color: #1f170e; letter-spacing: 0; }
.ks-paper :where(p) { margin: 0 0 1em; }
.ks-paper :where(a) { color: #8a6326; text-decoration: underline; text-underline-offset: 3px; }
.ks-paper :where(img) { display: inline-block; }
.ks-paper input[type="checkbox"], .ks-paper input[type="radio"] { accent-color: #8a6326; }

/* ---------- Block checkout ---------- */
.ks-paper .wp-block-woocommerce-checkout { margin: 0; padding: 0; max-width: none; }
.ks-paper .wc-block-components-title, .ks-paper .wc-block-components-checkout-step__title { font: 500 1.65rem/1.2 var(--f-serif) !important; color: #1f170e !important; }
.ks-paper .wc-block-components-checkout-step__description { color: #6b5536; }
.ks-paper .wc-block-components-text-input input,
.ks-paper .wc-block-components-text-input textarea,
.ks-paper .wc-blocks-components-select .wc-blocks-components-select__select,
.ks-paper .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.ks-paper .wc-block-components-textarea {
	background: #fffdf8 !important;
	border: 1px solid rgba(42, 33, 23, .22) !important;
	border-radius: 12px !important;
	color: #2a2117 !important;
	box-shadow: none !important;
	transition: border-color .3s, box-shadow .3s;
}
.ks-paper .wc-block-components-text-input input:focus,
.ks-paper .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.ks-paper .wc-block-components-textarea:focus { border-color: #b48a3c !important; box-shadow: 0 0 0 1px #b48a3c !important; }
.ks-paper .wc-block-components-text-input label, .ks-paper .wc-blocks-components-select__label { color: #7a6243 !important; }
.ks-paper .wc-block-components-button:not(.is-link),
.ks-paper .wc-block-components-checkout-place-order-button {
	min-height: 58px;
	border: 0 !important;
	border-radius: 999px !important;
	background: #17110a !important;
	color: #f6e2a6 !important;
	font: 500 .78rem/1 var(--f-sans) !important;
	letter-spacing: .26em !important;
	text-transform: uppercase;
	box-shadow: 0 20px 44px -20px rgba(23, 17, 10, .9);
	transition: background .5s, color .5s, transform .4s;
}
.ks-paper .wc-block-components-button:not(.is-link):hover,
.ks-paper .wc-block-components-checkout-place-order-button:hover { background: linear-gradient(110deg, #8a6326, #d6b06a 45%, #f6e2a6 60%, #9c7433) !important; color: #160f05 !important; transform: translateY(-2px); }
.ks-paper .wc-block-components-checkout-return-to-cart-button { color: #8a6326 !important; }
.ks-paper .wc-block-components-sidebar-layout .wc-block-components-sidebar { padding: 26px 22px; border-radius: 20px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(150, 110, 45, .18); }
.ks-paper .wc-block-components-order-summary-item__image img { border-radius: 99px 99px 8px 8px; }
.ks-paper .wc-block-components-order-summary-item__quantity { background: #17110a; color: #f6e2a6; border: 0; box-shadow: none; }
.ks-paper .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.ks-paper .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font: 500 1.25rem var(--f-display); color: #1f170e; }
.ks-paper .wc-block-components-radio-control__option,
.ks-paper .wc-block-components-radio-control-accordion-option { border-color: rgba(42, 33, 23, .18) !important; }
.ks-paper .wc-block-components-radio-control__option-checked, .ks-paper .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 1.5px #8a6326 !important; }
.ks-paper .wc-block-components-notice-banner { border-radius: 14px; }

/* ---------- Classic templates (account, thank-you details) ---------- */
.ks-paper .button, .ks-paper button.button, .ks-paper a.button, .ks-paper input.button, .ks-paper .woocommerce-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1.1em 2em;
	border: 0;
	border-radius: 999px;
	background: #17110a;
	color: #f6e2a6 !important;
	font: 500 .72rem/1 var(--f-sans);
	letter-spacing: .24em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .4s, color .4s;
}
.ks-paper .button:hover, .ks-paper .woocommerce-button:hover { background: #8a6326; color: #fff !important; }
.ks-paper input.input-text, .ks-paper .woocommerce-Input, .ks-paper select, .ks-paper textarea {
	width: 100%;
	padding: 14px 16px !important;
	border: 1px solid rgba(42, 33, 23, .22) !important;
	border-radius: 12px !important;
	background: #fffdf8 !important;
	font: 400 1rem var(--f-sans);
	color: #2a2117;
	outline: none;
}
.ks-paper input.input-text:focus, .ks-paper select:focus, .ks-paper textarea:focus { border-color: #b48a3c; box-shadow: 0 0 0 1px #b48a3c; }
/* classic forms only — block checkout labels keep WooCommerce's own layout */
.ks-paper :is(.form-row, .woocommerce-form-row) > label { display: block; margin-bottom: 6px; font: 500 .64rem var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: #6b5536; }
.ks-paper :is(.form-row, .woocommerce-form-row) > label.woocommerce-form__label-for-checkbox, .ks-paper label.woocommerce-form__label-for-checkbox { display: inline-flex; gap: 8px; align-items: center; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.ks-paper .form-row, .ks-paper .woocommerce-form-row { margin: 0 0 18px; }
.ks-paper .u-columns.col2-set, .ks-paper .col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.ks-paper .col2-set::before, .ks-paper .col2-set::after { display: none; }
.ks-paper .col2-set > * { width: auto !important; float: none !important; }
.ks-paper h2 { font-size: 1.8rem; margin: 0 0 18px; }
.ks-paper table.shop_table, .ks-paper table.woocommerce-table { width: 100%; border-collapse: collapse; margin: 0 0 30px; border: 0; }
.ks-paper table th, .ks-paper table td { padding: 14px 10px; border: 0; border-bottom: 1px solid rgba(42, 33, 23, .12); text-align: left; vertical-align: top; }
.ks-paper table thead th { font: 500 .64rem var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: #6b5536; }
.ks-paper table tfoot th { font-weight: 500; }
.ks-paper table tfoot tr:last-child td, .ks-paper table tfoot tr:last-child th { font: 500 1.1rem var(--f-display); color: #1f170e; border-bottom: 0; }
.ks-paper .woocommerce-order-overview { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 34px; }
.ks-paper .woocommerce-order-overview li { margin: 0 24px 12px 0; padding-right: 24px; border-right: 1px dashed rgba(42, 33, 23, .2); font: 500 .62rem var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: #6b5536; }
.ks-paper .woocommerce-order-overview li:last-child { border-right: 0; }
.ks-paper .woocommerce-order-overview strong { display: block; margin-top: 4px; font: 500 1rem var(--f-display); letter-spacing: .04em; text-transform: none; color: #1f170e; }
.ks-paper .woocommerce-notice--success, .ks-paper .woocommerce-thankyou-order-received { font: 400 1.6rem/1.3 var(--f-serif); color: #1f170e; margin-bottom: 24px; }
.ks-paper address { font-style: normal; line-height: 1.8; padding: 18px 20px; border: 1px solid rgba(42, 33, 23, .14); border-radius: 14px; background: rgba(255, 255, 255, .45); }
.ks-paper .woocommerce-message, .ks-paper .woocommerce-info, .ks-paper .woocommerce-error {
	list-style: none;
	margin: 0 0 24px;
	padding: 14px 18px;
	border-radius: 12px;
	background: rgba(138, 99, 38, .08);
	border-left: 2px solid #8a6326;
	color: #2a2117;
}
.ks-paper .woocommerce-message .button, .ks-paper .woocommerce-info .button { float: right; padding: .8em 1.4em; }
.ks-paper .woocommerce-error { border-color: #a3352b; background: rgba(163, 53, 43, .06); }
.ks-paper .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.ks-paper .woocommerce-MyAccount-navigation li a { display: block; padding: .85em 1.4em; border-radius: 99px; border: 1px solid rgba(42, 33, 23, .18); font: 500 .64rem var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: #2a2117; text-decoration: none; transition: background .3s, color .3s; }
.ks-paper .woocommerce-MyAccount-navigation li.is-active a, .ks-paper .woocommerce-MyAccount-navigation li a:hover { background: #17110a; color: #f6e2a6; border-color: #17110a; }
.ks-paper .woocommerce-MyAccount-navigation, .ks-paper .woocommerce-MyAccount-content { float: none; width: auto; }
.ks-paper .woocommerce-pagination { margin-top: 20px; }

@media (max-width: 760px) {
	.ks-paper { border-radius: 20px; outline-offset: -8px; }
	.ks-paper .u-columns.col2-set, .ks-paper .col2-set { grid-template-columns: 1fr; }
	.ks-paper .woocommerce-order-overview li { border-right: 0; }
}
