/* SwedWash Checkout Customer Form — matches the checkout cards (white, 12px radius, #004f8e focus). */
.wc-svea-checkout-page .bwcf {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 24px;
	padding: 28px 28px 8px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(17, 24, 39, .05), 0 8px 24px rgba(17, 24, 39, .04);
	color: #111827;
	font-size: 14px;
	line-height: 1.4;
}
.wc-svea-checkout-page .bwcf *,
.wc-svea-checkout-page .bwcf *::before,
.wc-svea-checkout-page .bwcf *::after { box-sizing: border-box; }

/* The checkout sits in an Elementor text widget that runs automatic paragraphs over it; neutralise
   the <p>/<br> it injects so they don't add spacing (the same approach used for Svea's markup). */
.wc-svea-checkout-page .bwcf br,
.wc-svea-checkout-page .bwcf p:empty { display: none !important; }
.wc-svea-checkout-page .bwcf p:not(.bwcf-error):not(.bwcf-tooltip):not(.bwcr-notice__text) { display: contents !important; }
.wc-svea-checkout-page .bwcf-section { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.wc-svea-checkout-page .bwcf-title {
	display: block;
	float: none;
	width: 100%;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	color: #111827;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1.2;
	text-transform: uppercase;
}
.wc-svea-checkout-page .bwcf-grid { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 18px 16px; }
.wc-svea-checkout-page .bwcf-field { position: relative; grid-column: span var(--span, 20); min-width: 0; margin: 0; }
.wc-svea-checkout-page .bwcf-field[hidden] { display: none !important; }

.wc-svea-checkout-page .bwcf-label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: #111827;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}
.wc-svea-checkout-page .bwcf-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wc-svea-checkout-page .bwcf .bwcf-control {
	display: block;
	width: 100% !important;
	height: 44px !important;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 8px !important;
	background-color: #fff !important;
	box-shadow: none !important;
	color: #111827 !important;
	font: inherit;
	font-size: 14px !important;
	line-height: 1.2;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.wc-svea-checkout-page .bwcf .bwcf-control::placeholder { color: #9ca3af; opacity: 1; }
.wc-svea-checkout-page .bwcf .bwcf-control:hover { border-color: #9ca3af !important; }
.wc-svea-checkout-page .bwcf .bwcf-control:focus { outline: none; border-color: #004f8e !important; box-shadow: 0 0 0 3px rgba(0, 79, 142, .15) !important; }
.wc-svea-checkout-page .bwcf select.bwcf-control {
	padding-right: 40px !important;
	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 d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 12px 8px !important;
	cursor: pointer;
}

.wc-svea-checkout-page .bwcf-group { display: flex; align-items: stretch; }
.wc-svea-checkout-page .bwcf-addon {
	display: flex;
	align-items: center;
	padding: 0 12px;
	border: 1px solid #d1d5db;
	border-right: 0;
	border-radius: 8px 0 0 8px;
	background: #f3f4f6;
	color: #374151;
	font-size: 13px;
	white-space: nowrap;
}
.wc-svea-checkout-page .bwcf .bwcf-group .bwcf-control { min-width: 0; border-radius: 0 8px 8px 0 !important; }

.wc-svea-checkout-page .bwcf-field.is-invalid .bwcf-control,
.wc-svea-checkout-page .bwcf-field.is-invalid .bwcf-addon { border-color: #dc2626 !important; }
.wc-svea-checkout-page .bwcf-field.is-invalid .bwcf-control:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .15) !important; }
.wc-svea-checkout-page .bwcf-error { margin: 6px 0 0 !important; color: #b91c1c; font-size: 12px; line-height: 1.4; }
.wc-svea-checkout-page .bwcf-error[hidden] { display: none !important; }

.wc-svea-checkout-page .bwcf-field.is-autofilled .bwcf-control { background-color: #f0f7ff !important; }
.wc-svea-checkout-page .bwcf-field.is-loading::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 36px;
	width: 16px;
	height: 16px;
	border: 2px solid #cbd5e1;
	border-top-color: #004f8e;
	border-radius: 50%;
	animation: bwcf-spin .7s linear infinite;
}
@keyframes bwcf-spin { to { transform: rotate(360deg); } }

.wc-svea-checkout-page .bwcf-check-row { display: flex; align-items: center; gap: 6px; }
.wc-svea-checkout-page .bwcf-check { display: inline-flex !important; align-items: center; gap: 10px; margin: 0 !important; color: #111827; font-size: 14px; font-weight: 500; cursor: pointer; }
.wc-svea-checkout-page .bwcf-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0 !important; accent-color: #004f8e; cursor: pointer; }
.wc-svea-checkout-page .bwcf-help-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px !important;
	height: 18px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #111827 !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 700;
	line-height: 1 !important;
	cursor: pointer;
}
.wc-svea-checkout-page .bwcf-help-btn:focus-visible { outline: 2px solid #004f8e; outline-offset: 2px; }
.wc-svea-checkout-page .bwcf-tooltip { max-width: 460px; margin: 8px 0 0 !important; padding: 10px 12px; border-radius: 8px; background: #111827; color: #fff; font-size: 12px; line-height: 1.5; }

.wc-svea-checkout-page .bwcf-summary { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #991b1b; font-size: 14px; }
.wc-svea-checkout-page .bwcf-summary[hidden] { display: none !important; }

/* Cart reminder notice placed under the email field */
.wc-svea-checkout-page .bwcf .bwcf-field--notice .bwcr-notice { margin: -6px 0 0; }

/* Payment lock */
.wc-svea-checkout-page #customer_details.bwcf-locked { position: relative; min-height: 320px; }
.wc-svea-checkout-page #customer_details.bwcf-locked #svea-checkout-iframe-container { opacity: .45; filter: grayscale(.4); pointer-events: none; user-select: none; }
.wc-svea-checkout-page #customer_details .bwcf-lock {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 56px 16px;
	border-radius: 12px;
	background: rgba(248, 250, 252, .6);
}
.wc-svea-checkout-page #customer_details .bwcf-lock[hidden] { display: none !important; }
.wc-svea-checkout-page .bwcf-lock__box {
	position: sticky;
	top: 120px;
	max-width: 420px;
	padding: 22px 26px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(17, 24, 39, .12);
	text-align: center;
}
.wc-svea-checkout-page .bwcf-lock__title { margin: 0 0 6px !important; color: #111827; font-size: 17px; font-weight: 700; }
.wc-svea-checkout-page .bwcf-lock__text { margin: 0 0 16px !important; color: #4b5563; font-size: 14px; line-height: 1.5; }
.wc-svea-checkout-page .bwcf-lock__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 44px;
	margin: 0 !important;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: #004f8e !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600;
	text-transform: none !important;
	cursor: pointer;
}
.wc-svea-checkout-page .bwcf-lock__btn:hover { background: #003a6a !important; }
.wc-svea-checkout-page .bwcf-lock__btn:focus-visible { outline: 2px solid #004f8e; outline-offset: 3px; }

/* Terms + newsletter under the order total */
.wc-svea-checkout-page .bwcf-consents {
	box-sizing: border-box;
	margin: 16px 0 !important;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}
.wc-svea-checkout-page .bwcf-consents br,
.wc-svea-checkout-page .bwcf-consents p:empty { display: none !important; }
.wc-svea-checkout-page .bwcf-consents p:not(.bwcf-error):not(.bwcf-tooltip) { display: contents !important; }
.wc-svea-checkout-page .bwcf-consent { position: relative; transition: background-color .15s ease, box-shadow .15s ease; }
.wc-svea-checkout-page .bwcf-consent + .bwcf-consent { margin-top: 10px; }
.wc-svea-checkout-page .bwcf-consent .bwcf-check-row { flex-wrap: wrap; row-gap: 4px; }
.wc-svea-checkout-page .bwcf-terms-link {
	margin-left: 2px;
	color: #004f8e !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}
.wc-svea-checkout-page .bwcf-terms-link:hover { color: #003a6a !important; }
.wc-svea-checkout-page .bwcf-terms-link:focus-visible { outline: 2px solid #004f8e; outline-offset: 2px; border-radius: 2px; }
.wc-svea-checkout-page .bwcf-consent.is-invalid {
	margin: -6px -8px;
	padding: 6px 8px 6px 11px;
	border-radius: 6px;
	background: #fef2f2;
	box-shadow: inset 3px 0 0 #dc2626;
}
.wc-svea-checkout-page .bwcf-consent.is-invalid + .bwcf-consent { margin-top: 16px; }
.wc-svea-checkout-page .bwcf-consent.is-invalid input[type="checkbox"] { outline: 2px solid #dc2626; outline-offset: 2px; }
.wc-svea-checkout-page .bwcf-consents .bwcf-error { margin: 4px 0 0 30px !important; }
.wc-svea-checkout-page .bwcf-consents .bwcf-tooltip { margin-left: 30px !important; }

/* Terms dialog (rendered in the footer, outside the checkout layout) */
html.bwcf-modal-open { overflow: hidden; }
.bwcf-dialog {
	box-sizing: border-box;
	width: min(860px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 48px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: #111827;
	box-shadow: 0 24px 64px rgba(17, 24, 39, .28);
	overflow: hidden;
}
.bwcf-dialog::backdrop { background: rgba(17, 24, 39, .55); }
.bwcf-dialog *, .bwcf-dialog *::before, .bwcf-dialog *::after { box-sizing: border-box; }
.bwcf-dialog__panel { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.bwcf-dialog__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 16px 16px 28px;
	border-top: 4px solid #f6c400;
	border-bottom: 1px solid #e5e7eb;
}
.bwcf-dialog .bwcf-dialog__title {
	margin: 0 !important;
	padding: 0 !important;
	color: #111827 !important;
	font-size: 20px !important;
	font-weight: 800 !important;
	letter-spacing: .02em;
	line-height: 1.2 !important;
	text-transform: uppercase;
}
.bwcf-dialog .bwcf-dialog__close {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #374151 !important;
	cursor: pointer;
}
.bwcf-dialog .bwcf-dialog__close:hover { background: #f3f4f6 !important; color: #111827 !important; }
.bwcf-dialog .bwcf-dialog__close:focus-visible,
.bwcf-dialog .bwcf-btn:focus-visible,
.bwcf-dialog .bwcf-dialog__body:focus-visible { outline: 2px solid #004f8e; outline-offset: 2px; }
.bwcf-dialog__body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 20px 28px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
	color: #374151;
	font-size: 14px;
	line-height: 1.65;
}
.bwcf-dialog__body h3 { margin: 26px 0 10px !important; color: #111827; font-size: 17px !important; font-weight: 700 !important; line-height: 1.3; text-transform: none; }
.bwcf-dialog__body h4 { margin: 18px 0 6px !important; color: #111827; font-size: 14px !important; font-weight: 700 !important; line-height: 1.4; text-transform: none; }
.bwcf-dialog__body p { margin: 0 0 10px !important; }
.bwcf-dialog__body ol, .bwcf-dialog__body ul { margin: 0 0 12px !important; padding-left: 22px !important; }
.bwcf-dialog__body li { margin: 0 0 4px; }
.bwcf-dialog__body a { color: #004f8e; text-decoration: underline; }
.bwcf-dialog__body .bwcf-terms-intro { color: #111827; font-weight: 500; }
.bwcf-dialog__body .bwcf-terms-contact { margin-top: 22px !important; padding-top: 14px; border-top: 1px solid #e5e7eb; }
.bwcf-dialog__footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 24px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
}
.bwcf-dialog .bwcf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 20px !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1 !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.bwcf-dialog .bwcf-btn--primary { border: 0 !important; background: #004f8e !important; color: #fff !important; }
.bwcf-dialog .bwcf-btn--primary:hover { background: #003a6a !important; }
.bwcf-dialog .bwcf-btn--secondary { border: 1px solid #d1d5db !important; background: #fff !important; color: #111827 !important; }
.bwcf-dialog .bwcf-btn--secondary:hover { background: #f3f4f6 !important; }

@media (max-width: 600px) {
	.bwcf-dialog { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
	.bwcf-dialog__panel { height: 100%; max-height: 100vh; }
	.bwcf-dialog__header { padding-left: 18px; }
	.bwcf-dialog__body { padding: 16px 18px 20px; }
	.bwcf-dialog__footer { padding: 12px 16px; }
	.bwcf-dialog .bwcf-btn { flex: 1 1 0; padding: 0 12px !important; }
}

@media (max-width: 767px) {
	.wc-svea-checkout-page .bwcf { padding: 20px 16px 4px; border-radius: 10px; }
	.wc-svea-checkout-page .bwcf-grid { gap: 14px 12px; }
	.wc-svea-checkout-page .bwcf-field { grid-column: 1 / -1; }
	.wc-svea-checkout-page .bwcf-field[data-field="house_number"],
	.wc-svea-checkout-page .bwcf-field[data-field="shipping_house_number"],
	.wc-svea-checkout-page .bwcf-field[data-field="postcode"],
	.wc-svea-checkout-page .bwcf-field[data-field="shipping_postcode"] { grid-column: span 8; }
	.wc-svea-checkout-page .bwcf-field[data-field="address_2"],
	.wc-svea-checkout-page .bwcf-field[data-field="shipping_address_2"],
	.wc-svea-checkout-page .bwcf-field[data-field="city"],
	.wc-svea-checkout-page .bwcf-field[data-field="shipping_city"] { grid-column: span 12; }
	.wc-svea-checkout-page .bwcf-title { font-size: 16px; }
	.wc-svea-checkout-page .bwcf-lock__box { top: 80px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.wc-svea-checkout-page .bwcf-field.is-loading::after { animation-duration: 2s; }
}
