.orderbyphone-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.5rem;
	z-index: 99999;
}

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

.orderbyphone-modal--visible {
	display: flex;
}

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

.orderbyphone-modal__dialog {
	position: relative;
	z-index: 1;
	background: #ffffff;
	border-radius: 12px;
	width: 100%;
	max-width: 480px;
	padding: 24px 28px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

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

.orderbyphone-modal__close:is(.btn, .button, button, [type='submit'], [type='button']) {
	position: absolute !important;
}

.orderbyphone-modal .orderbyphone-modal__close {
	right: 12px !important;
	left: auto !important;
}

.orderbyphone-modal__title {
	margin: 0 0 1rem 0;
	padding-right: 44px;
	font-size: 1.375rem;
}

.orderbyphone-lead-time {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0 0 1.25rem 0;
	padding: 0.85rem 1.15rem;
	border-radius: 5px;
	border: 1px solid #dbe6ff;
	width: 100%;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
	background: transparent;
}

.orderbyphone-lead-time__icon {
	font-size: 1.35rem;
	color: #2563eb;
}

.orderbyphone-lead-time__content {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.orderbyphone-lead-time__label {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #475569;
	font-weight: 600;
}

.orderbyphone-lead-time__value {
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
}

.orderbyphone-modal__summary {
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #222222;
}

.orderbyphone-modal__summary-name {
	margin: 0 0 0.75rem 0;
	font-weight: 600;
}

.orderbyphone-modal__summary-attributes {
	margin: 0.25rem 0;
	color: #3f3f3f;
}

.orderbyphone-modal__summary-link {
	display: none;
}

.orderbyphone-modal__field--consent {
	align-items: flex-start;
}

.orderbyphone-modal__consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.85rem;
	color: #333333;
}

.orderbyphone-modal__consent input[type='checkbox'] {
	margin-top: 0.2rem;
}

.orderbyphone-modal__form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.orderbyphone-modal__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.orderbyphone-modal__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.orderbyphone-modal__choice {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	color: #333333;
}

.orderbyphone-modal__choice input[type='radio'] {
	accent-color: #2b70ec;
}

.orderbyphone-modal__section {
	display: none;
	flex-direction: column;
	gap: 0.75rem;
}

.orderbyphone-modal__section.orderbyphone-modal__section--visible {
	display: flex;
}

.orderbyphone-modal__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #333333;
}

.orderbyphone-modal__input {
	height: 42px;
	padding: 0 12px;
	border: 1px solid #cfd4d9;
	border-radius: 6px;
	font-size: 0.95rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.orderbyphone-modal__input:focus {
	border-color: #2b70ec;
	box-shadow: 0 0 0 3px rgba(43, 112, 236, 0.15);
	outline: none;
}

.orderbyphone-modal__select {
	height: 42px;
	padding: 0 36px 0 12px;
	border: 1px solid #cfd4d9;
	border-radius: 6px;
	font-size: 0.95rem;
	background-color: #ffffff;
	background-image: linear-gradient(45deg, transparent 50%, #555555 50%), linear-gradient(135deg, #555555 50%, transparent 50%);
	background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.orderbyphone-modal__select:focus {
	border-color: #2b70ec;
	box-shadow: 0 0 0 3px rgba(43, 112, 236, 0.15);
	outline: none;
}

.orderbyphone-modal__submit {
	margin-top: 0.5rem;
	height: 44px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	background: #2b70ec;
	color: #ffffff;
	font-weight: 600;
	font-size: 1rem;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.orderbyphone-modal__submit:hover,
.orderbyphone-modal__submit:focus {
	background: #255fd0;
	box-shadow: 0 8px 18px rgba(43, 112, 236, 0.25);
	outline: none;
}

.orderbyphone-modal__submit:disabled {
	background: #a5b9ec;
	cursor: progress;
	box-shadow: none;
}

.orderbyphone-modal__feedback {
	min-height: 1.2rem;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 10px;
	border: 1px solid transparent;
	padding: 0;
	margin-top: 0.25rem;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.orderbyphone-modal__feedback::before {
	display: none;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 999px;
	font-size: 0.9rem;
	flex-shrink: 0;
}

.orderbyphone-modal__feedback.is-visible {
	opacity: 1;
	transform: translateY(0);
	padding: 0.75rem 1rem;
}

.orderbyphone-modal__feedback.is-visible::before {
	display: inline-flex;
}

.orderbyphone-modal__feedback.is-success {
	color: #0f5132;
	background: #d7f5e7;
	border-color: rgba(45, 160, 109, 0.45);
	box-shadow: 0 12px 28px rgba(16, 185, 129, 0.18);
}

.orderbyphone-modal__feedback.is-success::before {
	content: '✓';
	background: #2bb679;
	color: #ffffff;
}

.orderbyphone-modal__feedback.is-error {
	color: #842029;
	background: #fde2e1;
	border-color: rgba(220, 53, 69, 0.45);
	box-shadow: 0 12px 28px rgba(220, 53, 69, 0.18);
}

.orderbyphone-modal__feedback.is-error::before {
	content: '!';
	background: #dc3545;
	color: #ffffff;
	font-weight: 700;
}

body.orderbyphone-modal-open {
	overflow: hidden;
}

.orderbyphone-modal__dialog,
.orderbyphone-modal__form,
.orderbyphone-modal__summary {
	width: 100%;
	box-sizing: border-box;
}

.orderbyphone-modal__summary-attributes {
	white-space: pre-line;
}

.orderbyphone-hidden-native {
	display: none !important;
}

.orderbyphone-cart-has-popup {
	position: relative;
}

.orderbyphone-price-hidden .summary .price,
.orderbyphone-price-hidden .summary .woocommerce-variation-price,
.orderbyphone-price-hidden .summary .woocommerce-variation-price .price {
	display: none !important;
}

@media (max-width: 640px) {
	.orderbyphone-modal {
		align-items: flex-start;
		padding: 1.5rem 1rem;
	}

	.orderbyphone-modal__dialog {
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 20px;
		border-radius: 12px;
	}

	.orderbyphone-modal__close {
		top: 10px;
		right: 10px;
	}

	.orderbyphone-modal .orderbyphone-modal__close {
		right: 10px !important;
		left: auto !important;
	}

	.orderbyphone-modal__summary-name {
		font-size: 1.1rem;
	}

	.orderbyphone-modal__form {
		gap: 0.7rem;
	}

	.orderbyphone-modal__input,
	.orderbyphone-modal__select {
		height: 44px;
	}

	.orderbyphone-modal__submit {
		height: 48px;
		font-size: 1.05rem;
	}

	.orderbyphone-lead-time {
		margin-bottom: 1rem;
		padding: 0.8rem 0.95rem;
		border-radius: 5px;
	}

	.orderbyphone-lead-time__value {
		font-size: 0.96rem;
	}
}

@media (max-width: 420px) {
	.orderbyphone-modal {
		padding: 1.25rem 0.75rem;
	}

	.orderbyphone-modal__dialog {
		padding: 18px;
		border-radius: 10px;
	}

	.orderbyphone-modal__title {
		font-size: 1.2rem;
	}

	.orderbyphone-modal__summary {
		font-size: 0.9rem;
	}

	.orderbyphone-modal__label {
		font-size: 0.8rem;
	}

	.orderbyphone-lead-time__label {
		font-size: 0.66rem;
	}

	.orderbyphone-lead-time__icon {
		font-size: 1.18rem;
	}

	.orderbyphone-modal__consent {
		font-size: 0.8rem;
		flex-wrap: wrap;
	}
}

