.dds-order-limit-modal[hidden] {
	display: none !important;
}

.dds-order-limit-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
}

.dds-order-limit-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.58);
}

html body .dds-order-limit-modal .dds-order-limit-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 60vw;
	height: auto;
	overflow: auto;
	box-sizing: border-box;
	padding: 56px clamp(28px, 6vw, 96px);
	background: #fff;
	color: #222;
	border: 1px solid #ff008c !important;
	border-radius: 0 !important;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
	text-align: center;
}

html body .dds-order-limit-modal .dds-order-limit-modal__dialog #dds-order-limit-title {
	margin: 0 0 16px;
	color: #ff008c !important;
}

.dds-order-limit-modal__content {
	width: 100%;
	margin-bottom: 24px;
}

.dds-order-limit-modal__content > :last-child {
	margin-bottom: 0;
}

.dds-order-limit-modal__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.dds-order-limit-modal__button,
.dds-order-limit-modal__cancel {
	flex: 0 0 auto;
}

.dds-order-limit-modal__cancel,
.dds-order-limit-modal__cancel:hover,
.dds-order-limit-modal__cancel:focus {
	box-sizing: border-box;
	background: #fff !important;
	color: #ff008c !important;
	border: 1px solid #ff008c !important;
	border-radius: 0 !important;
}

.dds-order-limit-modal__cancel .elementor-button-text {
	color: #ff008c !important;
}

body.dds-order-limit-modal-open {
	overflow: hidden;
}

/* Keep the server-side validation error, but render only the DDS modal. */
body [data-dds-order-limit="1"] {
	display: none !important;
}

body .woocommerce-error:has(> [data-dds-order-limit="1"]:only-child) {
	display: none !important;
}

.dds-special-order-tab {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	gap: 7px;
	max-width: 220px;
	padding: 10px 12px;
	background: #ff008c;
	color: #fff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
	font-size: 12px;
	line-height: 1.35;
}

.dds-special-order-tab strong,
.dds-special-order-tab span {
	color: #fff;
}

.dds-special-order-tab strong {
	font-size: 13px;
}

.dds-special-order-tab button {
	margin-top: 4px;
	padding: 6px 8px;
	background: #fff;
	color: #ff008c;
	border: 0;
	cursor: pointer;
	font-size: 11px;
	line-height: 1.3;
}

body:has(.dds-special-order-tab) .woocommerce-shipping-destination,
body:has(.dds-special-order-tab) .vamtam-free-shipping-progress-bar,
body:has(.dds-special-order-tab) .free-shipping-notice,
body:has(.dds-special-order-tab) [class*="free-shipping-notice"],
body:has(.dds-special-order-tab) [class*="free_shipping_notice"] {
	display: none !important;
}

body.woocommerce-checkout:has(.dds-special-order-tab) .woocommerce-shipping-totals,
body.woocommerce-checkout:has(.dds-special-order-tab) .wc-block-components-totals-shipping,
body.woocommerce-checkout:has(.dds-special-order-tab) .wp-block-woocommerce-checkout-shipping-method-block {
	display: none !important;
}

@media (max-width: 600px) {
	.dds-special-order-tab {
		bottom: 10px;
		left: 10px;
		max-width: 200px;
	}
	.dds-order-limit-modal {
		padding: 0;
	}

	html body .dds-order-limit-modal .dds-order-limit-modal__dialog {
		width: 60vw;
		height: 50vh;
		padding: 48px 20px 28px;
	}
}
