.owf-shell {
	width: 100%;
}

.owf-standalone-page .owf-shell,
.page .owf-shell:not(.woocommerce-MyAccount-content *) {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
	padding-top: 100px;
	padding-bottom: 100px;
}

.owf-shell h2 {
	margin: 0 0 1rem;
}

/* Form intro */
.owf-form-intro {
	padding: 0.75rem 1rem;
	border-left: 3px solid #2271b1;
	background: #f0f6ff;
	border-radius: 0 4px 4px 0;
	margin-bottom: 1.25rem;
}

.owf-form-intro p {
	margin: 0 0 0.35rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #1e3a5f;
}

.owf-form-intro p:last-child {
	margin-bottom: 0;
}

.owf-section,
.owf-form {
	margin-top: 1rem;
}

.owf-form {
	display: grid;
	gap: 1rem;
}

.owf-withdrawal-form {
	gap: 0;
}

.owf-form-section {
	display: grid;
	gap: 0.75rem;
	padding: 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fafbfc;
	margin-bottom: 0.75rem;
}

.owf-form-section__title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: #4a5568;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid #e2e8f0;
}

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

.owf-form label > span:not(.owf-field-hint):not(.owf-item-name):not(.owf-item-qty),
.owf-form legend {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #2d3748;
}

.owf-field-hint {
	display: block !important;
	margin-top: 0.3rem;
	color: #718096 !important;
	font-size: 0.83rem !important;
	font-weight: 400 !important;
	line-height: 1.45;
}

.owf-form input[type="text"],
.owf-form input[type="email"],
.owf-form input[type="number"],
.owf-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.7rem;
	border: 1px solid #cbd5e0;
	border-radius: 5px;
	font-size: 0.95rem;
	background: #fff;
}

.owf-form input[type="text"]:focus,
.owf-form input[type="email"]:focus,
.owf-form input[type="number"]:focus,
.owf-form textarea:focus {
	outline: none;
	border-color: #0b70f0;
	box-shadow: 0 0 0 3px rgba(11, 112, 240, 0.12);
}

.owf-form button,
.owf-shell .button,
.owf-entry-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	padding: 0.75rem 1rem;
	border: var(--owf-button-border-width, 2px) solid var(--owf-button-border-color, #1d2327);
	border-radius: 4px;
	background: var(--owf-button-background, #1d2327);
	color: var(--owf-button-text-color, #fff);
	font-weight: 700;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
	text-align: center;
	line-height: 1.3;
}

.owf-entry-link:hover,
.owf-entry-link:focus {
	background: var(--owf-button-hover-background, #fff);
	color: var(--owf-button-hover-text-color, #1d2327);
	text-decoration: none;
}

.owf-form button {
	min-height: 2.75rem;
}

.owf-form button[hidden],
.owf-form [hidden] {
	display: none !important;
}

.owf-radio,
.owf-check {
	display: block;
	margin: 0.35rem 0;
}

.owf-items {
	display: grid;
	gap: 0.5rem;
}

.owf-help-text {
	margin: 0 0 0.75rem;
	color: #52606d;
	line-height: 1.5;
}

.owf-form .owf-item-row {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
}

.owf-form .owf-item-name {
	display: inline-flex;
	flex: 1 1 auto;
	gap: 0.55rem;
	align-items: center;
	min-width: 0;
	margin: 0;
	font-weight: 600;
	line-height: 1.4;
}

.owf-form .owf-item-name input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 0;
}

.owf-form .owf-item-name span,
.owf-form .owf-item-qty span {
	display: inline;
	margin: 0;
	font-weight: 600;
}

.owf-form .owf-item-qty {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 0.5rem;
	align-items: center;
	justify-content: flex-end;
	margin: 0;
}

.owf-form .owf-item-qty input[type="number"] {
	width: 4.5rem;
}

.owf-declaration-block {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem 1.25rem;
	border: 1.5px solid #0b70f0;
	border-radius: 8px;
	background: linear-gradient(135deg, #f0f6ff 0%, #fff 100%);
	color: #0a1f5c;
}

.owf-declaration-block__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: #0b70f0;
	color: #fff;
	font-family: Georgia, serif;
	font-size: 1.1rem;
	font-weight: 700;
}

.owf-declaration-block p {
	margin: 0;
	font-style: italic;
	line-height: 1.55;
}

.owf-submit-btn {
	align-self: start;
	width: auto !important;
}

.owf-order-list {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.owf-order-list-item {
	margin: 0;
}

.owf-order-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.owf-order-link:hover,
.owf-order-link:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
	text-decoration: none;
	color: inherit;
}

.owf-order-link__number {
	font-weight: 700;
	font-size: 1rem;
	color: #2271b1;
}

.owf-order-link__meta {
	display: flex;
	gap: 1rem;
	font-size: 0.9rem;
	color: #52606d;
}

.owf-notice--info strong {
	display: block;
	margin-bottom: 0.5rem;
}

.owf-notice--info p {
	margin: 0.25rem 0 0;
	line-height: 1.5;
}

.owf-confirm-panel,
.owf-notice,
.owf-success {
	padding: 1rem;
	border-left: 4px solid #2271b1;
	background: #f6f7f7;
}

.owf-summary {
	margin-top: 1rem;
}

.owf-summary dl {
	display: grid;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
}

.owf-summary dl div {
	display: grid;
	grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
	gap: 0.75rem;
}

.owf-summary dt {
	font-weight: 600;
}

.owf-summary dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.owf-success {
	border-left-color: #008a20;
}

.owf-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 20px;
}

.owf-order-list {
	margin-left: 1.25rem;
}

.owf-footer-link {
	padding: 1rem;
	text-align: center;
}

.owf-shell--done {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	text-align: center;
}

.owf-done-card {
	max-width: 480px;
	width: 100%;
	padding: 2.5rem 2rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	margin: 0 auto;
}

.owf-done-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
	width: 56px;
	height: 56px;
}

.owf-done-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #111;
	margin: 0 0 0.75rem;
}

.owf-done-message {
	font-size: 0.9375rem;
	color: #4b5563;
	line-height: 1.6;
	margin: 0 0 1.75rem;
}

.owf-done-btn {
	display: inline-block;
	padding: 0.6rem 1.75rem;
	background: var(--owf-button-background, #1d2327);
	color: var(--owf-button-text-color, #fff);
	border: var(--owf-button-border-width, 2px) solid var(--owf-button-border-color, #1d2327);
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 500;
	transition: opacity 0.15s;
}

.owf-done-btn:hover {
	opacity: 0.85;
	color: var(--owf-button-text-color, #fff);
}

.owf-information-link {
	margin-top: 1.5rem;
}

.owf-legal-notices {
	box-sizing: border-box;
	width: min(100% - 2rem, var(--wp--style--global--content-size, 860px));
	margin: 2rem auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid currentColor;
	color: inherit;
	font: inherit;
}

.owf-legal-notice {
	margin: 0;
	padding: 0;
}

.owf-legal-notice + .owf-legal-notice {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.owf-legal-notice h2,
.owf-legal-notice h3 {
	margin: 0 0 0.65rem;
	color: inherit;
	font-family: inherit;
	line-height: 1.25;
}

.owf-legal-notice h2 {
	font-size: 1.35em;
}

.owf-legal-notice h3 {
	font-size: 1.1em;
}

.owf-legal-notice p {
	margin: 0 0 0.85rem;
	line-height: inherit;
}

.owf-legal-notice p:last-child {
	margin-bottom: 0;
}

.owf-legal-notice .owf-entry-link {
	padding: 0.55rem 0.85rem;
	font-size: 0.95em;
}

.owf-checkout-digital-consent {
	margin: 1rem 0;
	padding: 1rem;
	border-left: 4px solid #2271b1;
	background: #f6f7f7;
}

.owf-checkout-digital-consent p {
	margin: 0 0 0.75rem;
}

.owf-checkout-digital-consent label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	margin: 0;
	line-height: 1.45;
}

.owf-checkout-digital-consent input[type="checkbox"] {
	margin-top: 0.25rem;
}

.owf-checkout-digital-consent--visual {
	position: relative;
	display: grid;
	grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	padding: 1.35rem;
	border: 1px solid #b8d4ff;
	border-left: 1px solid #b8d4ff;
	border-radius: 8px;
	background: linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #eef6ff 100%);
	box-shadow: 0 14px 40px rgba(20, 93, 190, 0.12);
	color: #122244;
	overflow: hidden;
}

.owf-checkout-visual__media {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
}

.owf-checkout-visual__shield {
	width: min(100%, 9rem);
	height: auto;
	display: block;
}

.owf-checkout-visual__body {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.owf-checkout-visual__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 100%;
	margin-bottom: 0.65rem;
	padding: 0.35rem 0.75rem;
	border: 1.5px solid #0b70f0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	color: #075fce;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
	box-shadow: 0 6px 18px rgba(11, 112, 240, 0.1);
}

.owf-checkout-visual__badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 1.35rem;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: #0b70f0;
	color: #fff;
	font-family: Georgia, serif;
	font-weight: 700;
	font-style: italic;
	line-height: 1;
}

.owf-checkout-digital-consent--visual h3 {
	margin: 0 0 0.45rem;
	color: #081a3d;
	font-size: 1.55rem;
	line-height: 1.14;
}

.owf-checkout-digital-consent--visual p {
	margin: 0.15rem 0;
	color: #405174;
	font-size: 1rem;
	line-height: 1.45;
}

.owf-checkout-visual__notices {
	display: grid;
	gap: 0.45rem;
	margin: 0.85rem 0 0;
	padding: 0;
	list-style: none;
}

.owf-checkout-visual__notices li {
	position: relative;
	padding: 0.55rem 0.75rem 0.55rem 2rem;
	border: 1px solid #d5e6ff;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.62);
	color: #304667;
	line-height: 1.4;
}

.owf-checkout-visual__notices li::before {
	position: absolute;
	left: 0.75rem;
	top: 0.72rem;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: #0b70f0;
	content: "";
}

.owf-checkout-visual__checkbox {
	display: grid !important;
	position: relative;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.75rem;
	align-items: start;
	margin-top: 1.25rem !important;
	padding: 1rem;
	border: 1px solid #b8d4ff;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 10px 28px rgba(20, 93, 190, 0.08);
	cursor: pointer;
}

.owf-checkout-visual__checkbox input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.owf-checkout-visual__checkbox-mark {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 2px solid #0b70f0;
	border-radius: 8px;
	background: #fff;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.owf-checkout-visual__checkbox input[type="checkbox"]:checked + .owf-checkout-visual__checkbox-mark {
	background: linear-gradient(135deg, #2d8cff, #005bd8);
}

.owf-checkout-visual__checkbox input[type="checkbox"]:focus + .owf-checkout-visual__checkbox-mark {
	outline: 2px solid #081a3d;
	outline-offset: 2px;
}

.owf-checkout-visual__checkbox input[type="checkbox"]:checked + .owf-checkout-visual__checkbox-mark::after {
	width: 0.55rem;
	height: 1rem;
	border: solid #fff;
	border-width: 0 0.22rem 0.22rem 0;
	content: "";
	transform: rotate(45deg);
}

.owf-checkout-visual__checkbox strong,
.owf-checkout-visual__checkbox small {
	display: block;
}

.owf-checkout-visual__checkbox strong {
	color: #081a3d;
	font-size: 1.05rem;
	line-height: 1.35;
}

.owf-checkout-visual__checkbox small {
	margin-top: 0.35rem;
	color: #405174;
	font-size: 0.95rem;
	line-height: 1.45;
}

.owf-checkout-digital-error {
	color: #b32d2e;
	font-weight: 600;
}

/* Express payment placeholder (Google Pay / Apple Pay) */
button.owf-express-placeholder {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.75rem !important;
	width: 100% !important;
	padding: 0 1.25rem !important;
	margin-bottom: 20px !important;
	border: 2px solid #2271b1 !important;
	border-radius: 6px !important;
	background: #f0f6ff !important;
	color: #1a4f8a !important;
	cursor: pointer !important;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s !important;
	box-sizing: border-box !important;
	box-shadow: 0 1px 4px rgba(34,113,177,0.10) !important;
}

button.owf-express-placeholder:hover,
button.owf-express-placeholder:focus-visible {
	background: #dbeafe !important;
	border-color: #0b70f0 !important;
	box-shadow: 0 0 0 3px rgba(11,112,240,0.15) !important;
	outline: none !important;
}

.owf-express-placeholder__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	color: currentcolor;
}

.owf-express-placeholder__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
}

.owf-express-placeholder__main {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
}

.owf-express-placeholder__sub {
	font-size: 0.75rem;
	font-weight: 400;
	opacity: 0.8;
	line-height: 1.2;
}

/* Express payment consent modal */
.owf-express-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	padding: 1rem;
}

.owf-express-modal {
	display: grid;
	gap: 1rem;
	width: min(100%, 520px);
	max-height: 90vh;
	overflow-y: auto;
	padding: 1.75rem;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.owf-express-modal__title {
	margin: 0;
	font-size: 1.35rem;
	color: #081a3d;
}

.owf-express-modal__intro {
	margin: 0;
	color: #405174;
	line-height: 1.5;
}

.owf-express-modal__consents {
	display: grid;
	gap: 0.75rem;
}

.owf-express-consent-item {
	margin-top: 0 !important;
}

.owf-express-modal__error {
	margin: 0;
	color: #b32d2e;
	font-weight: 600;
}

.owf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 6px;
	background: #0b70f0;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	width: 100%;
}

.owf-btn:hover:not(:disabled),
.owf-btn:focus:not(:disabled) {
	background: #005bd8;
}

.owf-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

@media (max-width: 640px) {
	.owf-grid,
	.owf-summary dl div {
		grid-template-columns: 1fr;
	}

	.owf-form .owf-item-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.owf-item-qty {
		justify-content: flex-start;
	}

	.owf-actions,
	.owf-actions button {
		width: 100%;
	}

	.owf-form-section {
		padding: 0.75rem;
	}

	.owf-order-link {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
	}

	.owf-order-link__meta {
		flex-wrap: wrap;
		gap: 0.35rem 0.75rem;
	}

	.owf-order-list {
		margin-left: 0;
	}

	.owf-declaration-block {
		flex-direction: column;
		gap: 0.6rem;
	}

	.owf-submit-btn {
		width: 100% !important;
	}

	.owf-checkout-digital-consent--visual {
		grid-template-columns: 1fr;
		padding: 1rem;
	}

	.owf-checkout-visual__media {
		justify-content: flex-start;
	}

	.owf-checkout-visual__shield {
		width: 6rem;
	}

	.owf-checkout-visual__checkbox {
		grid-template-columns: auto minmax(0, 1fr);
	}

}
