/**
 * One Click Order — shop front styles.
 *
 * Everything is scoped to .oco-* classes. Colors come from custom properties so Pro (or a theme) can change them.
 * Logical properties (inline-start/end) keep right-to-left languages correct.
 */

.oco-buy,
.oco-modal,
.oco-inline,
.oco-page,
.oco-scope {
	--oco-accent: #ff9f1c;
	--oco-accent-hover: #f08c00;
	--oco-accent-text: #1f1300;
	--oco-bg: #ffffff;
	--oco-text: #15181c;
	--oco-muted: #646b73;
	--oco-faint: #9aa1a9;
	--oco-border: #e2e5e9;
	--oco-border-strong: #c9ced4;
	--oco-soft: #f5f6f8;
	--oco-focus: #2563eb;
	--oco-good: #067647;
	--oco-good-bg: #ecfdf3;
	--oco-error: #b42318;
	--oco-error-bg: #fef3f2;
	--oco-radius: 10px;
	--oco-font: inherit;
	--oco-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
}

/* =====================================================================
 * Buy Now button
 * ===================================================================== */

.oco-buy {
	flex-basis: 100%;
	width: 100%;
	margin-block: 12px 4px;
	clear: both;
}

.oco-buy .oco-buy-button,
.oco-buy-button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--oco-radius);
	background: var(--oco-accent);
	color: var(--oco-accent-text);
	font-family: var(--oco-font);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 2px 6px -2px rgba(16, 24, 40, 0.25);
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.oco-buy-button::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.2 2.4 4.6 13.1a.9.9 0 0 0 .7 1.5h5.4l-1.1 7c-.1.8.9 1.2 1.4.6l8.6-10.7a.9.9 0 0 0-.7-1.5h-5.4l1.1-7c.1-.8-.9-1.2-1.4-.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.2 2.4 4.6 13.1a.9.9 0 0 0 .7 1.5h5.4l-1.1 7c-.1.8.9 1.2 1.4.6l8.6-10.7a.9.9 0 0 0-.7-1.5h-5.4l1.1-7c.1-.8-.9-1.2-1.4-.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.oco-buy .oco-buy-button:hover,
.oco-buy-button:hover {
	background: var(--oco-accent-hover);
	color: var(--oco-accent-text);
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 14px -6px rgba(16, 24, 40, 0.35);
}

.oco-buy .oco-buy-button:focus-visible,
.oco-buy-button:focus-visible {
	outline: 3px solid var(--oco-focus);
	outline-offset: 2px;
}

.oco-buy .oco-buy-button:active {
	transform: translateY(1px);
}

.oco-buy__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 8px 0 0;
	color: var(--oco-muted);
	font-size: 13px;
	line-height: 1.3;
}

.oco-buy__note::before {
	content: "";
	width: 15px;
	height: 15px;
	background: var(--oco-good);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* =====================================================================
 * Popup frame
 * ===================================================================== */

html.oco-lock,
html.oco-lock body {
	overflow: hidden;
}

.oco-modal[hidden] {
	display: none !important;
}

.oco-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
	box-sizing: border-box;
}

.oco-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 22, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.oco-modal__dialog {
	position: relative;
	box-sizing: border-box;
	width: min(500px, 100%);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	border-radius: 20px;
	background: var(--oco-bg);
	color: var(--oco-text);
	box-shadow: 0 32px 64px -16px rgba(16, 24, 40, 0.35), 0 0 0 1px rgba(16, 24, 40, 0.04);
	opacity: 0;
	transform: translateY(8px) scale(0.985);
	transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.oco-modal__dialog:focus {
	outline: none;
}

.oco-modal.is-open .oco-modal__backdrop,
.oco-modal.is-open .oco-modal__dialog {
	opacity: 1;
	transform: none;
}

@media (max-width: 600px) {
	.oco-modal {
		padding: 0;
	}

	.oco-modal__dialog {
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oco-modal__backdrop,
	.oco-modal__dialog,
	.oco-buy-button,
	.oco-skeleton__bar {
		transition: none;
		animation: none;
	}
}

/* Loading placeholder shown while the form loads. */

.oco-skeleton {
	padding: 20px;
}

.oco-skeleton__head {
	display: flex;
	gap: 14px;
	align-items: center;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--oco-border);
}

.oco-skeleton__img {
	width: 64px;
	height: 64px;
	border-radius: 12px;
}

.oco-skeleton__lines {
	flex: 1;
}

.oco-skeleton__bar {
	display: block;
	height: 12px;
	margin: 8px 0;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--oco-soft) 25%, #eceef1 37%, var(--oco-soft) 63%);
	background-size: 400% 100%;
	animation: oco-shimmer 1.3s ease infinite;
}

.oco-skeleton__img.oco-skeleton__bar {
	height: 64px;
	margin: 0;
}

.oco-skeleton__field {
	height: 46px;
	margin: 18px 0 0;
	border-radius: 10px;
}

@keyframes oco-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

/* =====================================================================
 * Form
 * ===================================================================== */

.oco-form {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	color: var(--oco-text);
	font-family: var(--oco-font);
	font-size: 15px;
	line-height: 1.45;
	text-align: start;
}

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

.oco-form--inline,
.oco-form--page {
	margin-block: 24px;
	border: 1px solid var(--oco-border);
	border-radius: 16px;
	background: var(--oco-bg);
	box-shadow: var(--oco-shadow);
	overflow: hidden;
}

.oco-form--page {
	max-width: 560px;
	margin-inline: auto;
}

/* Header: product picture, name, price. */

.oco-head {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 16px 16px 20px;
	border-bottom: 1px solid var(--oco-border);
	background: var(--oco-bg);
}

.oco-form--inline .oco-head,
.oco-form--page .oco-head {
	position: static;
}

.oco-form .oco-head__image {
	flex: none;
	width: 64px;
	height: 64px;
	margin: 0;
	border-radius: 12px;
	background: var(--oco-soft);
	box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.06);
	object-fit: cover;
}

.oco-head__info {
	flex: 1;
	min-width: 0;
}

.oco-form .oco-head__title {
	margin: 0;
	padding: 0;
	color: var(--oco-text);
	font-family: var(--oco-font);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	overflow-wrap: anywhere;
}

.oco-head__price {
	margin-top: 2px;
	font-size: 15px;
	font-weight: 600;
}

.oco-head__price del {
	margin-inline-end: 4px;
	color: var(--oco-faint);
	font-weight: 400;
}

.oco-head__price ins {
	text-decoration: none;
}

.oco-head__meta {
	color: var(--oco-muted);
	font-size: 13px;
}

.oco-head__meta:empty {
	display: none;
}

.oco-form .oco-close,
.oco-modal .oco-close {
	display: inline-flex;
	flex: none;
	align-self: flex-start;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--oco-soft);
	color: var(--oco-text);
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.oco-form .oco-close:hover,
.oco-modal .oco-close:hover {
	background: var(--oco-border);
}

.oco-form .oco-close:focus-visible {
	outline: 3px solid var(--oco-focus);
	outline-offset: 1px;
}

/* Body and numbered sections. */

.oco-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 22px;
	padding: 20px 20px 8px;
	counter-reset: oco-step;
}

.oco-form .oco-section {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.oco-form legend.oco-section__title {
	float: none;
	width: 100%;
	border: 0;
	background: none;
	box-shadow: none;
}

.oco-form .oco-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	color: var(--oco-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.oco-form .oco-section__title::before {
	counter-increment: oco-step;
	content: counter(oco-step);
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--oco-text);
	color: var(--oco-bg);
	font-size: 12px;
	font-weight: 700;
}

/* Quantity row. */

.oco-qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.oco-qty-row__label {
	font-size: 14px;
	font-weight: 600;
}

.oco-qty {
	display: inline-flex;
	flex: none;
	align-items: stretch;
	height: 42px;
	border: 1px solid var(--oco-border-strong);
	border-radius: 999px;
	background: var(--oco-bg);
	overflow: hidden;
}

.oco-form .oco-qty__btn {
	width: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--oco-text);
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.oco-form .oco-qty__btn:hover {
	background: var(--oco-soft);
}

.oco-form .oco-qty__input {
	width: 42px;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--oco-text);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.oco-form .oco-qty__input::-webkit-outer-spin-button,
.oco-form .oco-qty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* Grouped products. */

.oco-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.oco-group__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid var(--oco-border);
	border-radius: 12px;
}

.oco-form .oco-group__image {
	flex: none;
	width: 48px;
	height: 48px;
	margin: 0;
	border-radius: 8px;
	background: var(--oco-soft);
	object-fit: cover;
}

.oco-group__info {
	flex: 1;
	min-width: 0;
}

.oco-group__name {
	font-weight: 600;
}

.oco-group__price {
	color: var(--oco-muted);
	font-size: 14px;
}

.oco-group__price ins {
	text-decoration: none;
}

/* Option chips (size, color…). */

.oco-options {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.oco-attr__label {
	display: block;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
}

.oco-attr__value {
	color: var(--oco-muted);
	font-weight: 400;
}

.oco-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.oco-form .oco-chip {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.oco-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.oco-chip span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 42px;
	padding: 8px 14px;
	border: 1px solid var(--oco-border-strong);
	border-radius: 10px;
	background: var(--oco-bg);
	color: var(--oco-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.oco-chip:hover span {
	border-color: var(--oco-text);
}

.oco-chip input:checked + span {
	border-color: var(--oco-text);
	background: var(--oco-text);
	color: var(--oco-bg);
	font-weight: 600;
}

.oco-chip input:focus-visible + span {
	outline: 3px solid var(--oco-focus);
	outline-offset: 2px;
}

.oco-chip input:disabled + span {
	border-style: dashed;
	color: var(--oco-faint);
	background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--oco-border-strong) 50%, transparent calc(50% + 0.5px));
	cursor: not-allowed;
}

/* Fields. */

.oco-fields__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 12px;
}

.oco-field {
	grid-column: 1 / -1;
	min-width: 0;
	margin: 0;
}

.oco-field--half {
	grid-column: auto;
}

@media (max-width: 380px) {
	.oco-field--half {
		grid-column: 1 / -1;
	}
}

.oco-form .oco-field__label {
	display: block;
	margin: 0 0 6px;
	color: var(--oco-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.oco-field__optional {
	color: var(--oco-faint);
	font-weight: 400;
}

.oco-form .oco-field input,
.oco-form .oco-field select,
.oco-form .oco-field textarea,
.oco-form .ocop-coupon__row input {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--oco-border-strong);
	border-radius: 10px;
	background: var(--oco-bg);
	color: var(--oco-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.oco-form .oco-field input::placeholder,
.oco-form .oco-field textarea::placeholder {
	color: var(--oco-faint);
}

.oco-form .oco-field textarea {
	min-height: 76px;
	resize: vertical;
}

.oco-form .oco-field select {
	padding-inline-end: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23646b73' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	-webkit-appearance: none;
	appearance: none;
}

[dir="rtl"] .oco-form .oco-field select {
	background-position: left 15px center;
}

.oco-form .oco-field input:hover,
.oco-form .oco-field select:hover,
.oco-form .oco-field textarea:hover {
	border-color: var(--oco-faint);
}

.oco-form .oco-field input:focus,
.oco-form .oco-field select:focus,
.oco-form .oco-field textarea:focus,
.oco-form .ocop-coupon__row input:focus {
	border-color: var(--oco-focus);
	outline: none;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.oco-field--error input,
.oco-field--error select,
.oco-field--error textarea {
	border-color: var(--oco-error) !important;
	box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1) !important;
}

.oco-form .oco-field__error {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	margin: 6px 0 0;
	color: var(--oco-error);
	font-size: 13px;
	font-weight: 500;
}

.oco-form .oco-field__error[hidden] {
	display: none;
}

/* Choice cards: delivery and payment. */

.oco-shipping:empty {
	display: none;
}

.oco-cards {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.oco-form .oco-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 13px 14px;
	border: 1px solid var(--oco-border-strong);
	border-radius: 12px;
	background: var(--oco-bg);
	cursor: pointer;
	transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.oco-form .oco-card:hover {
	border-color: var(--oco-faint);
}

.oco-form .oco-card.is-selected,
.oco-form .oco-card:has(input:checked) {
	border-color: var(--oco-text);
	background: var(--oco-soft);
	box-shadow: inset 0 0 0 1px var(--oco-text);
}

.oco-form .oco-card input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--oco-text);
}

.oco-form .oco-card--single {
	cursor: default;
}

.oco-form .oco-card--single input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.oco-card__icon {
	flex: none;
	width: 22px;
	height: 22px;
	background: var(--oco-text);
	-webkit-mask: var(--oco-icon) center / contain no-repeat;
	mask: var(--oco-icon) center / contain no-repeat;
}

.oco-card--cod {
	--oco-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='2.5'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Cpath d='M6 9.5v5M18 9.5v5'/%3E%3C/svg%3E");
}

.oco-card--gateway {
	--oco-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Cpath d='M2.5 9.5h19M6.5 15h4'/%3E%3C/svg%3E");
}

.oco-card--manual {
	--oco-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5a2 2 0 0 1 2-2h11.5v3'/%3E%3Crect x='3.5' y='7.5' width='17' height='12' rx='2.5'/%3E%3Cpath d='M16 13.5h1.5'/%3E%3C/svg%3E");
}

.oco-card--ship {
	--oco-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v9h-11zM13.5 9.5h4l3 3v3h-7'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.8'/%3E%3C/svg%3E");
}

.oco-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.oco-card__title {
	font-weight: 600;
	line-height: 1.3;
}

.oco-card__desc {
	color: var(--oco-muted);
	font-size: 14px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.oco-form .oco-card:not(.is-selected):not(:has(input:checked)) .oco-card__desc {
	display: none;
}

.oco-card__price {
	flex: none;
	font-weight: 600;
}

.oco-shipping__none {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--oco-error-bg);
	color: var(--oco-error);
	font-size: 14px;
}

/* Note from the shop. */

.oco-note {
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--oco-soft);
	color: var(--oco-text);
	font-size: 14px;
	box-shadow: inset 3px 0 0 var(--oco-accent);
}

[dir="rtl"] .oco-note {
	box-shadow: inset -3px 0 0 var(--oco-accent);
}

.oco-note p {
	margin: 0 0 6px;
}

.oco-note p:last-child {
	margin-bottom: 0;
}

/* Order summary. */

.oco-summary {
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--oco-soft);
	transition: opacity 0.15s ease;
}

.oco-form.is-updating .oco-summary {
	opacity: 0.55;
}

.oco-summary:empty {
	display: none;
}

.oco-form .oco-totals__list {
	margin: 0;
	padding: 0;
}

.oco-totals__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	font-size: 14px;
}

.oco-form .oco-totals__row dt,
.oco-form .oco-totals__row dd {
	margin: 0;
	padding: 0;
	font-weight: 400;
}

.oco-totals__row dt {
	color: var(--oco-muted);
}

.oco-totals__row dd {
	text-align: end;
	font-variant-numeric: tabular-nums;
}

.oco-form .oco-totals__row--savings dt,
.oco-form .oco-totals__row--savings dd {
	color: var(--oco-good);
	font-weight: 600;
}

.oco-form .oco-totals__row--total {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--oco-border);
	font-size: 18px;
}

.oco-form .oco-totals__row--total dt,
.oco-form .oco-totals__row--total dd {
	color: var(--oco-text);
	font-weight: 700;
}

.oco-totals__row--total small {
	display: block;
	color: var(--oco-muted);
	font-size: 12px;
	font-weight: 400;
}

.oco-privacy {
	color: var(--oco-faint);
	font-size: 12px;
	line-height: 1.45;
}

.oco-privacy p {
	margin: 0;
}

.oco-privacy a {
	color: var(--oco-muted);
}

/* Footer: message, order button, secure note. Pinned to the bottom of the popup. */

.oco-foot {
	position: sticky;
	bottom: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--oco-border);
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: saturate(1.6) blur(8px);
	backdrop-filter: saturate(1.6) blur(8px);
}

.oco-form--inline .oco-foot,
.oco-form--page .oco-foot {
	position: static;
	border-top: 0;
	background: none;
	padding-top: 4px;
}

.oco-message {
	margin: 0;
	padding: 11px 14px;
	border-radius: 10px;
	background: var(--oco-error-bg);
	color: var(--oco-error);
	font-size: 14px;
	font-weight: 500;
}

.oco-message[hidden] {
	display: none;
}

.oco-message.is-info {
	background: var(--oco-soft);
	color: var(--oco-text);
}

.oco-form .oco-submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 12px 20px;
	border: 0;
	border-radius: var(--oco-radius);
	background: var(--oco-accent);
	color: var(--oco-accent-text);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 2px 6px -2px rgba(16, 24, 40, 0.25);
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.oco-form .oco-submit:hover {
	background: var(--oco-accent-hover);
	color: var(--oco-accent-text);
}

.oco-form .oco-submit:focus-visible {
	outline: 3px solid var(--oco-focus);
	outline-offset: 2px;
}

.oco-form .oco-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.oco-form.is-placing .oco-submit::before {
	content: "";
	width: 18px;
	height: 18px;
	border: 2.5px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: oco-spin 0.8s linear infinite;
}

.oco-form.is-done .oco-submit,
.oco-form.is-done .oco-submit:disabled {
	background: var(--oco-good);
	color: #fff;
	opacity: 1;
}

.oco-form.is-done .oco-submit::before {
	content: "";
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 0;
	background: currentColor;
	animation: oco-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@keyframes oco-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes oco-pop {
	0% { transform: scale(0.3); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

.oco-form .oco-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	color: var(--oco-muted);
	font-size: 12px;
	line-height: 1.2;
}

/* Honeypot: hidden from people, visible to simple bots. */
.oco-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* =====================================================================
 * Thank-you page and messages
 * ===================================================================== */

.oco-thankyou-whatsapp {
	margin: 0 0 24px;
}

.oco-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 48px;
	padding: 10px 22px;
	border-radius: 999px;
	background: #0f7a6e;
	color: #ffffff !important;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 6px 16px -8px rgba(15, 122, 110, 0.7);
	transition: background-color 0.15s ease;
}

.oco-whatsapp:hover {
	background: #0b6359;
}

.oco-whatsapp::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm5.4 14.2c-.2.6-1.3 1.2-1.8 1.3-.5.1-1 .1-3.2-.7-2.7-1.1-4.4-3.8-4.5-4-.1-.2-1.1-1.4-1.1-2.7s.7-1.9.9-2.2c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.3 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.1.3.7 1.1 1.4 1.8.9.8 1.7 1.1 2 1.2.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm5.4 14.2c-.2.6-1.3 1.2-1.8 1.3-.5.1-1 .1-3.2-.7-2.7-1.1-4.4-3.8-4.5-4-.1-.2-1.1-1.4-1.1-2.7s.7-1.9.9-2.2c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.3 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.1.3.7 1.1 1.4 1.8.9.8 1.7 1.1 2 1.2.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.oco-page-message {
	max-width: 560px;
	margin: 24px auto;
	padding: 24px;
	border: 1px solid #e2e5e9;
	border-radius: 16px;
	text-align: center;
}

.oco-admin-hint {
	padding: 8px 12px;
	border: 1px dashed #b42318;
	color: #b42318;
	font-size: 13px;
}
