:root {
	--sdl-accent: #d6b478;
	--sdl-accent-dark: #bb995f;
	--sdl-text: #545454;
	--sdl-text-strong: #3f3f3f;
	--sdl-surface: #efede8;
	--sdl-surface-soft: #f8f6f2;
	--sdl-border: #d7d2c7;
}

.sdl-modal-open {
	overflow: hidden;
}

.sdl-launcher,
.sdl-launcher *,
.sdl-modal,
.sdl-modal * {
	box-sizing: border-box;
}

.sdl-launcher {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99980;
	display: block;
}

.sdl-launcher__panel {
	background: var(--sdl-surface);
	border: 1px solid var(--sdl-border);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	padding: 14px 16px;
	min-width: 266px;
}

.sdl-launcher__action {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	padding: 2px 0;
	margin: 0;
	color: var(--sdl-text-strong);
	font-size: 20px;
	line-height: 1.2;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
	transition: color 0.2s ease;
}

.sdl-launcher__action + .sdl-launcher__action {
	margin-top: 8px;
}

.sdl-launcher__icon {
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: var(--sdl-accent-dark);
}

.sdl-launcher__icon svg {
	width: 16px;
	height: 16px;
}

.sdl-launcher__action:hover,
.sdl-launcher__action:focus {
	color: var(--sdl-accent-dark);
}

.sdl-trigger-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border: 1px solid var(--sdl-accent-dark);
	background: var(--sdl-accent);
	color: #252525;
	border-radius: 6px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.sdl-trigger-btn:hover,
.sdl-trigger-btn:focus {
	background: var(--sdl-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.sdl-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.sdl-modal.is-active {
	display: flex;
}

.sdl-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(33, 28, 21, 0.6);
}

.sdl-modal__dialog {
	position: relative;
	width: min(920px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	border-radius: 12px;
	background: var(--sdl-surface-soft);
	border: 1px solid var(--sdl-border);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
	padding: 24px;
}

.sdl-modal__title {
	margin: 0 0 20px;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--sdl-accent-dark);
}

.sdl-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: #dfdbd2;
	color: #3d3d3d;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.sdl-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.sdl-form__grid .sdl-field[data-field-wrap="phone"] {
	grid-column: 1 / -1;
}

.sdl-field {
	margin-bottom: 14px;
}

.sdl-field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--sdl-text);
}

.sdl-field__input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--sdl-border);
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.3;
	background: #fff;
	color: var(--sdl-text-strong);
}

.sdl-field__textarea {
	resize: vertical;
	min-height: 100px;
}

.sdl-field.is-invalid .sdl-field__input {
	border-color: #cf3535;
}

.sdl-field__input:focus {
	outline: none;
	border-color: var(--sdl-accent-dark);
	box-shadow: 0 0 0 2px rgba(214, 180, 120, 0.2);
}

.sdl-form__section {
	border: 1px solid var(--sdl-border);
	border-radius: 10px;
	padding: 14px;
	margin: 8px 0 16px;
	background: rgba(255, 255, 255, 0.55);
}

.sdl-form__section legend {
	padding: 0 6px;
	font-weight: 700;
	color: var(--sdl-accent-dark);
}

.sdl-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: stretch;
}

.sdl-product {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--sdl-border);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.75);
	min-height: 118px;
}

.sdl-products .sdl-product:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.sdl-product__check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--sdl-text-strong);
	font-weight: 500;
}

.sdl-product__check input[type="checkbox"] {
	margin-top: 3px;
}

.sdl-product__qty-wrap {
	padding-left: 0;
	margin-top: auto;
	width: 100%;
}

.sdl-product__qty {
	width: 100%;
	max-width: 100%;
}

.sdl-product__qty:disabled {
	background: #f2efea;
	color: #8b857b;
}

.sdl-product .sdl-error {
	min-height: 0;
	margin: 0;
}

.sdl-dropzone {
	border: 1px dashed var(--sdl-accent-dark);
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.sdl-dropzone.is-dragover {
	border-color: var(--sdl-accent-dark);
	background: #f6f0e3;
}

.sdl-dropzone p {
	margin: 0;
	color: var(--sdl-text);
	font-size: 0.95rem;
}

.sdl-dropzone__input {
	display: none;
}

.sdl-file-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.sdl-file-item {
	display: inline-flex;
	padding: 4px 10px;
	font-size: 0.85rem;
	border-radius: 999px;
	background: #e9e1d2;
	color: #4c463d;
}

.sdl-consents {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

.sdl-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.92rem;
}

.sdl-consent a {
	color: var(--sdl-accent-dark);
	text-decoration: underline;
}

.sdl-error {
	margin: 6px 0 0;
	font-size: 0.82rem;
	color: #be2525;
	min-height: 1em;
}

.sdl-error--form {
	margin-top: 8px;
}

.sdl-form__notice {
	margin-top: 12px;
	padding: 0;
	font-size: 0.92rem;
}

.sdl-form__notice.is-success {
	color: #1e6b35;
}

.sdl-form__notice.is-error {
	color: #be2525;
}

.sdl-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 10px;
	padding: 12px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--sdl-accent);
	color: #242424;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.sdl-submit-btn:hover,
.sdl-submit-btn:focus {
	background: var(--sdl-accent-dark);
	color: #fff;
}

.sdl-submit-btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.sdl-form.is-loading {
	opacity: 0.9;
}

@media (max-width: 782px) {
	.sdl-launcher {
		left: auto;
		right: 12px;
		bottom: 12px;
		padding-bottom: 0;
	}

	.sdl-launcher__panel {
		min-width: 220px;
		width: auto;
		padding: 10px 12px;
		background: var(--sdl-surface);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
		display: block;
	}

	.sdl-launcher__action {
		justify-content: flex-start;
		padding: 2px 0;
		background: transparent;
		color: var(--sdl-text-strong);
		font-size: 20px;
		font-weight: 500;
		gap: 8px;
		line-height: 1.2;
		text-align: left;
	}

	.sdl-launcher__action + .sdl-launcher__action {
		margin-top: 0;
	}

	.sdl-launcher__icon {
		width: 16px;
		height: 16px;
	}

	.sdl-launcher__icon svg {
		width: 15px;
		height: 15px;
	}

	.sdl-modal {
		padding: 10px;
	}

	.sdl-modal__dialog {
		padding: 18px 14px;
		max-height: calc(100vh - 20px);
	}

	.sdl-form__grid,
	.sdl-products {
		grid-template-columns: 1fr;
	}

	.sdl-form__grid .sdl-field[data-field-wrap="phone"] {
		grid-column: auto;
	}

	.sdl-product__qty-wrap {
		padding-left: 0;
	}
}
