.bdof-order-form-wrap {
	direction: rtl;
	margin: 22px 0 18px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

.bdof-order-form {
	box-sizing: border-box;
	border: 1.5px dashed #8f96a1;
	border-radius: 14px;
	padding: 18px 18px 16px;
	background: #fff;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}


.bdof-title {
	font-size: 15px;
	font-weight: 800;
	text-align: center;
	margin: 0 0 16px;
	color: #171717;
}

.bdof-field {
	position: relative;
	margin-bottom: 10px;
	min-width: 0;
	max-width: 100%;
}

.bdof-field input,
.bdof-field select,
.bdof-field textarea {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	border: 1px solid #f0f1f3 !important;
	border-radius: 11px !important;
	background: #f9fafc !important;
	color: #1f2937 !important;
	font-family: inherit !important;
	font-size: 13px !important;
	box-shadow: none !important;
	outline: none !important;
	transition: border-color .15s ease, background-color .15s ease;
}

.bdof-field input,
.bdof-field select {
	height: 44px !important;
	padding: 0 42px 0 13px !important;
}

.bdof-field textarea {
	min-height: 92px !important;
	resize: vertical;
	padding: 13px 14px !important;
}

.bdof-field input:focus,
.bdof-field select:focus,
.bdof-field textarea:focus {
	border-color: #d3d7de !important;
	background: #fff !important;
}

.bdof-field input::placeholder,
.bdof-field textarea::placeholder {
	color: #718096;
	opacity: 1;
}

.bdof-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	font-size: 16px;
	line-height: 1;
	color: #7890ad;
	pointer-events: none;
}

.bdof-address-field textarea {
	padding-right: 14px !important;
}

.bdof-summary {
	padding: 2px 2px 7px;
}

.bdof-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 31px;
	font-size: 13px;
	color: #4b5563;
}

.bdof-summary-row strong {
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 800;
}

.bdof-summary-row strong .woocommerce-Price-amount,
.bdof-summary-row strong .woocommerce-Price-currencySymbol {
	font: inherit;
	color: inherit;
}

#bdof-shipping-value.bdof-free {
	color: #16a34a !important;
	font-weight: 900;
	background: #ecfdf3;
	border: 1px solid #bbf7d0;
	padding: 4px 9px;
	border-radius: 999px;
}

#bdof-shipping-value.bdof-unavailable {
	color: #c62828 !important;
}

.bdof-total-row strong {
	font-size: 14px;
}

.bdof-submit {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-height: 43px;
	border: 1px solid #e10600 !important;
	border-radius: 999px !important;
	background: #e10600 !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	box-shadow: none !important;
	margin-top: 4px;
	transition: background-color .15s ease, color .15s ease;
}

.bdof-submit:hover,
.bdof-submit:focus {
	background: #fff !important;
	color: #e10600 !important;
	border-color: #e10600 !important;
}

.bdof-submit:disabled {
	cursor: wait;
	opacity: .7;
}

.bdof-message {
	display: none;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	margin: 8px 0;
	padding: 9px 11px;
	border-radius: 9px;
}

.bdof-message.bdof-error,
.bdof-message.bdof-success {
	display: block;
}

.bdof-message.bdof-error {
	color: #b42318;
	background: #fff1f0;
}

.bdof-message.bdof-success {
	color: #157a38;
	background: #ecfdf3;
}

.bdof-honeypot {
	position: fixed !important;
	inset: 0 auto auto 0 !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

@media (max-width: 767px) {
	.bdof-order-form {
		padding: 15px 13px 14px;
		border-radius: 12px;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
	.bdof-title { font-size: 14px; }
	/* iOS Safari zooms focused form controls when their computed font is below 16px. */
	.bdof-field input,
	.bdof-field select,
	.bdof-field textarea {
		font-size: 16px !important;
		min-width: 0 !important;
		max-width: 100% !important;
		touch-action: manipulation;
	}
}

/* Never show the direct-order form inside theme/plugin sticky add-to-cart bars.
   The form remains only in its normal product-page position. */
body.single-product .ast-sticky-add-to-cart .bdof-order-form-wrap,
body.single-product .ast-sticky-add-to-cart-wrapper .bdof-order-form-wrap,
body.single-product .ast-sticky-add-to-cart-action-wrap .bdof-order-form-wrap,
body.single-product .sticky-add-to-cart .bdof-order-form-wrap,
body.single-product .woocommerce-sticky-add-to-cart .bdof-order-form-wrap,
body.single-product .wd-sticky-btn .bdof-order-form-wrap,
body.single-product .wd-sticky-add-to-cart .bdof-order-form-wrap,
body.single-product [class*="sticky-add-to-cart"] .bdof-order-form-wrap,
body.single-product [class*="sticky_add_to_cart"] .bdof-order-form-wrap,
body.single-product [id*="sticky-add-to-cart"] .bdof-order-form-wrap,
body.single-product [id*="sticky_add_to_cart"] .bdof-order-form-wrap {
	display: none !important;
}

/* Clear, lightweight inline SVG icons. */
.bdof-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

/* Phone placeholder stays RTL/right like the rest of the form.
   Once the customer types, the number is shown naturally LTR from the left. */
.bdof-phone-input {
	direction: rtl !important;
	text-align: right !important;
}
.bdof-phone-input.bdof-has-value {
	direction: ltr !important;
	text-align: left !important;
	padding-left: 13px !important;
	padding-right: 42px !important;
}
.bdof-phone-input.bdof-phone-invalid {
	border-color: #e5484d !important;
}
.bdof-field-error {
	display: none;
	margin: 5px 4px 0;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.45;
	color: #b42318;
	text-align: right;
}
.bdof-field-error.bdof-visible {
	display: block;
}

/* Address now uses the location-pin icon too. */
.bdof-address-field textarea {
	padding-right: 42px !important;
}
.bdof-textarea-icon {
	top: 15px;
	transform: none;
}

/* Optional notes field uses the same stable textarea layout as the address field. */
.bdof-notes-field textarea {
	min-height: 72px !important;
	padding-right: 42px !important;
}

