
.wmwrm-box, .wmwrm-box * {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

.wmwrm-box {
	width: 100%;
	max-width: 840px;
	border: 1px solid #e6e8ee;
	border-radius: 18px;
	padding: 26px;
	margin: 24px 0;
	background: #fff;
	color: #1f2937;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}

.wmwrm-box-hero {
	background: #fff;
}

.wmwrm-box h2, .wmwrm-box h3, .wmwrm-box p {
	font-family: inherit;
}

.wmwrm-box h2 {
	margin: 0 0 10px;
	color: #111827;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.15;
	font-weight: 750;
	letter-spacing: -.03em;
}

.wmwrm-box h3, .wmwrm-section-title {
	margin: 24px 0 12px;
	color: #111827;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -.01em;
}

.wmwrm-form-intro {
	max-width: 680px;
	margin-bottom: 22px;
}

.wmwrm-form-intro p, .wmwrm-muted {
	margin: 0;
	color: #5f6878;
	font-size: 16px;
	line-height: 1.6;
}

.wmwrm-eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.wmwrm-field-grid, .wmwrm-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.wmwrm-lookup-form .wmwrm-field-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wmwrm-field, .wmwrm-form-card, .wmwrm-summary-card, .wmwrm-item-card {
	min-width: 0;
}

.wmwrm-form label {
	display: block;
	margin: 0 0 7px;
	color: #374151;
	font-size: 14px;
	font-weight: 650;
}

.wmwrm-form input[type="text"], .wmwrm-form input[type="email"], .wmwrm-form input[type="date"], .wmwrm-form textarea, .wmwrm-form select {
	width: 100%;
	min-height: 44px;
	border: 1px solid #d8dde6;
	border-radius: 12px;
	padding: 11px 13px;
	background: #fff;
	color: #111827;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.wmwrm-form textarea {
	min-height: 112px;
	resize: vertical;
}

.wmwrm-form input[type="text"]:focus, .wmwrm-form input[type="email"]:focus, .wmwrm-form textarea:focus, .wmwrm-form select:focus {
	outline: 0;
	border-color: #111827;
	box-shadow: 0 0 0 3px rgba(17, 24, 39, .08);
}

.wmwrm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 12px 18px;
	margin-top: 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	min-height: 44px;
}

.wmwrm-button:hover {
	transform: translateY(-1px);
}

.wmwrm-success {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.wmwrm-error {
	border-color: #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.wmwrm-summary-grid {
	margin: 18px 0 6px;
}

.wmwrm-summary-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid #e6e8ee;
	background: #fff;
	border-radius: 16px;
	padding: 15px;
}

.wmwrm-summary-card.is-highlight {
	background: #111827;
	border-color: #111827;
	color: #fff;
}

.wmwrm-summary-card.is-highlight .wmwrm-summary-meta, .wmwrm-summary-card.is-highlight .wmwrm-summary-label {
	color: rgba(255, 255, 255, .72);
}

.wmwrm-summary-label {
	color: #6b7280;
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.wmwrm-summary-card strong {
	color: inherit;
	font-size: 17px;
	font-weight: 750;
	line-height: 1.25;
}

.wmwrm-summary-meta {
	color: #64748b;
	font-size: 13px;
	line-height: 1.45;
}

.wmwrm-items-card-grid {
	display: grid;
	gap: 12px;
	margin: 0 0 18px;
}

.wmwrm-item-card {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto 170px;
	gap: 14px;
	align-items: center;
	border: 1px solid #e6e8ee;
	border-radius: 16px;
	padding: 14px;
	background: #fff;
}

.wmwrm-item-image-wrap {
	width: 72px;
	height: 72px;
	border-radius: 14px;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid #eef2f7;
	flex: 0 0 auto;
}

.wmwrm-item-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wmwrm-item-content {
	min-width: 0;
}

.wmwrm-item-topline {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 8px;
}

.wmwrm-item-topline strong {
	color: #111827;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 750;
}

.wmwrm-item-title-link {
	color: inherit !important;
	text-decoration: none !important;
}

.wmwrm-item-title-link:hover strong, .wmwrm-item-title-link:focus strong {
	color: #334155;
}

.wmwrm-item-price-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	align-self: center;
	min-width: 110px;
}

.wmwrm-item-price {
	color: #111827;
	font-size: 15px;
	font-weight: 750;
	white-space: nowrap;
}

.wmwrm-item-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.wmwrm-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.25;
}

.wmwrm-chip.is-soft {
	background: #eef2ff;
	color: #3730a3;
}

.wmwrm-item-link {
	display: inline-flex;
	align-items: center;
	color: #334155 !important;
	font-size: 13px;
	font-weight: 650;
	text-decoration: none !important;
	border-bottom: 1px solid currentColor;
	line-height: 1.25;
}

.wmwrm-item-link:hover {
	color: #111827 !important;
}

.wmwrm-item-qty-box {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
}

.wmwrm-item-qty-box select {
	width: 100%;
	min-width: 152px;
	min-height: 48px;
	padding: 11px 40px 11px 14px;
	border-radius: 14px;
	border: 1px solid #d7dee8;
	background-color: #fff;
	box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
	color: #111827;
	font-size: 15px;
	font-weight: 650;
}

.wmwrm-item-qty-box select:focus {
	border-color: #a5b4fc;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}

.wmwrm-form-card {
	border: 1px solid #e6e8ee;
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	margin-top: 12px;
}

.wmwrm-form-card > label:not(.wmwrm-checkbox) {
	color: #111827;
	font-size: 16px;
	font-weight: 750;
}

.wmwrm-checkbox {
	display: flex !important;
	gap: 10px;
	align-items: flex-start;
	padding: 7px 0;
	margin: 0;
	color: #1f2937;
	font-size: 15px !important;
	line-height: 1.45;
	font-weight: 600 !important;
}

.wmwrm-checkbox input {
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	flex: 0 0 auto;
}

.wmwrm-hp {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
}

.wmwrm-confirmation-text {
	margin: 0;
	color: #1f2937;
	font-size: 15px;
	line-height: 1.6;
}

.wmwrm-confirmation-text + .wmwrm-privacy-note {
	margin-top: 14px;
}

.wmwrm-privacy-note {
	margin-top: 12px;
	border-radius: 14px;
	padding: 12px 14px;
	background: #f8fafc;
	color: #64748b;
	font-size: 14px;
	line-height: 1.55;
}

.wmwrm-privacy-note a {
	color: #111827;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 900px) {
	.wmwrm-field-grid, .wmwrm-summary-grid, .wmwrm-lookup-form .wmwrm-field-grid {
		grid-template-columns: 1fr;
	}
	
	.wmwrm-item-card {
		grid-template-columns: 64px minmax(0, 1fr) auto;
	}
	
	.wmwrm-item-image-wrap {
		width: 64px;
		height: 64px;
	}
	
	.wmwrm-item-price-wrap {
		justify-content: flex-end;
		min-width: 90px;
	}
	
	.wmwrm-item-qty-box {
		grid-column: 1/-1;
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.wmwrm-box {
		padding: 18px;
		border-radius: 16px;
	}
	
	.wmwrm-item-card {
		grid-template-columns: 1fr;
	}
	
	.wmwrm-item-image-wrap {
		width: 78px;
		height: 78px;
	}
	
	.wmwrm-item-price-wrap, .wmwrm-item-qty-box {
		justify-content: flex-start;
	}
	
	.wmwrm-item-topline {
		flex-direction: column;
		gap: 4px;
		align-items: flex-start;
	}
}

/* Pro extension hook: only visible when an add-on marks an item as excluded. */
.wmwrm-item-excluded-box {
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
}

.wmwrm-excluded-label {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 11px;
	border-radius: 999px;
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
	font-size: 12px;
	font-weight: 750;
	line-height: 1;
}

.wmwrm-item-excluded-box small {
	color: #64748b;
	font-size: 12px;
	line-height: 1.35;
}

/* Standalone revocation button shortcode/block/widget. Form submit buttons inherit theme colors. */
.wmwrm-revocation-button-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.1;
	text-decoration: none !important;
	box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
	transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
	-webkit-appearance: none;
	appearance: none;
}

.wmwrm-revocation-button-link:hover, .wmwrm-revocation-button-link:focus {
	transform: translateY(-1px);
	box-shadow: 0 16px 34px rgba(15, 23, 42, .2);
}

.wmwrm-revocation-button-link.wmwrm-button--custom {
	border: 1px solid var(--wmwrm-button-border, #0f766e) !important;
	background: var(--wmwrm-button-bg, #0f766e) !important;
	color: var(--wmwrm-button-text, #fff) !important;
}

.wmwrm-revocation-button-link.wmwrm-button--custom:hover, .wmwrm-revocation-button-link.wmwrm-button--custom:focus {
	border-color: var(--wmwrm-button-hover-border, var(--wmwrm-button-hover-bg, var(--wmwrm-button-border, #0f766e))) !important;
	background: var(--wmwrm-button-hover-bg, var(--wmwrm-button-bg, #0f766e)) !important;
	color: var(--wmwrm-button-hover-text, var(--wmwrm-button-text, #fff)) !important;
	filter: brightness(.96);
}

.wmwrm-revocation-button-link.is-disabled {
	cursor: not-allowed;
	opacity: .58;
	transform: none;
	box-shadow: none;
}

.wmwrm_revocation_button_widget .wmwrm-revocation-button-link, .wmwrm-button-widget-link {
	width: auto;
}

/* Customer message in withdrawal form */
.wmwrm-message-card {
	margin-top: 18px;
}

.wmwrm-message-card label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.wmwrm-label-optional {
	color: #64748b;
	font-size: 13px;
	font-weight: 650;
}

.wmwrm-message-card textarea {
	min-height: 118px;
}

.wmwrm-field-help {
	margin: 8px 0 0;
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
}

/* Pro multilingual language selector */
.wmwrm-language-selector {
	display: flex;
	justify-content: flex-start;
	margin: 0 0 18px;
}

.wmwrm-language-selector__form {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(148, 163, 184, .32);
	border-radius: 14px;
	background: rgba(248, 250, 252, .86);
}

.wmwrm-language-selector label {
	margin: 0;
	color: #475569;
	font-size: 13px;
	font-weight: 750;
}

.wmwrm-language-selector select {
	min-width: 170px;
	margin: 0;
	border-radius: 10px;
}

@media (max-width: 640px) {
	.wmwrm-language-selector__form {
		width: 100%;
		align-items: stretch;
		flex-direction: column;
	}
	
	.wmwrm-language-selector select {
		width: 100%;
	}
}
