/* OPENGRADIENT company, policy and order-tracking pages (og-layout-*) + footer credit. */

.og-doc {
	--og-ink: #242424;
	--og-text: #464646;
	--og-muted: #666666;
	--og-line: rgba(0, 0, 0, 0.1);
	--og-panel: #FAF8F5;
	--og-soft: #F5F1EC;
	--og-dark: #111211;
	--og-accent: #F8BD18;
	--og-radius: 14px;
	--og-sticky: 160px;
	max-width: 1200px;
	margin: 12px auto 80px;
	color: var(--og-text);
	font-size: 16px;
	line-height: 1.7;
}

.og-doc a {
	color: var(--og-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.og-doc a:hover {
	color: var(--og-dark);
	text-decoration-thickness: 2px;
}

.og-doc :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible,
.footer-container a:focus-visible {
	outline: 2px solid var(--og-dark, #111211);
	outline-offset: 3px;
	border-radius: 4px;
}

.og-doc :is(h1, h2, h3) {
	color: var(--og-ink);
	letter-spacing: -0.01em;
}

.og-doc [id] {
	scroll-margin-top: var(--og-sticky);
}

/* Page header */
.og-doc__header {
	max-width: 780px;
	margin: 0 0 32px;
}

.og-doc__header--center {
	margin-inline: auto;
	text-align: center;
}

.og-eyebrow {
	margin: 0 0 10px;
	color: var(--og-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.og-doc__title {
	margin: 0 0 14px;
	font-size: clamp(30px, 3.6vw, 44px);
	font-weight: 600;
	line-height: 1.15;
}

.og-doc__meta {
	margin: 0;
	color: var(--og-muted);
	font-size: 14px;
	line-height: 1.6;
}

.og-lead {
	margin: 0 auto;
	max-width: 640px;
	color: var(--og-text);
	font-size: 18px;
	line-height: 1.65;
}

/* Cards and buttons */
.og-card {
	padding: 32px;
	border: 1px solid var(--og-line);
	border-radius: var(--og-radius);
	background-color: #FFF;
}

.og-card__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 600;
}

.og-card__sub {
	margin: 0 0 22px;
	color: var(--og-muted);
	font-size: 15px;
}

.og-doc .og-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 28px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

.og-doc .og-btn--dark {
	background-color: var(--og-dark);
	color: #FFF;
}

.og-doc .og-btn--dark:hover {
	background-color: #2B2C2B;
	color: #FFF;
}

/* Policies */
.og-entity {
	max-width: 780px;
	margin: 0 0 24px;
	padding: 18px 22px;
	border: 1px solid var(--og-line);
	border-radius: 10px;
	background-color: var(--og-panel);
	color: var(--og-ink);
	font-size: 15px;
	line-height: 1.6;
}

.og-entity p {
	margin: 0 0 4px;
}

.og-entity p:last-child {
	margin-bottom: 0;
}

.og-doc__intro {
	max-width: 780px;
	margin-bottom: 36px;
}

.og-doc__intro p {
	margin: 0 0 12px;
}

.og-doc--policy .og-doc__layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 780px);
	gap: 56px;
	align-items: start;
}

.og-toc {
	position: sticky;
	top: var(--og-sticky);
	max-height: calc(100vh - var(--og-sticky) - 24px);
	overflow-y: auto;
	padding: 18px 0;
	border-top: 2px solid var(--og-ink);
}

.admin-bar .og-toc {
	top: calc(var(--og-sticky) + 32px);
}

.og-toc__title {
	margin-bottom: 8px;
	color: var(--og-ink);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

.og-toc__title::-webkit-details-marker {
	display: none;
}

.og-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.og-toc__list a {
	display: block;
	padding: 7px 0 7px 12px;
	border-left: 2px solid var(--og-line);
	color: var(--og-text);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
}

.og-toc__list a:hover {
	border-left-color: var(--og-accent);
	color: var(--og-ink);
}

.og-clause {
	padding: 30px 0;
	border-top: 1px solid var(--og-line);
}

.og-clause:first-child {
	padding-top: 0;
	border-top: 0;
}

.og-clause h2 {
	margin: 0 0 14px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.og-clause p {
	margin: 0 0 12px;
}

.og-doc .og-list {
	margin: 0 0 14px;
	padding-left: 1.4em;
}

.og-doc .og-list li {
	margin: 0 0 8px;
	padding-left: 4px;
}

.og-note {
	color: var(--og-muted);
	font-size: 15px;
	font-style: italic;
}

.og-callout {
	padding: 14px 18px;
	border: 1px solid #E5E5E5;
	border-left: 4px solid var(--og-accent);
	border-radius: 8px;
	background-color: var(--og-panel);
	color: var(--og-ink);
	font-weight: 500;
}

.og-sublabel {
	margin-top: 18px !important;
	color: var(--og-ink);
	font-weight: 600;
}

.og-table-wrap {
	overflow-x: auto;
	margin: 6px 0 16px;
	border: 1px solid var(--og-line);
	border-radius: 10px;
	-webkit-overflow-scrolling: touch;
}

.og-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
}

.og-table :is(th, td) {
	padding: 12px 14px;
	border-bottom: 1px solid var(--og-line);
	text-align: start;
	vertical-align: top;
}

.og-table th {
	background-color: var(--og-panel);
	color: var(--og-ink);
	font-weight: 600;
	white-space: nowrap;
}

.og-table tbody tr:last-child td {
	border-bottom: 0;
}

.og-related {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--og-line);
}

.og-doc .og-related__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--og-line);
	border-radius: 999px;
	color: var(--og-ink);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.og-doc .og-related__link:hover {
	border-color: var(--og-ink);
	background-color: var(--og-soft);
}

/* About */
.og-about {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 64px;
	align-items: center;
	margin: 48px 0 56px;
}

.og-about__media {
	margin: 0;
}

.og-about__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
}

.og-about__section + .og-about__section {
	margin-top: 36px;
}

.og-about__section h2 {
	margin: 0 0 12px;
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 600;
	line-height: 1.25;
}

.og-about__section p {
	margin: 0;
	font-size: 17px;
	line-height: 1.75;
}

.og-corporate {
	background-color: var(--og-panel);
}

.og-corporate .og-card__title {
	margin-bottom: 18px;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.og-corporate__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 40px;
	margin: 0;
}

.og-corporate__list dt {
	color: var(--og-muted);
	font-size: 13px;
	font-weight: 500;
}

.og-corporate__list dd {
	margin: 2px 0 0;
	color: var(--og-ink);
	font-size: 15px;
	overflow-wrap: anywhere;
}

.og-about__cta {
	margin: 36px 0 0;
	text-align: center;
}

/* Contact */
.og-contact {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 28px;
	align-items: start;
}

.og-contact__info {
	background-color: var(--og-panel);
}

.og-contact__list {
	margin: 0;
}

.og-contact__item {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	column-gap: 14px;
	align-items: start;
	padding: 12px 0;
}

.og-contact__icon {
	display: inline-flex;
	grid-row: span 2;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--og-line);
	border-radius: 50%;
	background-color: #FFF;
	color: var(--og-ink);
}

.og-contact__icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.og-contact__item dt {
	color: var(--og-muted);
	font-size: 13px;
	font-weight: 500;
}

.og-contact__item dd {
	margin: 0;
	color: var(--og-ink);
	font-size: 16px;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.og-contact__item dd a {
	display: inline-block;
	padding: 4px 0;
	font-weight: 600;
}

.og-contact__ids {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--og-line);
	color: var(--og-muted);
	font-size: 13px;
}

/* Forms: contact (CF7) and order tracking (WooCommerce) */
.og-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.og-field,
.og-track .form-row {
	margin: 0 0 18px;
}

.og-field label,
.og-track .form-row label {
	display: block;
	margin-bottom: 6px;
	color: var(--og-ink);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.og-req {
	margin-left: 2px;
	color: #B42318;
}

.og-doc .og-field > p {
	margin: 0; /* Contact Form 7 wraps each field in a paragraph. */
}

.og-doc :is(.og-field, .og-track .form-row) :is(input[type="text"], input[type="email"], textarea) {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #CFCFCF;
	border-radius: 8px;
	background-color: #FFF;
	color: var(--og-ink);
	font-size: 16px;
	line-height: 1.5;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.og-doc :is(.og-field, .og-track .form-row) :is(input[type="text"], input[type="email"]) {
	min-height: 50px;
}

.og-doc :is(.og-field, .og-track .form-row) textarea {
	min-height: 150px;
	resize: vertical;
}

.og-doc :is(.og-field, .og-track .form-row) :is(input, textarea)::placeholder {
	color: #8A8A8A;
}

.og-doc :is(.og-field, .og-track .form-row) :is(input, textarea):focus {
	border-color: var(--og-dark);
	outline: none;
	box-shadow: 0 0 0 3px rgba(17, 18, 17, 0.14);
}

.og-doc .og-field .wpcf7-not-valid {
	border-color: #B42318;
	box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.og-doc .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: #B42318;
	font-size: 14px;
	font-weight: 500;
}

.og-doc :is(.wpcf7-submit, .og-track button[type="submit"]) {
	width: 100%;
	min-height: 52px;
	padding: 12px 24px;
	border: 0;
	border-radius: 8px;
	background-color: var(--og-dark);
	color: #FFF;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.og-doc :is(.wpcf7-submit, .og-track button[type="submit"]):hover {
	background-color: #2B2C2B;
	color: #FFF;
}

.og-doc .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

.og-doc .wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 14px 18px;
	border-width: 1px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

.og-doc .wpcf7 form.sent .wpcf7-response-output {
	border-color: #12B76A;
	background-color: #ECFDF3;
	color: #05603A;
}

.og-doc .wpcf7 form:is(.invalid, .unaccepted, .payment-required, .failed, .aborted, .spam) .wpcf7-response-output {
	border-color: #F04438;
	background-color: #FEF3F2;
	color: #B42318;
}

/* Track your order */
.og-track {
	max-width: 640px;
	margin: 0 auto;
}

.og-doc .og-track .track_order {
	display: block; /* The theme lays this form out as one row; stack it like the contact form. */
	margin-inline: 0;
}

.og-doc .og-track .track_order > p:not(.form-row) {
	display: none; /* WooCommerce's default intro; the page shows its own instruction above. */
}

.og-doc .og-track .track_order .form-row {
	display: block;
	float: none;
	width: 100%;
	max-width: none;
	margin: 0 0 18px;
	padding: 0;
}

.og-doc .og-track .track_order .form-row:last-of-type {
	margin-bottom: 0;
}

.og-track .woocommerce-order-details,
.og-track .woocommerce-customer-details {
	margin-top: 24px;
}

.og-doc .og-track :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
	margin-bottom: 18px;
	border: 1px solid #F04438;
	border-radius: 8px;
	background-color: #FEF3F2;
	color: #B42318;
	font-weight: 500;
}

.og-doc .og-track :is(.woocommerce-message, .woocommerce-info) {
	border-color: #D0D5DD;
	background-color: var(--og-panel);
	color: var(--og-ink);
}

.og-doc .og-track :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before {
	color: currentColor;
}

/* Footer: copyright + credit */
.og-copyright {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 18px;
	margin: 0;
}

.og-credit {
	color: #6B6B6B;
}

/* Tablet and mobile */
@media (max-width: 1024px) {
	.og-doc {
		--og-sticky: 96px;
	}

	.og-doc--policy .og-doc__layout {
		display: block;
	}

	.og-toc {
		position: static;
		max-height: none;
		margin: 0 0 28px;
		padding: 0;
		border: 1px solid var(--og-line);
		border-radius: 10px;
		background-color: var(--og-panel);
	}

	.og-toc__title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 48px;
		margin: 0;
		padding: 12px 16px;
	}

	.og-toc__title::after {
		content: "+";
		font-size: 20px;
		font-weight: 400;
	}

	.og-toc[open] .og-toc__title::after {
		content: "\2212";
	}

	.og-toc__list {
		padding: 0 16px 12px;
	}

	.og-about {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		margin: 32px 0 40px;
	}

	.og-contact {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.og-doc {
		margin-bottom: 56px;
		font-size: 16px;
	}

	.og-doc__title {
		font-size: 30px;
	}

	.og-lead {
		font-size: 17px;
	}

	.og-card {
		padding: 22px 18px;
	}

	.og-clause {
		padding: 24px 0;
	}

	.og-clause h2 {
		font-size: 20px;
	}

	.og-table {
		min-width: 560px;
	}

	.og-corporate__list,
	.og-form-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.og-doc .og-about__cta .og-btn {
		width: 100%;
	}
}
