/**
 * PROPR Awards — application form and judge zone.
 * Styled to match the The7 dark/gold system of worldbestofthebest.com.
 */

.pgs {
	--pgs-bg: #000000;
	--pgs-panel: #0a0a0a;
	--pgs-panel-2: #121212;
	--pgs-line: #2b2b2b;
	--pgs-line-soft: #1e1e1e;
	--pgs-gold: #debd70;
	--pgs-gold-dim: #b89d5d;
	--pgs-text: #f2efe9;
	--pgs-muted: #a9a29a;
	--pgs-radius: 2px;

	max-width: 1180px;
	margin: 0 auto;
	padding: 48px 24px 72px;
	color: var(--pgs-text);
	font-size: 16px;
	line-height: 1.65;
}

.pgs *,
.pgs *::before,
.pgs *::after {
	box-sizing: border-box;
}

/* ---------- headings ---------- */

.pgs-title,
.pgs-subtitle {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	color: var(--pgs-gold);
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 18px;
}

.pgs-title {
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.2;
}

.pgs-subtitle {
	font-size: 20px;
}

.pgs-lead {
	color: var(--pgs-muted);
	max-width: 760px;
	margin: 0 0 34px;
}

.pgs-hint,
.pgs-note {
	color: var(--pgs-muted);
	font-size: 13px;
	line-height: 1.5;
	margin: 6px 0 0;
}

/* ---------- alerts ---------- */

.pgs-alert {
	border: 1px solid #6b2b2b;
	background: rgba(120, 35, 35, 0.14);
	color: #f0c9c9;
	padding: 14px 16px;
	margin: 0 0 26px;
	border-radius: var(--pgs-radius);
}

.pgs-alert ul {
	margin: 8px 0 0 18px;
	padding: 0;
}

.pgs-alert--ok {
	border-color: #4a6b2b;
	background: rgba(70, 110, 40, 0.16);
	color: #d7ecc4;
}

/* ---------- form layout ---------- */

.pgs-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 28px;
}

.pgs-form--narrow {
	grid-template-columns: 1fr;
	max-width: 420px;
}

.pgs-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pgs-field--inline {
	flex: 1 1 220px;
}

.pgs-group {
	grid-column: 1 / -1;
	border: 1px solid var(--pgs-line-soft);
	border-radius: var(--pgs-radius);
	padding: 24px 22px 8px;
	margin: 8px 0 0;
	background: var(--pgs-panel);
}

.pgs-group > legend {
	float: left;
	width: 100%;
	padding: 0 0 14px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--pgs-line);
	font-family: "Playfair Display", Georgia, serif;
	font-size: 17px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pgs-gold);
}

.pgs-group > legend + * {
	clear: both;
}

.pgs-group .pgs-field,
.pgs-group .pgs-group {
	margin-bottom: 18px;
}

.pgs-field-group {
	border-top: 1px solid var(--pgs-line-soft);
	padding: 16px 0 4px;
}

.pgs-field-group h4 {
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pgs-gold-dim);
	font-weight: 500;
}

.pgs-field-view {
	margin-bottom: 14px;
}

.pgs-field-view strong {
	display: block;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pgs-gold-dim);
	font-weight: 500;
	margin-bottom: 4px;
}

.pgs-field-view p {
	margin: 0;
	white-space: pre-wrap;
}

.pgs-field-view a {
	color: var(--pgs-gold);
}

/* ---------- labels & inputs ---------- */

.pgs label,
.pgs-field > label {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pgs-muted);
	margin-bottom: 8px;
	display: block;
}

.pgs-req {
	color: var(--pgs-gold);
}

.pgs input[type="text"],
.pgs input[type="url"],
.pgs input[type="email"],
.pgs input[type="password"],
.pgs input[type="number"],
.pgs input[type="tel"],
.pgs select,
.pgs textarea {
	width: 100%;
	background: var(--pgs-panel-2);
	border: 1px solid var(--pgs-line);
	border-radius: var(--pgs-radius);
	color: var(--pgs-text);
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.5;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	appearance: none;
}

.pgs textarea {
	min-height: 110px;
	resize: vertical;
}

.pgs input[type="file"] {
	width: 100%;
	padding: 10px 12px;
	background: var(--pgs-panel-2);
	border: 1px dashed var(--pgs-line);
	border-radius: var(--pgs-radius);
	color: var(--pgs-muted);
	font-size: 13px;
}

.pgs input:focus,
.pgs select:focus,
.pgs textarea:focus {
	outline: none;
	border-color: var(--pgs-gold-dim);
	box-shadow: 0 0 0 1px rgba(222, 189, 112, 0.35);
}

.pgs select {
	background-image: linear-gradient(45deg, transparent 50%, var(--pgs-gold) 50%),
		linear-gradient(135deg, var(--pgs-gold) 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 38px;
}

.pgs select option {
	background: #111;
	color: var(--pgs-text);
}

.pgs .has-error input,
.pgs .has-error textarea,
.pgs .has-error select {
	border-color: #a44444;
}

/* radio + checkbox */

.pgs-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.pgs-radio-item,
.pgs-check {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	text-transform: none;
	letter-spacing: normal;
	font-size: 15px;
	color: var(--pgs-text);
	cursor: pointer;
	margin: 0;
}

.pgs-radio-item input,
.pgs-check input {
	appearance: none;
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin: 3px 0 0;
	border: 1px solid var(--pgs-gold-dim);
	border-radius: 50%;
	background: transparent;
	position: relative;
	cursor: pointer;
}

.pgs-check input {
	border-radius: 2px;
}

.pgs-radio-item input:checked,
.pgs-check input:checked {
	background: var(--pgs-gold);
	box-shadow: inset 0 0 0 4px #0a0a0a;
}

/* ---------- repeaters ---------- */

.pgs-repeater-rows {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 14px;
}

.pgs-repeater-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--pgs-line-soft);
	background: var(--pgs-panel-2);
	position: relative;
}

.pgs-row-num {
	color: var(--pgs-gold);
	font-size: 13px;
	padding-bottom: 12px;
	min-width: 22px;
}

.pgs-remove-row {
	background: transparent;
	border: 0;
	color: var(--pgs-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px 12px;
}

.pgs-remove-row:hover {
	color: #d98b8b;
}

.pgs-repeater-view {
	margin: 0 0 12px 18px;
	padding: 0;
}

.pgs-repeater-view li {
	margin-bottom: 12px;
}

/* ---------- buttons ---------- */

.pgs-btn {
	display: inline-block;
	border: 1px solid var(--pgs-gold);
	background: transparent;
	color: var(--pgs-gold);
	padding: 13px 30px;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--pgs-radius);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	line-height: 1.2;
}

.pgs-btn:hover,
.pgs-btn:focus {
	background: var(--pgs-gold);
	color: #000;
	text-decoration: none;
}

.pgs-btn--primary {
	background: var(--pgs-gold);
	color: #000;
	border-color: var(--pgs-gold);
}

.pgs-btn--primary:hover {
	background: #eacd8a;
	border-color: #eacd8a;
	color: #000;
}

.pgs-btn--ghost {
	padding: 10px 20px;
	font-size: 11px;
	border-color: var(--pgs-line);
	color: var(--pgs-muted);
}

.pgs-btn--ghost:hover {
	background: transparent;
	border-color: var(--pgs-gold-dim);
	color: var(--pgs-gold);
}

.pgs-actions {
	margin-top: 10px;
	display: flex;
	gap: 14px;
	align-items: center;
}

.pgs-form > .pgs-actions {
	grid-column: 1 / -1;
}

/* ---------- judge zone ---------- */

.pgs-judge-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 26px;
}

.pgs-logout {
	color: var(--pgs-muted);
	text-decoration: none;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--pgs-line);
}

.pgs-logout:hover {
	color: var(--pgs-gold);
	border-color: var(--pgs-gold-dim);
}

.pgs-cat-list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pgs-cat-list li {
	border: 1px solid var(--pgs-line);
	padding: 8px 14px;
	font-size: 13px;
	color: var(--pgs-text);
	background: var(--pgs-panel);
}

/* table */

.pgs-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--pgs-line-soft);
}

.pgs-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 640px;
}

.pgs-table th {
	text-align: left;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pgs-gold-dim);
	font-weight: 500;
	padding: 14px 16px;
	border-bottom: 1px solid var(--pgs-line);
	background: var(--pgs-panel);
}

.pgs-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--pgs-line-soft);
	vertical-align: top;
	font-size: 15px;
}

.pgs-table tbody tr:hover td {
	background: rgba(222, 189, 112, 0.04);
}

.pgs-table a {
	color: var(--pgs-gold);
	text-decoration: none;
}

.pgs-table a:hover {
	text-decoration: underline;
}

.pgs-badge {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 10px;
	border: 1px solid var(--pgs-line);
	color: var(--pgs-muted);
	border-radius: var(--pgs-radius);
}

.pgs-badge--done {
	border-color: var(--pgs-gold-dim);
	color: var(--pgs-gold);
}

/* grading layout */

.pgs-grade-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
	gap: 40px;
	align-items: start;
}

.pgs-submission {
	border: 1px solid var(--pgs-line-soft);
	background: var(--pgs-panel);
	padding: 26px;
	max-height: 78vh;
	overflow-y: auto;
}

.pgs-evaluate {
	border: 1px solid var(--pgs-line);
	background: var(--pgs-panel-2);
	padding: 24px;
	position: sticky;
	top: 100px;
}

.pgs-field--grade {
	display: grid;
	grid-template-columns: 1fr 78px;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
}

.pgs-field--grade label {
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
	font-size: 13px;
	line-height: 1.4;
	color: var(--pgs-text);
}

.pgs-field--grade select {
	padding: 8px 10px;
}

.pgs-evaluate .pgs-note {
	margin: 16px 0;
	padding-top: 16px;
	border-top: 1px solid var(--pgs-line-soft);
}

/* success */

.pgs-success {
	text-align: center;
}

.pgs-success .pgs-btn {
	margin-top: 10px;
}

/* ---------- "Apply" buttons on the homepage ---------- */

.pgs-apply-btn {
	display: inline-block;
	margin: 18px 0 0;
	padding: 12px 34px;
	border: 1px solid var(--pgs-gold, #debd70);
	color: var(--pgs-gold, #debd70) !important;
	background: transparent;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none !important;
	border-radius: 2px;
	transition: background 0.2s ease, color 0.2s ease;
	position: relative;
	z-index: 2;
}

.pgs-apply-btn:hover,
.pgs-apply-btn:focus {
	background: #debd70;
	color: #000 !important;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.pgs-grade-grid {
		grid-template-columns: 1fr;
	}

	.pgs-evaluate {
		position: static;
	}

	.pgs-submission {
		max-height: none;
	}
}

@media (max-width: 767px) {
	.pgs {
		padding: 32px 16px 56px;
		font-size: 15px;
	}

	.pgs-form {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.pgs-group {
		padding: 18px 14px 4px;
	}

	.pgs-table {
		min-width: 0;
	}

	.pgs-table thead {
		display: none;
	}

	.pgs-table tr {
		display: block;
		border-bottom: 1px solid var(--pgs-line);
		padding: 10px 0;
	}

	.pgs-table td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		padding: 6px 14px;
		border: 0;
		font-size: 14px;
	}

	.pgs-table td::before {
		content: attr(data-label);
		color: var(--pgs-gold-dim);
		font-size: 11px;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		flex: 0 0 42%;
	}

	.pgs-submission {
		padding: 18px 14px;
	}

	.pgs-evaluate {
		padding: 18px 14px;
	}

	.pgs-field--grade {
		grid-template-columns: 1fr 70px;
	}
}

/* ---------- dark page canvas for the two shortcode pages ---------- */

body.pgs-dark,
body.pgs-dark #main,
body.pgs-dark .content,
body.pgs-dark .wf-wrap,
body.pgs-dark .wf-container,
body.pgs-dark .elementor-section,
body.pgs-dark .elementor-column,
body.pgs-dark .elementor-widget-wrap,
body.pgs-dark .elementor-widget-theme-post-content,
body.pgs-dark .elementor-widget-container {
	background-color: #000 !important;
	background-image: none !important;
}

body.pgs-dark .pgs {
	background: transparent;
}

body.pgs-own .elementor-widget-theme-post-content .elementor-widget-container {
	padding: 0;
}

/* country / state selects inside the blocks checkout */
body.pgs-dark .wc-block-components-country-input select,
body.pgs-dark .wc-block-components-state-input select,
body.pgs-dark select.components-select-control__input,
body.pgs-dark .components-select-control__input {
	background-color: #121212 !important;
	border: 1px solid #2b2b2b !important;
	color: #f2efe9 !important;
	border-radius: 2px !important;
	-webkit-appearance: none;
	appearance: none;
	padding: 10px 34px 10px 12px !important;
}

body.pgs-dark .wc-block-components-country-input,
body.pgs-dark .wc-block-components-state-input,
body.pgs-dark .components-select-control {
	background: transparent !important;
}

body.pgs-dark .wc-block-components-country-input select option,
body.pgs-dark select.components-select-control__input option {
	background: #121212;
	color: #f2efe9;
}

/* =========================================================================
   WooCommerce cart / checkout / account — same black & gold system
   ========================================================================= */

body.pgs-dark .woocommerce,
body.pgs-dark .wc-block-components-main,
body.pgs-dark .wp-block-woocommerce-cart,
body.pgs-dark .wp-block-woocommerce-checkout,
body.pgs-dark .wc-block-cart,
body.pgs-dark .wc-block-checkout,
body.pgs-dark .wc-block-components-sidebar,
body.pgs-dark .wc-block-components-order-summary,
body.pgs-dark .wc-block-components-panel,
body.pgs-dark .wc-block-components-totals-item,
body.pgs-dark .wc-block-components-product-details,
body.pgs-dark .wc-block-components-order-summary-item,
body.pgs-dark .wc-block-components-address-form,
body.pgs-dark .wc-block-components-form {
	background-color: #000 !important;
	color: #f2efe9;
}

/* headings + labels */
body.pgs-dark .wc-block-components-title,
body.pgs-dark .wp-block-woocommerce-cart h2,
body.pgs-dark .wp-block-woocommerce-checkout h2,
body.pgs-dark .woocommerce h2,
body.pgs-dark .woocommerce h3 {
	color: #debd70 !important;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.pgs-dark .wc-block-components-checkout-step__title,
body.pgs-dark .wc-block-components-checkout-step__description,
body.pgs-dark .wc-block-components-text-input label,
body.pgs-dark .wc-block-components-address-form label,
body.pgs-dark .wc-block-components-radio-control__label,
body.pgs-dark .wc-block-components-checkbox__label,
body.pgs-dark .woocommerce label {
	color: #a9a29a !important;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* inputs */
body.pgs-dark .wc-block-components-text-input input,
body.pgs-dark .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.pgs-dark .wc-block-components-textarea,
body.pgs-dark .woocommerce input.input-text,
body.pgs-dark .woocommerce textarea,
body.pgs-dark .woocommerce select,
body.pgs-dark .select2-container .select2-selection {
	background-color: #121212 !important;
	border: 1px solid #2b2b2b !important;
	color: #f2efe9 !important;
	border-radius: 2px !important;
}

body.pgs-dark .wc-block-components-text-input input:focus,
body.pgs-dark .wc-block-components-textarea:focus {
	border-color: #b89d5d !important;
	box-shadow: 0 0 0 1px rgba(222, 189, 112, 0.35) !important;
}

body.pgs-dark .wc-block-components-text-input.is-active label,
body.pgs-dark .wc-block-components-text-input label {
	background: transparent !important;
	color: #a9a29a !important;
}

/* tables */
body.pgs-dark .wc-block-components-product-name,
body.pgs-dark .woocommerce table.shop_table td.product-name a {
	color: #f2efe9 !important;
}

body.pgs-dark .woocommerce table.shop_table,
body.pgs-dark .woocommerce table.shop_table th,
body.pgs-dark .woocommerce table.shop_table td {
	background: transparent !important;
	border-color: #1e1e1e !important;
	color: #f2efe9 !important;
}

body.pgs-dark .woocommerce table.shop_table th {
	color: #b89d5d !important;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* buttons */
body.pgs-dark .wc-block-components-button:not(.is-link),
body.pgs-dark .wc-block-components-express-payment .wc-block-components-button,
body.pgs-dark .woocommerce #place_order,
body.pgs-dark .woocommerce button.button,
body.pgs-dark .woocommerce input.button,
body.pgs-dark .woocommerce a.button,
body.pgs-dark .woocommerce .checkout-button,
body.pgs-dark .wp-block-woocommerce-cart .wc-block-cart__submit-button {
	background-color: #debd70 !important;
	border: 1px solid #debd70 !important;
	color: #000 !important;
	border-radius: 2px !important;
	font-size: 12px !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	padding: 14px 28px !important;
	font-weight: 500 !important;
}

body.pgs-dark .wc-block-components-button:not(.is-link):hover,
body.pgs-dark .woocommerce #place_order:hover,
body.pgs-dark .woocommerce button.button:hover {
	background-color: #eacd8a !important;
	border-color: #eacd8a !important;
	color: #000 !important;
}

body.pgs-dark .wc-block-components-button.is-link,
body.pgs-dark .wc-block-components-button.wc-block-components-button--text {
	color: #debd70 !important;
	text-decoration: underline;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
}

/* prices in gold */
body.pgs-dark .wc-block-components-product-price,
body.pgs-dark .wc-block-components-totals-item__value,
body.pgs-dark .wc-block-components-order-summary-item__total-price,
body.pgs-dark .woocommerce-Price-amount,
body.pgs-dark .woocommerce .amount {
	color: #debd70 !important;
}

/* panels / separators */
body.pgs-dark .wc-block-components-order-summary,
body.pgs-dark .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.pgs-dark .wc-block-components-totals-wrapper,
body.pgs-dark .wc-block-components-radio-control-accordion-option {
	border-color: #1e1e1e !important;
}

body.pgs-dark .wc-block-components-order-summary-item:not(:last-child),
body.pgs-dark .wc-block-components-checkout-step:not(:last-child) {
	border-bottom: 1px solid #1e1e1e !important;
}

/* notices */
body.pgs-dark .wc-block-components-notice-banner,
body.pgs-dark .woocommerce-info,
body.pgs-dark .woocommerce-message,
body.pgs-dark .woocommerce-error {
	background: #0a0a0a !important;
	border: 1px solid #2b2b2b !important;
	color: #f2efe9 !important;
	border-radius: 2px !important;
}

body.pgs-dark .wc-block-components-notice-banner svg {
	fill: #debd70 !important;
}

/* radio / checkbox controls */
body.pgs-dark .wc-block-components-radio-control__input,
body.pgs-dark .wc-block-components-checkbox__input {
	border-color: #b89d5d !important;
	background-color: transparent !important;
}

body.pgs-dark .wc-block-components-radio-control__input:checked,
body.pgs-dark .wc-block-components-checkbox__input:checked {
	background-color: #debd70 !important;
}

/* links */
body.pgs-dark .woocommerce a,
body.pgs-dark .wc-block-components-button.is-link {
	color: #debd70 !important;
}

/* hide cart/account icons that assume a light background */
body.pgs-dark .wc-block-cart__empty-cart__title,
body.pgs-dark .wc-block-cart__empty-cart__title .wc-block-components-title {
	color: #debd70 !important;
}

body.pgs-dark .wc-block-components-quantity-selector input,
body.pgs-dark .wc-block-components-quantity-selector__button {
	background: #121212 !important;
	color: #f2efe9 !important;
	border-color: #2b2b2b !important;
}

/* =========================================================================
   Classic cart & checkout — contained layout, black & gold
   ========================================================================= */

body.pgs-dark .woocommerce,
body.pgs-dark .woocommerce-cart-form,
body.pgs-dark .woocommerce-checkout {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

body.pgs-dark .woocommerce form.checkout {
	display: block;
}

body.pgs-dark .woocommerce .col2-set,
body.pgs-dark .woocommerce-checkout #customer_details {
	width: 100%;
	float: none;
	margin-bottom: 34px;
}

@media (min-width: 992px) {
	body.pgs-dark .woocommerce-checkout form.checkout {
		display: grid !important;
		grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr) !important;
		gap: 46px;
		align-items: start;
	}

	body.pgs-dark .woocommerce-checkout form.checkout > #customer_details {
		grid-column: 1 !important;
		grid-row: 1 / span 2 !important;
	}

	body.pgs-dark .woocommerce-checkout #customer_details {
		margin-bottom: 0;
	}

	body.pgs-dark .woocommerce-checkout #order_review_heading,
	body.pgs-dark .woocommerce-checkout #order_review {
		grid-column: 2;
	}

	body.pgs-dark .woocommerce-checkout #order_review_heading {
		grid-row: 1;
		margin-top: 0;
	}

	body.pgs-dark .woocommerce-checkout #order_review {
		grid-row: 2;
		position: sticky;
		top: 90px;
	}
}

/* fields */
body.pgs-dark .woocommerce .form-row {
	padding: 0;
	margin: 0 0 18px;
}

body.pgs-dark .woocommerce .form-row label {
	color: #a9a29a;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 8px;
	display: block;
}

body.pgs-dark .woocommerce .form-row input.input-text,
body.pgs-dark .woocommerce .form-row textarea,
body.pgs-dark .woocommerce .form-row select,
body.pgs-dark .woocommerce .select2-container .select2-selection--single {
	background: #121212 !important;
	border: 1px solid #2b2b2b !important;
	color: #f2efe9 !important;
	border-radius: 2px !important;
	height: auto !important;
	padding: 12px 14px !important;
	font-size: 15px !important;
}

body.pgs-dark .woocommerce .form-row input.input-text:focus,
body.pgs-dark .woocommerce .form-row textarea:focus,
body.pgs-dark .woocommerce .form-row select:focus {
	border-color: #b89d5d !important;
	box-shadow: 0 0 0 1px rgba(222, 189, 112, 0.35) !important;
	outline: none;
}

body.pgs-dark .select2-dropdown,
body.pgs-dark .select2-container--default .select2-selection--single .select2-selection__rendered {
	background: #121212 !important;
	color: #f2efe9 !important;
	border-color: #2b2b2b !important;
}

/* order review table */
body.pgs-dark .woocommerce-checkout-review-order-table,
body.pgs-dark .woocommerce table.shop_table {
	width: 100%;
	border: 1px solid #1e1e1e !important;
	border-collapse: collapse;
	background: #0a0a0a;
}

body.pgs-dark .woocommerce-checkout-review-order-table th,
body.pgs-dark .woocommerce-checkout-review-order-table td,
body.pgs-dark .woocommerce table.shop_table th,
body.pgs-dark .woocommerce table.shop_table td {
	border-color: #1e1e1e !important;
	color: #f2efe9;
	padding: 14px 16px;
}

body.pgs-dark .woocommerce-checkout-review-order-table thead th {
	color: #b89d5d !important;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.pgs-dark .woocommerce-checkout-review-order-table tfoot th,
body.pgs-dark .woocommerce-checkout-review-order-table tfoot td {
	color: #debd70;
}

/* payment box */
body.pgs-dark #payment,
body.pgs-dark .woocommerce-checkout #payment {
	background: #0a0a0a !important;
	border: 1px solid #1e1e1e;
	border-radius: 2px;
	padding: 4px 18px 18px;
	margin-top: 22px;
}

body.pgs-dark #payment ul.payment_methods {
	border-bottom: 1px solid #1e1e1e !important;
	padding: 14px 0 !important;
}

body.pgs-dark #payment ul.payment_methods li label {
	color: #f2efe9;
	text-transform: none;
	letter-spacing: normal;
	font-size: 14px;
}

body.pgs-dark #payment div.payment_box {
	background: #121212 !important;
	color: #a9a29a !important;
}

body.pgs-dark #payment div.payment_box::before {
	border-bottom-color: #121212 !important;
}

body.pgs-dark #place_order {
	width: 100%;
	margin-top: 16px;
}

/* VAT result + private checkbox */
body.pgs-dark .pgs-vat-result {
	margin: 8px 0 0;
	padding: 10px 12px;
	border-radius: 2px;
	font-size: 13px;
	line-height: 1.45;
}

body.pgs-dark .pgs-vat-result.is-ok {
	border: 1px solid #4a6b2b;
	background: rgba(70, 110, 40, 0.16);
	color: #d7ecc4;
}

body.pgs-dark .pgs-vat-result.is-error {
	border: 1px solid #6b2b2b;
	background: rgba(120, 35, 35, 0.14);
	color: #f0c9c9;
}

body.pgs-dark .woocommerce #pgs_private_field label,
body.pgs-dark .woocommerce .form-row.create-account label {
	font-size: 13px;
	letter-spacing: normal;
	text-transform: none;
	color: #f2efe9;
}

/* order received / thankyou */
body.pgs-dark .woocommerce-order ul.woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0 0 34px;
	padding: 0;
}

body.pgs-dark .woocommerce-order ul.woocommerce-order-overview li {
	flex: 1 1 200px;
	border: 1px solid #1e1e1e;
	border-top: 3px solid #debd70;
	background: #0a0a0a;
	padding: 14px 16px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #a9a29a;
}

body.pgs-dark .woocommerce-order ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 6px;
	color: #f2efe9;
	font-size: 16px;
	letter-spacing: normal;
	text-transform: none;
}

body.pgs-dark .woocommerce .woocommerce-order-details,
body.pgs-dark .woocommerce .woocommerce-customer-details,
body.pgs-dark .woocommerce .woocommerce-order-downloads {
	max-width: 100%;
	margin-bottom: 34px;
}

body.pgs-dark .woocommerce .woocommerce-customer-details address {
	border: 1px solid #1e1e1e;
	background: #0a0a0a;
	color: #f2efe9;
	padding: 18px;
}

@media (max-width: 767px) {
	body.pgs-dark .woocommerce,
	body.pgs-dark .woocommerce-cart-form,
	body.pgs-dark .woocommerce-checkout {
		padding: 0 16px;
	}

	body.pgs-dark .woocommerce table.shop_table_responsive tr td::before {
		color: #b89d5d;
	}
}

/* unqualified fallbacks (win over theme/WooCommerce specificity) */
@media (min-width: 992px) {
	form.checkout.woocommerce-checkout {
		display: grid !important;
		grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.9fr) !important;
		gap: 46px !important;
		align-items: start !important;
	}
	form.checkout.woocommerce-checkout > #customer_details {
		grid-column: 1 !important;
		grid-row: 1 / span 2 !important;
		float: none !important;
		width: 100% !important;
	}
	form.checkout.woocommerce-checkout > #order_review_heading,
	form.checkout.woocommerce-checkout > #order_review {
		grid-column: 2 !important;
		float: none !important;
		width: 100% !important;
	}
	form.checkout.woocommerce-checkout > #order_review_heading { grid-row: 1 !important; margin-top: 0 !important; }
	form.checkout.woocommerce-checkout > #order_review { grid-row: 2 !important; }
	form.checkout.woocommerce-checkout > .woocommerce-NoticeGroup,
	form.checkout.woocommerce-checkout > .woocommerce-form-coupon-toggle { grid-column: 1 / -1 !important; }
}

/* order summary wrapper (WooCommerce wraps the review table) */
@media (min-width: 992px) {
	form.checkout.woocommerce-checkout > .woocommerce-checkout-review-order,
	form.checkout.woocommerce-checkout #order_review,
	form.checkout.woocommerce-checkout #order_review_heading {
		grid-column: 2 !important;
		width: 100% !important;
		min-width: 300px !important;
		float: none !important;
	}
	form.checkout.woocommerce-checkout .woocommerce-checkout-review-order-table {
		width: 100% !important;
	}
	form.checkout.woocommerce-checkout > .woocommerce-checkout-review-order {
		grid-row: 2 !important;
		position: sticky;
		top: 90px;
	}
}

/* ---------- wizard steps ---------- */
.pgs-wizard { max-width: 900px; margin: 0 auto; }
.pgs-progress { height: 3px; background: #1e1e1e; margin-bottom: 18px; overflow: hidden; }
.pgs-progress-fill { height: 100%; background: #debd70; transition: width .35s ease; }
.pgs-step-nav { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; }
.pgs-step-dot { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2b2b2b; background: #0a0a0a; color: #a9a29a; font-size: 13px; cursor: pointer; transition: all .2s ease; }
.pgs-step-dot.is-active { border-color: #debd70; color: #debd70; }
.pgs-step-dot.is-done { background: #debd70; border-color: #debd70; color: #000; }
.pgs-form--steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
.pgs-step { display: none; grid-column: 1 / -1; }
.pgs-step.is-active { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 28px; }
.pgs-step-title { grid-column: 1 / -1; font-family: "Playfair Display", Georgia, serif; color: #debd70; text-transform: uppercase; letter-spacing: .07em; font-size: 18px; font-weight: 400; margin: 0 0 4px; border-bottom: 1px solid #1e1e1e; padding-bottom: 12px; }
.pgs-step-actions { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.pgs-autosave-note { grid-column: 1 / -1; color: #7d776e; font-size: 12px; margin: 6px 0 0; }
.pgs-restore { max-width: 900px; margin: 0 auto 26px; padding: 14px 18px; border: 1px solid #2b2b2b; background: #0a0a0a; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: #a9a29a; font-size: 14px; }
.pgs-restore[hidden] { display: none; }
.pgs-restore .pgs-btn { padding: 8px 16px; font-size: 11px; }
@media (max-width: 767px) {
	.pgs-step.is-active { grid-template-columns: 1fr; }
	.pgs-step-dot { width: 28px; height: 28px; font-size: 11px; }
}

/* wizard (client-side) */
.pgs-wizard-head { max-width: 1180px; margin: 0 auto 26px; }
.pgs-step { display: none; grid-column: 1 / -1; }
.pgs-step.is-active { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 28px; }
.pgs-step-title { grid-column: 1 / -1; font-family: "Playfair Display", Georgia, serif; color: #debd70; text-transform: uppercase; letter-spacing: .07em; font-size: 18px; font-weight: 400; margin: 0 0 6px; border-bottom: 1px solid #1e1e1e; padding-bottom: 12px; }
.pgs-step-actions { grid-column: 1 / -1; display: flex; gap: 14px; margin-top: 12px; }
.pgs-step-actions[hidden] { display: none; }
.pgs-actions[hidden] { display: none !important; }
.pgs-restore { max-width: 1180px; margin: 0 auto 22px; padding: 14px 18px; border: 1px solid #2b2b2b; background: #0a0a0a; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: #a9a29a; font-size: 14px; }
.pgs-restore .pgs-btn { padding: 8px 16px; font-size: 11px; }
@media (max-width: 767px) { .pgs-step.is-active { grid-template-columns: 1fr; } }
