/* Paradox Sign quick checkout — change --qc-accent to recolour headings, selections and the button */
.ps-qc {
	--qc-accent: #0b0b0b;
	--qc-accent-soft: #f3f3f3;
	--qc-line: #e3e3e3;
	--qc-text: #1a1a1a;
	--qc-muted: #777;
	--qc-radius: 10px;
	font-family: 'Poppins', 'Hind Siliguri', system-ui, sans-serif;
	color: var(--qc-text);
	font-size: 15px;
	line-height: 1.5;
	position: relative;
}
html.ps-qc-lock, html.ps-qc-lock body { overflow: hidden; }

/* ---------- Popup shell ---------- */
.ps-qc-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 12px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.ps-qc-modal.is-open { visibility: visible; opacity: 1; }
.ps-qc-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.ps-qc-panel { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); transform: translateY(16px); transition: transform .25s; }
.ps-qc-modal.is-open .ps-qc-panel { transform: none; }
.ps-qc--modal { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ps-qc--modal .ps-qc-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ps-qc--modal .ps-qc-scroll { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }

/* Page version */
.ps-qc--page { max-width: 560px; margin: 30px auto 10px; border: 1px solid var(--qc-line); border-radius: 16px; overflow: hidden; }

/* ---------- Instruction bar ---------- */
.ps-qc-note { background: #0b0b0b; color: #fff; padding: 12px 52px 12px 16px; position: relative; flex: none; }
.ps-qc-note p { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.45; }
.ps-qc-close { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; background: #e9e9e9; color: #222; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ps-qc-close:hover, .ps-qc-close:focus { background: #fff; color: #000; }
.ps-qc-close .ps-qc-ico { width: 14px; height: 14px; }

.ps-qc-scroll { padding: 16px; }
.ps-qc-ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ps-qc-ico svg { width: 100%; height: 100%; }

/* ---------- Customer fields ---------- */
.ps-qc-fields { display: grid; gap: 12px; margin-bottom: 16px; }
.ps-qc-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--qc-line); border-radius: var(--qc-radius); padding: 0 14px; background: #fff; margin: 0; transition: border-color .15s, box-shadow .15s; }
.ps-qc-field .ps-qc-ico { color: #333; }
.ps-qc-field input[type] { border: 0 !important; box-shadow: none !important; outline: none; background: transparent; padding: 14px 0; font: inherit; font-size: 15px; width: 100%; color: var(--qc-text); border-radius: 0; }
.ps-qc-field input::placeholder { color: #9a9a9a; }
.ps-qc-field:focus-within { border-color: var(--qc-accent); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.ps-qc-field.is-invalid { border-color: #d32f2f; box-shadow: 0 0 0 3px rgba(211, 47, 47, .1); }

/* ---------- Product table ---------- */
.ps-qc-table { border: 1px solid var(--qc-line); border-radius: 14px; overflow: hidden; }
.ps-qc-row { display: grid; grid-template-columns: 70px 1fr 64px; gap: 12px; align-items: center; padding: 14px 12px; border-top: 1px solid var(--qc-line); }
.ps-qc-row:first-child { border-top: 0; }
.ps-qc-row--head { background: #f6f6f6; padding: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #333; }
.ps-qc-row--head span:last-child, .ps-qc-row > span:last-child { text-align: center; }
.ps-qc-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; background: #f3f3f3; }
.ps-qc-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ps-qc-name { font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--qc-accent); text-decoration: none; }
.ps-qc-name:hover { text-decoration: underline; color: var(--qc-accent); }
.ps-qc-price { font-weight: 600; font-size: 15px; }
.ps-qc-qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 2px; }
.ps-qc-qty span { min-width: 16px; text-align: center; font-weight: 500; }
.ps-qc-qty button { width: 26px; height: 26px; padding: 0; border: 1px solid var(--qc-line); border-radius: 5px; background: #f4f4f4; color: #222; font-size: 15px; line-height: 1; cursor: pointer; }
.ps-qc-qty button:hover, .ps-qc-qty button:focus { background: #0b0b0b; color: #fff; border-color: #0b0b0b; }
.ps-qc-del { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: #fde8e8; color: #e53935; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ps-qc-del:hover, .ps-qc-del:focus { background: #e53935; color: #fff; }

/* ---------- Delivery / payment options ---------- */
.ps-qc-h { font-family: inherit; font-size: 16px; font-weight: 600; color: var(--qc-accent); margin: 22px 0 10px; letter-spacing: 0; text-transform: none; }
.ps-qc-options { display: grid; gap: 10px; }
.ps-qc-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--qc-line); border-radius: var(--qc-radius); padding: 14px 16px; cursor: pointer; margin: 0; transition: border-color .15s, background .15s; }
.ps-qc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ps-qc-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #bbb; flex: none; position: relative; }
.ps-qc-opt input:checked + .ps-qc-radio { border-color: var(--qc-accent); }
.ps-qc-opt input:checked + .ps-qc-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--qc-accent); }
.ps-qc-opt input:focus-visible + .ps-qc-radio { box-shadow: 0 0 0 3px rgba(0, 0, 0, .15); }
.ps-qc-opt:has(input:checked) { border-color: var(--qc-accent); background: var(--qc-accent-soft); }
.ps-qc-opt-label { flex: 1; font-weight: 500; }
.ps-qc-opt strong { font-weight: 600; white-space: nowrap; }
.ps-qc-payfields { border: 1px dashed var(--qc-line); border-radius: var(--qc-radius); padding: 12px 14px; font-size: 14px; }
.ps-qc-payfields p { margin: 0 0 8px; }
.ps-qc-payfields input, .ps-qc-payfields select { width: 100%; border: 1px solid var(--qc-line); border-radius: 6px; padding: 9px 10px; }

/* ---------- Summary ---------- */
.ps-qc-summary { margin-top: 22px; background: #fafafa; border: 1px solid #efefef; border-radius: 14px; padding: 16px; }
.ps-qc-summary h4 { font-family: inherit; font-size: 16px; font-weight: 600; margin: 0 0 12px; text-transform: none; letter-spacing: 0; color: var(--qc-text); }
.ps-qc-summary p { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 14px; color: #555; }
.ps-qc-summary p span:last-child { color: var(--qc-text); font-weight: 500; }
.ps-qc-summary .ps-qc-total { border-top: 1px solid #e6e6e6; padding-top: 12px; margin: 12px 0 0; font-size: 16px; font-weight: 600; color: var(--qc-accent); }
.ps-qc-summary .ps-qc-total span:last-child { font-weight: 700; }

.ps-qc-error { margin-top: 14px; background: #fdecea; color: #b71c1c; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.ps-qc-warn { color: #b71c1c; font-size: 14px; }
.ps-qc-empty { text-align: center; padding: 20px 0 6px; }
.ps-qc-empty p { margin: 0 0 12px; font-weight: 500; }
.ps-qc-shop { display: inline-block; background: #0b0b0b; color: #fff; padding: 10px 22px; border-radius: 8px; text-decoration: none; }
.ps-qc-shop:hover { color: #fff; background: #333; }

/* ---------- Place order ---------- */
.ps-qc-foot { padding: 12px 16px 16px; background: #fff; border-top: 1px solid #f0f0f0; flex: none; }
.ps-qc--page .ps-qc-foot { border-top: 0; padding-top: 4px; }
.ps-qc-place { width: 100%; height: 54px; border: 0; border-radius: 12px; background: var(--qc-accent); color: #fff; font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: .02em; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); transition: transform .1s, opacity .15s; }
.ps-qc-place:hover, .ps-qc-place:focus { background: var(--qc-accent); color: #fff; opacity: .9; }
.ps-qc-place:active { transform: scale(.99); }

/* ---------- Loading ---------- */
.ps-qc.is-loading .ps-qc-dyn, .ps-qc.is-loading .ps-qc-place { opacity: .5; pointer-events: none; }
.ps-qc-spinner { width: 34px; height: 34px; margin: 30px auto; border: 3px solid #ddd; border-top-color: #0b0b0b; border-radius: 50%; animation: ps-qc-spin .8s linear infinite; }
@keyframes ps-qc-spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
	.ps-qc-modal { padding: 8px; align-items: flex-end; }
	.ps-qc-panel { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
	.ps-qc-row { grid-template-columns: 60px 1fr 48px; gap: 10px; padding: 12px 10px; }
	.ps-qc-thumb img { width: 56px; height: 56px; }
	.ps-qc--page { margin-top: 16px; border-radius: 12px; }
}

/* ---------- Thank-you page (change --ty-* to recolour) ---------- */
body.woocommerce-order-received { overflow-x: hidden; }
body.woocommerce-order-received .page-header { display: none; }
.ps-ty-hero, .ps-ty-body { --ty-dark: #0b0b0b; --ty-b1: #3b3b3b; --ty-b2: #6f6f6f; --ty-b3: #a5a5a5; --ty-b4: #d6d6d6; --ty-bg: #f6f6f6;
	width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.ps-ty-hero { background: var(--ty-dark); color: #fff; text-align: center; position: relative; }
.ps-ty-hero-inner { max-width: 820px; margin: 0 auto; padding: 46px 20px 26px; }
.ps-ty-hero h1 { font-family: 'Hind Siliguri', sans-serif; font-weight: 700; font-size: 64px; line-height: 1.1; color: #fff; margin: 0 0 14px; letter-spacing: 0; text-transform: none; }
.ps-ty-hero p { font-family: 'Hind Siliguri', sans-serif; font-weight: 500; font-size: 24px; line-height: 1.45; color: #fff; margin: 0; }
.ps-ty-fan { display: block; width: 100%; height: 110px; }
.ps-ty-fan .b1 { fill: var(--ty-b1); } .ps-ty-fan .b2 { fill: var(--ty-b2); } .ps-ty-fan .b3 { fill: var(--ty-b3); } .ps-ty-fan .b4 { fill: var(--ty-b4); }
.ps-ty-hero + .ps-ty-body { margin-top: 0; }
.ps-ty-body { background: var(--ty-bg); padding: 8px 16px 60px; }
.ps-ty-card { max-width: 810px; margin: 0 auto; background: #fff; border: 1px solid #e4e4e4; border-radius: 12px; padding: 30px 48px 36px; font-family: 'Poppins', sans-serif; color: #1a1a1a; box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.ps-ty-card .woocommerce-order p.woocommerce-notice--success, .ps-ty-card p.woocommerce-thankyou-order-received { background: none; border: 0; padding: 0; margin: 0 0 22px 10px; font-size: 20px !important; font-weight: 600; color: #1a1a1a; }
.ps-ty-card .woocommerce-notice--success::before { display: none; }
.ps-ty-card ul.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 14px 0; list-style: none; margin: 0 0 12px; padding: 24px 22px; background: var(--ty-bg, #f6f6f6); border-radius: 4px; }
.ps-ty-card ul.woocommerce-order-overview::before, .ps-ty-card ul.woocommerce-order-overview::after { display: none; }
.ps-ty-card ul.woocommerce-order-overview li { float: none; margin: 0; padding: 0 12px; border-right: 1px dashed #c9c9c9; font-size: 13px; color: #555; text-transform: none; line-height: 1.5; }
.ps-ty-card ul.woocommerce-order-overview li strong { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.ps-ty-card .woocommerce-order > p { font-size: 13px; color: #444; margin: 0 0 22px; }
.ps-ty-card h2 { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600; text-transform: none; letter-spacing: 0; margin: 24px 0 12px; }
.ps-ty-card table.shop_table { width: 100%; border: 1px solid #e6e6e6; border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 14px; }
.ps-ty-card table.shop_table th, .ps-ty-card table.shop_table td { padding: 12px 16px; border: 0; border-top: 1px solid #eee; background: #fff; text-align: left; }
.ps-ty-card table.shop_table thead th { border-top: 0; background: var(--ty-bg, #f6f6f6); font-weight: 600; }
.ps-ty-card table.shop_table tfoot tr:last-child th, .ps-ty-card table.shop_table tfoot tr:last-child td { font-weight: 700; font-size: 15px; }
.ps-ty-card table.shop_table td:last-child, .ps-ty-card table.shop_table th:last-child { text-align: right; }
.ps-ty-card .woocommerce-customer-details address { border: 1px solid #e6e6e6; border-radius: 8px; padding: 14px 16px; font-style: normal; line-height: 1.7; font-size: 14px; }
.ps-ty-card .woocommerce-customer-details .woocommerce-column__title { font-size: 16px; }
@media (max-width: 767px) {
	.ps-ty-hero-inner { padding: 34px 16px 18px; }
	.ps-ty-hero h1 { font-size: 46px; }
	.ps-ty-hero p { font-size: 17px; }
	.ps-ty-fan { height: 60px; }
	.ps-ty-card { padding: 22px 16px 26px; }
	.ps-ty-card p.woocommerce-thankyou-order-received { margin-left: 0; font-size: 18px !important; }
	.ps-ty-card ul.woocommerce-order-overview { padding: 16px 6px; }
	.ps-ty-card ul.woocommerce-order-overview li { width: 50%; border-right: 0; }
	.ps-ty-card table.shop_table th, .ps-ty-card table.shop_table td { padding: 10px 12px; }
}.ps-ty-card .woocommerce-customer-details--phone, .ps-ty-card .woocommerce-customer-details--email { padding-left: 0; }
.ps-ty-card .woocommerce-customer-details--phone::before, .ps-ty-card .woocommerce-customer-details--email::before { display: none; }
