/* Checkout correction: scoped to the WooCommerce Checkout Block only. */
body.woocommerce-checkout .ags-content > .ags-entry {
	width: 100%;
	max-width: 1320px;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-components-sidebar-layout > *,
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	min-width: 0;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout {
	gap: 0;
}

body.woocommerce-checkout .wc-block-components-order-summary {
	padding: 0 !important;
	border: 0 !important;
	background: transparent;
}

body.woocommerce-checkout .wc-block-components-order-summary-item {
	width: 100%;
	border: 0 !important;
	border-bottom: 1px solid var(--ags-border, #ddd2bd) !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item:last-child {
	border-bottom: 0 !important;
}

body.woocommerce-checkout .wc-block-components-product-name {
	overflow-wrap: break-word;
	word-break: normal;
}

/* Contact page. */
.agsse-contact-wrap {
	margin-top: clamp(1.75rem, 4vw, 3rem);
}

.agsse-contact-form {
	padding: clamp(1.25rem, 3vw, 2.25rem);
	border: 1px solid var(--ags-border, #ddd2bd);
	background: rgba(255, 255, 255, 0.45);
}

.agsse-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem 1.5rem;
}

.agsse-field {
	margin: 0 0 1.15rem;
}

.agsse-field label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	line-height: 1.5;
	text-transform: uppercase;
}

.agsse-field input,
.agsse-field select,
.agsse-field textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--ags-border, #cfc2ab);
	border-radius: 0;
	background: #fffdf9;
	color: var(--ags-ink, #15110e);
	font: inherit;
}

.agsse-field textarea {
	min-height: 180px;
	resize: vertical;
}

.agsse-field input:focus-visible,
.agsse-field select:focus-visible,
.agsse-field textarea:focus-visible,
.agsse-submit:focus-visible,
.agsse-policy-footer a:focus-visible {
	outline: 3px solid var(--ags-gold, #dda928);
	outline-offset: 3px;
}

.agsse-submit {
	min-height: 48px;
	margin-top: 0.4rem;
	cursor: pointer;
}

.agsse-form-privacy,
.agsse-contact-fallback,
.agsse-updated {
	color: var(--ags-muted, #665f55);
	font-size: 0.92rem;
	line-height: 1.65;
}

.agsse-form-status {
	margin-bottom: 1.25rem;
	padding: 1rem 1.15rem;
	border-left: 4px solid var(--ags-gold, #dda928);
	background: #fff9e9;
}

.agsse-form-status--error,
.agsse-form-status--please_wait {
	border-left-color: #9f3428;
	background: #fff2ef;
}

.agsse-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.agsse-legal-page h2 {
	margin-top: 2.25rem;
}

.agsse-legal-page li + li {
	margin-top: 0.65rem;
}

.agsse-kicker {
	color: var(--ags-gold-dark, #a87914);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* The theme footer is hardcoded, so this no-JS policy strip follows it. */
.agsse-policy-footer {
	padding: 1rem var(--ags-gutter, 5vw) 1.25rem;
	border-top: 1px solid rgba(221, 169, 40, 0.28);
	background: #100d0b;
	color: #f2eadb;
}

.agsse-policy-footer ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.7rem 1.5rem;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.agsse-policy-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-decoration-color: rgba(221, 169, 40, 0.7);
	text-underline-offset: 0.3em;
	text-transform: uppercase;
}

.ags-site-footer .agsse-design-credit {
	white-space: nowrap;
}

.ags-site-footer .agsse-design-credit__link {
	color: var(--ags-gold, #dda928);
	font-weight: 600;
	text-decoration-color: currentColor;
	text-underline-offset: 0.2em;
}

.ags-site-footer .agsse-design-credit__link:hover {
	color: var(--ags-gold, #dda928);
	text-decoration-thickness: 2px;
}

.ags-site-footer .agsse-design-credit__link:focus-visible {
	color: var(--ags-gold, #dda928);
	outline: 3px solid var(--ags-gold, #dda928);
	outline-offset: 3px;
}

@media (max-width: 700px) {
	.agsse-field-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.agsse-contact-form {
		padding: 1.15rem;
	}

	.agsse-policy-footer ul {
		align-items: center;
		flex-direction: column;
		gap: 0.1rem;
	}
}
