.wcw-button,
.wcw-form .wcw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border: none;
	border-radius: var(--wcw-btn-radius, 6px);
	background: var(--wcw-btn-bg, #2271b1);
	color: var(--wcw-btn-text, #fff);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease;
}

.wcw-button:hover,
.wcw-button:focus {
	background: var(--wcw-btn-hover, #135e96);
	color: var(--wcw-btn-text, #fff);
}

.wcw-button--secondary {
	background: #f6f7f7;
	color: #1d2327;
	border: 1px solid #c3c4c7;
}

.wcw-button--secondary:hover {
	background: #ececec;
	color: #1d2327;
}

.wcw-footer-button {
	text-align: center;
	padding: 16px 0;
}

.wcw-floating {
	position: fixed;
	z-index: var(--wcw-floating-z, 999999);
	pointer-events: none;
}

.wcw-floating .wcw-button {
	pointer-events: auto;
	position: relative;
	z-index: 1;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.wcw-button--floating {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	max-width: min(100%, 320px);
	white-space: nowrap;
}

.wcw-button--has-icon .wcw-button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.wcw-button__icon-svg {
	display: block;
}

.wcw-button__icon-custom {
	font-size: 18px;
	line-height: 1;
}

.wcw-button__label {
	line-height: 1.2;
}

a.wcw-button {
	display: inline-flex;
}

.wcw-floating--bottom-right {
	right: 20px;
	bottom: 20px;
}

.wcw-floating--bottom-left {
	left: 20px;
	bottom: 20px;
}

.wcw-myaccount-button {
	margin-bottom: 24px;
}

.wcw-modal[hidden] {
	display: none !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

.wcw-modal {
	position: fixed;
	inset: 0;
	z-index: var(--wcw-modal-z, 1000000);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

body.wcw-modal-open .wcw-floating {
	visibility: hidden;
	pointer-events: none !important;
}

.wcw-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.wcw-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	font-size: var(--wcw-modal-text-size, 14px);
	line-height: 1.5;
	color: #1d2327;
}

.wcw-inline-form {
	font-size: var(--wcw-modal-text-size, 14px);
	line-height: 1.5;
	color: #1d2327;
}

.wcw-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #646970;
}

.wcw-modal__title,
.wcw-step-title {
	margin: 0 0 12px;
	font-size: var(--wcw-modal-heading-size, 18px) !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #1d2327;
}

.wcw-modal__section-title,
.wcw-items-panel__section .wcw-modal__section-title {
	margin: 0 0 12px;
	font-size: var(--wcw-modal-section-heading-size, 15px) !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #1d2327;
}

.wcw-form__header {
	margin: 0 0 20px;
	font-size: var(--wcw-modal-text-size, 14px);
	line-height: 1.55;
	color: #50575e;
}

.wcw-form__header > :first-child {
	margin-top: 0;
}

.wcw-form__header > :last-child {
	margin-bottom: 0;
}

.wcw-form__header h1,
.wcw-form__header h2,
.wcw-form__header h3,
.wcw-form__header h4,
.wcw-form__header h5,
.wcw-form__header h6 {
	margin: 0 0 12px;
	font-size: var(--wcw-modal-heading-size, 18px) !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #1d2327;
}

.wcw-form__header h4,
.wcw-form__header h5,
.wcw-form__header h6 {
	font-size: var(--wcw-modal-section-heading-size, 15px) !important;
}

.wcw-form__header p {
	margin: 0 0 12px;
	font-size: var(--wcw-modal-text-size, 14px);
	font-weight: 400;
}

.wcw-form__header p:last-child {
	margin-bottom: 0;
}

.wcw-form__header strong {
	font-weight: 600;
	color: #1d2327;
}

.wcw-form__header ul,
.wcw-form__header ol {
	margin: 0 0 12px;
	padding-left: 1.4em;
}

.wcw-form__header a {
	color: var(--wcw-btn-bg, #2271b1);
}

.wcw-b2b-notice {
	padding: 4px 0 0;
}

.wcw-b2b-notice__content {
	margin: 0 0 20px;
	font-size: var(--wcw-modal-text-size, 14px);
	line-height: 1.55;
	color: #50575e;
}

.wcw-b2b-notice__content > :first-child {
	margin-top: 0;
}

.wcw-b2b-notice__content h1,
.wcw-b2b-notice__content h2,
.wcw-b2b-notice__content h3,
.wcw-b2b-notice__content h4,
.wcw-b2b-notice__content h5,
.wcw-b2b-notice__content h6 {
	margin: 0 0 12px;
	font-size: var(--wcw-modal-heading-size, 18px) !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #1d2327;
}

.wcw-b2b-notice__content p {
	margin: 0 0 12px;
	font-size: var(--wcw-modal-text-size, 14px);
	font-weight: 400;
}

.wcw-b2b-notice__content p:last-child {
	margin-bottom: 0;
}

.wcw-b2b-notice__content a {
	color: var(--wcw-btn-bg, #2271b1);
}

.wcw-legal-notice__content {
	margin: 0 0 20px;
	font-size: var(--wcw-modal-text-size, 14px);
	line-height: 1.55;
	color: #50575e;
}

.wcw-legal-notice__content > :first-child {
	margin-top: 0;
}

.wcw-legal-notice__content h1,
.wcw-legal-notice__content h2,
.wcw-legal-notice__content h3,
.wcw-legal-notice__content h4,
.wcw-legal-notice__content h5,
.wcw-legal-notice__content h6 {
	margin: 0 0 12px;
	font-size: var(--wcw-modal-heading-size, 18px) !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #1d2327;
}

.wcw-legal-notice__content p {
	margin: 0 0 12px;
}

.wcw-legal-notice__items {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
}

.wcw-legal-notice__items ul {
	margin: 8px 0 0;
	padding-left: 1.2em;
}

.wcw-legal-notice__more {
	margin-top: 16px;
	color: #50575e;
	font-size: 13px;
}

.wcw-modal--b2b .wcw-modal__dialog {
	max-width: 560px;
}

.wcw-inline-form--b2b {
	padding: 20px 22px;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	background: #fff;
}

.wcw-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.wcw-form__field > label:not(.wcw-checkbox) {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
}

.wcw-form__field input:not([type="checkbox"]):not([type="radio"]),
.wcw-form__field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	font-size: 16px;
}

.wcw-form__field--full {
	grid-column: 1 / -1;
}

.wcw-form__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.wcw-modal .wcw-form__actions {
	flex-direction: column;
}

.wcw-modal .wcw-form__actions .wcw-button {
	width: 100%;
}

.wcw-form__actions--full .wcw-button {
	width: 100%;
}

.wcw-form__message {
	margin-top: 12px;
	padding: 12px;
	border-radius: 6px;
	font-size: 14px;
}

.wcw-form__message.is-error {
	background: #fcf0f1;
	color: #8a2424;
	border: 1px solid #f1c5c8;
}

.wcw-form__message.is-success {
	background: #edfaef;
	color: #007017;
	border: 1px solid #b8e6bf;
}

.wcw-form__honeypot {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.wcw-checkbox {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	margin: 12px 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	width: 100%;
	cursor: pointer;
}

.wcw-form__field label.wcw-checkbox,
.wcw-inline-form .wcw-checkbox {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	margin-bottom: 0;
	font-weight: 400;
}

.wcw-checkbox input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px !important;
	min-width: 18px;
	height: 18px;
	margin: 3px 0 0 !important;
	padding: 0 !important;
	border-radius: 4px;
	accent-color: var(--wcw-btn-bg, #2271b1);
}

.wcw-checkbox > span {
	flex: 1 1 auto;
	min-width: 0;
}

.wcw-checkbox a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wcw-checkbox a:hover,
.wcw-checkbox a:focus {
	opacity: 0.85;
}

.wcw-confirm-summary {
	background: #f6f7f7;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.6;
}

.wcw-confirm-summary .wcw-order-summary {
	margin-bottom: 12px;
	background: #fff;
	border-color: #e2e8f0;
}

.wcw-confirm-items {
	margin-top: 12px;
}

.wcw-confirm-items ul {
	margin: 8px 0 0;
	padding-left: 18px;
}

.wcw-confirm-items--muted {
	color: #9a3412;
}

.wcw-inline-form {
	margin-top: 20px;
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	background: #fff;
}

.wcw-progress-panel {
	margin: 0 0 24px;
	padding: 16px 12px;
	border-radius: 10px;
	background: var(--wcw-progress-panel-bg, #f8fafc);
}

.wcw-progress {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wcw-progress__step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
	position: relative;
}

.wcw-progress__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 14px;
	left: calc(50% + 18px);
	width: calc(100% - 36px);
	height: 2px;
	background: var(--wcw-progress-connector, #e2e8f0);
	z-index: 0;
}

.wcw-progress__step.is-complete:not(:last-child)::after {
	background: var(--wcw-progress-connector-active, #2271b1);
}

.wcw-progress__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--wcw-progress-bg, #e2e8f0);
	color: var(--wcw-progress-number, #64748b);
	font-size: 13px;
	font-weight: 700;
	position: relative;
	z-index: 1;
}

.wcw-progress__step.is-active .wcw-progress__number,
.wcw-progress__step.is-complete .wcw-progress__number {
	background: var(--wcw-progress-active, #2271b1);
	color: var(--wcw-progress-number-active, #fff);
}

.wcw-progress__label {
	font-size: 12px;
	color: var(--wcw-progress-text, #64748b);
	line-height: 1.3;
}

.wcw-progress__step.is-active .wcw-progress__label,
.wcw-progress__step.is-complete .wcw-progress__label {
	color: var(--wcw-progress-text-active, #1d2327);
	font-weight: 600;
}

.wcw-form__intro {
	margin: 0 0 20px;
	font-size: var(--wcw-modal-text-size, 14px);
	line-height: 1.55;
	color: #50575e;
}

.wcw-form__intro p {
	margin: 0 0 10px;
}

.wcw-form__intro p:last-child {
	margin-bottom: 0;
}

.wcw-form__title {
	margin: 0 0 16px;
	font-size: var(--wcw-modal-heading-size, 18px);
}

.wcw-order-summary {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
	padding: 14px 16px;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	background: #eff6ff;
}

.wcw-order-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: var(--wcw-modal-text-size, 14px);
}

.wcw-order-summary__label {
	color: #475569;
	font-weight: 600;
}

.wcw-order-summary__value {
	color: #0f172a;
	text-align: right;
}

.wcw-items-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 14px;
}

.wcw-items-toolbar__sep {
	color: #94a3b8;
}

.wcw-link-button {
	padding: 0;
	border: none;
	background: none;
	color: #2271b1;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wcw-link-button:hover,
.wcw-link-button:focus {
	color: #135e96;
}

.wcw-items-panel {
	margin: 16px 0;
}

.wcw-items-panel__section {
	margin-bottom: 16px;
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
}

.wcw-items-panel__section--muted {
	background: #fff7ed;
	border-color: #fed7aa;
}

.wcw-items-panel__section .wcw-field__desc {
	margin: 0 0 12px;
	font-size: var(--wcw-modal-text-size, 14px);
	font-weight: 400;
	color: #64748b;
}

.wcw-step-intro,
.wcw-step-text {
	margin: 0 0 16px;
	font-size: var(--wcw-modal-text-size, 14px) !important;
	font-weight: 400 !important;
	line-height: 1.5;
	color: #475569;
}

.wcw-items-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
	font-size: var(--wcw-modal-text-size, 14px);
	font-weight: 400;
	line-height: 1.5;
}

.wcw-item-choice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #e2e8f0;
	cursor: pointer;
}

.wcw-item-choice__image {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid #e2e8f0;
}

.wcw-item-choice__image--placeholder {
	display: inline-block;
}

.wcw-item-choice__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.wcw-item-choice__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: #64748b;
}

.wcw-item-choice__price {
	font-weight: 600;
	color: #0f172a;
}

.wcw-item-choice:last-child {
	border-bottom: none;
}

.wcw-item-choice input {
	margin-top: 3px;
}

.wcw-item-choice__label {
	font-size: 15px;
	line-height: 1.4;
}

.wcw-item-static {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	font-size: 14px;
	color: #9a3412;
	border-bottom: 1px solid #fed7aa;
}

.wcw-item-static__image {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid #fed7aa;
}

.wcw-item-static__image--placeholder {
	display: inline-block;
	background: #fff7ed;
}

.wcw-item-static__content {
	flex: 1;
	min-width: 0;
}

.wcw-item-static__name {
	margin: 0;
	font-weight: 600;
	color: #9a3412;
}

.wcw-item-static__price {
	font-weight: 400;
	color: #c2410c;
}

.wcw-item-static__reason {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #7c2d12;
}

.wcw-item-static__reason-label {
	font-weight: 600;
}

.wcw-item-static__reason-inline,
.wcw-confirm-items .wcw-item-static__reason-inline {
	display: inline-block;
	margin-top: 4px;
	font-size: 13px;
	color: #9a3412;
}

.wcw-item-static:last-child {
	border-bottom: none;
}

.wcw-confirm-summary ul {
	margin: 8px 0 0;
	padding-left: 18px;
}

.required {
	color: #d63638;
}

@media (min-width: 601px) {
	.wcw-floating--desktop-icon_only .wcw-button__label {
		display: none;
	}

	.wcw-floating--desktop-icon_only .wcw-button {
		padding: 12px;
		min-width: 48px;
		min-height: 48px;
	}

	.wcw-floating--desktop-text .wcw-button__icon {
		display: none;
	}
}

@media (max-width: 600px) {
	.wcw-form__grid {
		grid-template-columns: 1fr;
	}

	.wcw-floating--bottom-right,
	.wcw-floating--bottom-left {
		bottom: var(--wcw-floating-mobile-bottom, 72px);
	}

	.wcw-floating--bottom-right {
		right: var(--wcw-floating-mobile-side, 12px);
		left: auto;
	}

	.wcw-floating--bottom-left {
		left: var(--wcw-floating-mobile-side, 12px);
		right: auto;
	}

	.wcw-floating--mobile-full_width {
		left: var(--wcw-floating-mobile-side, 12px);
		right: var(--wcw-floating-mobile-side, 12px);
	}

	.wcw-floating--mobile-full_width .wcw-button {
		width: 100%;
		max-width: none;
	}

	.wcw-floating--mobile-icon_only .wcw-button__label {
		display: none;
	}

	.wcw-floating--mobile-icon_only .wcw-button {
		padding: 12px;
		min-width: 48px;
		min-height: 48px;
		width: auto;
	}

	.wcw-floating--mobile-text .wcw-button__icon {
		display: none;
	}

	.wcw-floating--mobile-text .wcw-button,
	.wcw-floating--mobile-icon_text .wcw-button {
		width: auto;
		max-width: calc(100vw - 96px);
	}

	.wcw-modal {
		align-items: flex-start;
		justify-content: center;
		padding-top: max(12px, env(safe-area-inset-top, 0px));
		padding-right: max(12px, env(safe-area-inset-right, 0px));
		padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
		padding-left: max(12px, env(safe-area-inset-left, 0px));
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	.wcw-modal__dialog {
		max-height: none;
		margin: 0 auto;
		padding-top: 40px;
		flex: 0 0 auto;
	}

	.wcw-modal__close {
		top: 8px;
		right: 8px;
		z-index: 2;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}
}
