.dtc-open-popup {
	background: var(--dtc-accent, #06b667);
	border: 1px solid var(--dtc-accent, #06b667);
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-weight: 600;
	padding: 10px 18px;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.dtc-open-popup:hover,
.dtc-open-popup:focus {
	background: #059755;
	border-color: #059755;
	color: #fff;
}

.single-product form.cart .dtc-open-popup--single {
	margin-left: 10px;
	vertical-align: middle;
}

.dtc-modal {
	align-items: center;
	display: none;
	inset: 0;
	justify-content: center;
	position: fixed;
	z-index: 999999;
}

.dtc-modal[aria-hidden="false"] {
	display: flex;
}

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

.dtc-modal__backdrop {
	background: rgba(255, 255, 255, .84);
	inset: 0;
	position: absolute;
}

.dtc-modal__dialog {
	background: #fff;
	border: 1px solid #dfe5ea;
	border-radius: 6px;
	box-shadow: 0 18px 50px rgba(8, 33, 58, .12);
	box-sizing: border-box;
	color: #08213a;
	font-size: 14px;
	line-height: 1.45;
	max-height: calc(100vh - 40px);
	max-width: 930px;
	overflow-y: auto;
	padding: 20px;
	position: relative;
	width: calc(100% - 28px);
}

.dtc-modal__close {
	align-items: center;
	background: #eef3f7;
	border: 0 !important;
	border-radius: 50% !important;
	color: #08213a;
	cursor: pointer;
	display: flex;
	font-size: 24px;
	height: 34px !important;
	justify-content: center;
	line-height: 1;
	max-height: 34px !important;
	max-width: 34px !important;
	min-height: 34px !important;
	min-width: 34px !important;
	padding: 0 !important;
	position: absolute;
	right: 16px;
	top: 14px;
	width: 34px !important;
}

.dtc-modal__close:hover,
.dtc-modal__close:focus {
	background: #dfe7ef;
	outline: none;
}

.dtc-modal h2 {
	color: #08213a;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 48px 4px 0;
}

.dtc-product-line {
	color: #526476;
	margin: 0 0 16px;
}

.dtc-config-grid {
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 1fr) 1fr;
}

.dtc-config-panel,
.dtc-total-panel {
	border: 1px solid #dfe5ea;
	border-radius: 6px;
	padding: 20px;
}

.dtc-config-note {
	color: #6f7780;
	margin: 0 0 42px;
	max-width: 420px;
}

.dtc-field {
	display: block;
	margin: 0 0 24px;
}

.dtc-field span {
	color: #08213a;
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 7px;
}

.dtc-field b {
	color: #e03131;
	font-weight: 600;
}

.dtc-field input,
.dtc-field select,
.dtc-field textarea {
	background: #f8fafc;
	border: 1px solid #d8dee5;
	border-radius: 4px;
	box-shadow: none;
	box-sizing: border-box;
	color: #08213a;
	font: inherit;
	min-height: 46px;
	padding: 10px 12px;
	width: 100%;
}

.dtc-field textarea {
	display: block;
	resize: vertical;
}

.dtc-field input:focus,
.dtc-field select:focus,
.dtc-field textarea:focus {
	border-color: var(--dtc-accent, #06b667);
	outline: 1px solid var(--dtc-accent, #06b667);
}

.dtc-field small {
	color: #9aa3ad;
	display: block;
	font-size: 13px;
	margin-top: 6px;
	text-align: right;
}

.dtc-total-head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 18px;
}

.dtc-total-head strong {
	font-size: 20px;
}

.dtc-total-table__head {
	background: #dfe5ea;
	border-radius: 4px;
	display: grid;
	font-weight: 700;
	grid-template-columns: 1fr auto;
	margin-bottom: 12px;
	padding: 4px 10px;
}

.dtc-summary-row {
	border-bottom: 1px dashed #d8dee5;
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 8px 0;
}

.dtc-summary-row span {
	min-width: 0;
}

.dtc-summary-row strong {
	font-weight: 500;
	text-align: right;
	white-space: nowrap;
}

.dtc-summary-row--strong {
	border-bottom: 0;
	font-size: 19px;
	padding: 7px 0;
}

.dtc-next,
.dtc-submit {
	background: #06b667 !important;
	border: 1px solid #06b667 !important;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 700;
	margin-top: 22px;
	min-height: 42px;
	padding: 10px 18px;
	width: 100%;
}

.dtc-next:disabled,
.dtc-submit:disabled {
	cursor: wait;
	opacity: .65;
}

.dtc-next:hover,
.dtc-next:focus,
.dtc-submit:hover,
.dtc-submit:focus {
	background: #05a85e !important;
	border-color: #05a85e !important;
	color: #fff;
}

.dtc-submit__icon {
	display: inline-flex;
	height: 18px;
	width: 18px;
}

.dtc-submit__icon svg {
	display: block;
	fill: currentColor;
	height: 18px;
	width: 18px;
}

.dtc-back {
	align-items: center;
	background: #eef3f7;
	border: 1px solid #d8dee5;
	border-radius: 4px;
	color: #08213a;
	cursor: pointer;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	margin-right: 10px;
	min-height: 42px;
	padding: 10px 18px;
	vertical-align: top;
}

.dtc-details-wrap {
	border-top: 1px solid #dfe5ea;
	margin: 10px auto 0;
	max-width: 405px;
	padding-top: 22px;
}

.dtc-details-actions {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-top: 22px;
}

.dtc-details-actions .dtc-back,
.dtc-details-actions .dtc-submit {
	box-sizing: border-box;
	height: 46px;
	margin: 0 !important;
	min-height: 46px;
	vertical-align: middle;
}

.dtc-details-actions .dtc-submit {
	display: inline-flex;
	width: auto;
}

.dtc-consent {
	align-items: flex-start;
	color: #08213a;
	display: flex;
	gap: 9px;
	line-height: 1.4;
	margin: 7px 0 18px;
}

.dtc-consent input[type="checkbox"] {
	accent-color: var(--dtc-accent, #06b667);
	flex: 0 0 16px;
	height: 16px;
	margin-top: 2px;
	width: 16px;
}

.dtc-consent a {
	color: #087f4a;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dtc-form__message {
	color: #526476;
	min-height: 21px;
}

.dtc-form__message--error {
	color: #b3261e;
}

.dtc-confirmation {
	color: #08213a;
	font-size: 16px;
	line-height: 1.45;
	padding: 42px 20px;
	text-align: center;
}

.dtc-modal--confirmed .dtc-modal__dialog {
	max-width: 460px;
}

.dtc-modal--confirmed h2,
.dtc-modal--confirmed .dtc-product-line {
	display: none;
}

.dtc-hp {
	display: none !important;
}

@media (max-width: 780px) {
	.single-product form.cart .dtc-open-popup--single {
		margin: 10px 0 0;
	}

	.dtc-modal {
		align-items: stretch;
		justify-content: stretch;
	}

	.dtc-modal__backdrop {
		background: #fff;
	}

	.dtc-modal__dialog {
		border: 0;
		border-radius: 0;
		box-shadow: none;
		max-height: none;
		max-width: none;
		min-height: 100vh;
		padding: 16px;
		width: 100%;
	}

	.dtc-config-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.dtc-config-note {
		margin-bottom: 22px;
	}

	.dtc-summary-row--strong {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.dtc-modal__dialog {
		min-height: 100dvh;
		overflow-x: hidden;
		width: 100%;
	}

	.dtc-config-panel,
	.dtc-total-panel {
		box-sizing: border-box;
		min-width: 0;
		padding: 14px;
	}
}

@media (max-width: 780px) {
	@supports (-webkit-touch-callout: none) {
		.dtc-modal {
			box-sizing: border-box;
			padding: max(8px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
		}

		.dtc-modal__dialog {
			border: 1px solid #dfe5ea;
			border-radius: 6px;
			box-shadow: 0 10px 28px rgba(8, 33, 58, .08);
			max-height: calc(100dvh - 16px);
			min-height: 0;
			width: 100%;
		}

		.dtc-field input,
		.dtc-field select,
		.dtc-field textarea {
			font-size: 16px;
		}
	}
}
