/**
 * نمط صفحة طلب النطاق — خلفية زرقاء مثل صفحة الدفع + بطاقة النموذج.
 * RTL — حاسبات
 */
.hasbat-domain-order-wrap {
	background-color: #3b6cec;
	padding: 72px 0 96px;
	min-height: 46vh;
	/* صورة التدرج تُضاف من PHP (inline) لتطابق صفحة الدفع */
}

.hasbat-domain-order-inner {
	max-width: 800px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.98);
	border-radius: 10px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
	padding: 2rem 1.75rem;
	color: #204056;
}

.hasbat-domain-order-inner h1 {
	font-size: 1.65rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	color: #122d3e;
}

.hasbat-domain-order-inner .hasbat-dc-lead {
	font-size: 0.95rem;
	color: #5a6b78;
	margin: 0 0 1.25rem;
}

.hasbat-domain-order-inner .hasbat-dc-domain {
	font-size: 1.1rem;
	font-weight: 600;
	word-break: break-all;
	color: #c51e3a;
	margin: 0 0 1.25rem;
	padding: 0.65rem 0.85rem;
	background: #f3f5f9;
	border-radius: 6px;
	border: 1px solid #e2e8ef;
}

.hasbat-domain-order-inner .hasbat-dc-domain-note {
	font-size: 0.95rem;
	color: #204056;
	margin: 0 0 1.25rem;
}

.hasbat-domain-order-wrap.hasbat-domain-order--search .hasbat-domain-order-inner {
	max-width: 960px;
}

/* صفحة خطأ /h/error/404 — هيدر وفوتر القالب */
.hasbat-h-error-wrap .hasbat-h-error-inner {
	text-align: center;
	max-width: 32rem;
	margin: 0 auto;
}

.hasbat-h-error-code {
	font-size: 3.75rem;
	font-weight: 800;
	line-height: 1;
	margin: 0 0 0.35rem;
	color: #c51e3a;
	opacity: 0.35;
	letter-spacing: 0.02em;
}

.hasbat-h-error-title {
	font-size: 1.5rem;
	margin: 0 0 0.75rem;
	color: #122d3e;
}

.hasbat-h-error-lead {
	margin-bottom: 1.25rem !important;
}

.hasbat-h-error-actions {
	margin: 0;
	font-size: 0.95rem;
}

.hasbat-h-error-sep {
	margin: 0 0.35rem;
	color: #8b9aad;
}

.hasbat-dc-search-embed .hasbat-dc-search-title {
	margin-top: 0;
}

.hasbat-dc-search-embed .hasbat-dc-suggestions-heading {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.65rem;
	color: #122d3e;
}

.hasbat-domain-order--search .hasbat-dc-search-embed .extensions-block {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.65rem;
	margin-bottom: 0.75rem;
}

.hasbat-domain-order--search .hasbat-dc-search-embed .extensions-block a.block {
	text-decoration: none;
	color: inherit;
}

/* أثناء AJAX يعطّل Phox الزر مؤقتاً — wait بدل not-allowed الافتراضي */
.hasbat-dc-search-embed .domain-search-area-main button#wdes-search[disabled] {
	cursor: wait;
	opacity: 0.88;
}

.hasbat-dc-domain-hint-text {
	font-size: 0.88rem;
	color: #5a6b78;
	margin: 0.5rem 0 0.75rem;
	line-height: 1.45;
}

/* دمج صندوق البحث مع ستايل Elementor للصفحة الرئيسية */
.hasbat-domain-order--search .hasbat-dc-search-embed .elementor-widget-container {
	width: 100%;
	max-width: 100%;
}

/* صندوق الأسعار */
.hasbat-dc-pricing {
	background: linear-gradient(135deg, #f0f5fb 0%, #e8f0fa 100%);
	border: 1px solid #c5d4e8;
	border-radius: 8px;
	padding: 1rem 1.1rem;
	margin-bottom: 1.35rem;
	font-size: 0.92rem;
	color: #204056;
}

.hasbat-dc-pricing-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.35rem 0;
	border-bottom: 1px dashed #c8d6e0;
}

.hasbat-dc-pricing-row:last-of-type {
	border-bottom: none;
}

.hasbat-dc-pricing-row span:first-child {
	color: #5a6b78;
}

.hasbat-dc-pricing-row span:last-child {
	font-weight: 600;
	white-space: nowrap;
	direction: ltr;
	text-align: left;
}

.hasbat-dc-pricing-total {
	margin-top: 0.5rem;
	padding-top: 0.65rem;
	border-top: 2px solid #274961;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
	font-size: 1.05rem;
	color: #122d3e;
}

.hasbat-dc-pricing-total span:last-child {
	direction: ltr;
}

.hasbat-dc-pricing-total--pending #hasbat-dc-line-total {
	opacity: 0.45;
}

.hasbat-dc-field-billing .hasbat-dc-label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	color: #204056;
}

.hasbat-dc-billing-options {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.hasbat-dc-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	font-weight: 500;
	color: #204056;
}

.hasbat-dc-radio input {
	width: auto;
	margin: 0;
	accent-color: #274961;
}

.hasbat-dc-pricing-note {
	margin: 0.65rem 0 0;
	font-size: 0.78rem;
	color: #6b7c8d;
	line-height: 1.5;
}

.hasbat-dc-form .hasbat-dc-field {
	margin-bottom: 1.1rem;
}

.hasbat-dc-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
	color: #204056;
}

.hasbat-dc-form input[type="text"],
.hasbat-dc-form input[type="email"],
.hasbat-dc-form input[type="tel"],
.hasbat-dc-form select,
.hasbat-dc-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid #d8dde6;
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.95rem;
	color: #204056;
	background: #fff;
	box-sizing: border-box;
}

.hasbat-dc-form textarea {
	min-height: 96px;
	resize: vertical;
}

.hasbat-dc-form input:focus,
.hasbat-dc-form select:focus,
.hasbat-dc-form textarea:focus {
	outline: none;
	border-color: #274961;
	box-shadow: 0 0 0 2px rgba(39, 73, 97, 0.15);
}

.hasbat-dc-form .hasbat-dc-submit {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.75rem 1.75rem;
	background: #c51e3a;
	color: #fff !important;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	font-family: inherit;
}

.hasbat-dc-form .hasbat-dc-submit:hover {
	background: #a81830;
}

.hasbat-dc-errors {
	background: #fdecee;
	border: 1px solid #f5c2c7;
	color: #842029;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	margin-bottom: 1.25rem;
	font-size: 0.9rem;
}

.hasbat-dc-success {
	text-align: center;
}

.hasbat-dc-success .hasbat-dc-icon {
	font-size: 2.5rem;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.hasbat-domain-order-inner .hasbat-dc-back {
	display: inline-block;
	margin-top: 1.25rem;
	color: #274961;
	font-weight: 600;
	text-decoration: underline;
}

.hasbat-domain-order-inner .hasbat-dc-back:hover {
	color: #c51e3a;
}

.hasbat-domain-order--plain .hasbat-domain-order-wrap {
	background: #f3f5f9;
	background-image: none;
}

.hasbat-domain-order--plain .hasbat-domain-order-inner {
	background: #fff;
	box-shadow: none;
	border: 1px solid #e7e7e7;
}

/* PayPal */
.hasbat-dc-paypal-summary {
	background: #f0f5fb;
	border: 1px solid #c5d4e8;
	border-radius: 8px;
	padding: 1rem 1.15rem;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
	line-height: 1.55;
}

.hasbat-dc-paypal-summary p {
	margin: 0.35rem 0;
}

.hasbat-dc-paypal-total {
	margin-top: 0.65rem !important;
	font-size: 1.05rem;
	color: #122d3e;
}

.hasbat-dc-paypal-buttons {
	margin: 1rem 0 0.5rem;
	min-height: 48px;
}

.hasbat-dc-paypal-msg {
	min-height: 1.25rem;
	font-size: 0.92rem;
	margin: 0.5rem 0 1rem;
	color: #204056;
}

.hasbat-dc-paypal-msg--error {
	color: #b42318;
	font-weight: 600;
}

/* زر محفظة + زر بطاقة (Smart Buttons منفصلة كإضافات ووردبريس) */
.hasbat-dc-paypal-buttons-stack {
	margin: 0.5rem 0 1.25rem;
}

.hasbat-dc-paypal-funding-block + .hasbat-dc-paypal-funding-block {
	margin-top: 1.35rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e2e8ef;
}

.hasbat-dc-pay-method-caption {
	font-size: 0.9rem;
	font-weight: 600;
	color: #3d5160;
	margin: 0 0 0.5rem;
}

/* مساحة لنموذج البطاقة الموسّع تحت زر CARD */
.hasbat-dc-paypal-buttons--card {
	min-height: 52px;
}

.hasbat-dc-paypal-receipt-meta {
	font-size: 0.95rem;
	margin-top: 0.75rem;
	color: #5a6b78;
}

.hasbat-dc-muted {
	color: #7a8a96;
	font-size: 0.88rem;
}

.hasbat-dc-pay-result h1 {
	margin-top: 0;
}

.hasbat-dc-pay-result--error .hasbat-dc-lead {
	color: #842029;
}

.hasbat-dc-pay-result--warn .hasbat-dc-lead {
	color: #664d03;
}

.hasbat-dc-nc-line {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.hasbat-dc-nc-line--ok {
	color: #0d6e3c;
}

.hasbat-dc-nc-line--bad {
	color: #8a5a00;
}

.hasbat-dc-error-detail {
	font-size: 0.82rem;
	word-break: break-word;
	margin: 0.75rem 0 0;
	padding: 0.65rem 0.75rem;
	background: #f8f9fa;
	border-radius: 6px;
	border: 1px solid #e2e8ef;
}

.hasbat-dc-error-detail code {
	background: transparent;
	font-size: 0.85rem;
}

/* سلة طلب domainchecker */
.hasbat-dc-order-cart {
	background: #fff;
	border: 1px solid #c5d4e8;
	border-radius: 8px;
	padding: 0.85rem 1rem;
	margin: 0 0 1rem;
}

.hasbat-dc-order-cart-title {
	margin: 0 0 0.65rem;
	font-size: 1rem;
	color: #122d3e;
}

.hasbat-dc-order-cart-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hasbat-dc-order-cart-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	padding: 0.55rem 0;
	border-bottom: 1px dashed #d8e2ec;
}

.hasbat-dc-order-cart-item:last-child {
	border-bottom: none;
}

.hasbat-dc-order-cart-item-main {
	flex: 1 1 12rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.35rem 0.75rem;
}

.hasbat-dc-order-cart-item-name {
	font-weight: 600;
	color: #204056;
}

.hasbat-dc-order-cart-item-price {
	font-weight: 600;
	color: #122d3e;
}

.hasbat-dc-order-cart-item-actions {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.hasbat-dc-order-cart-qty input {
	width: 3.25rem;
	text-align: center;
	padding: 0.25rem 0.35rem;
	border: 1px solid #c5d4e8;
	border-radius: 4px;
	background: #f6f8fb;
	color: #5a6b78;
}

.hasbat-dc-cart-remove {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #c51e3a;
	border: 1px solid #e8b4bc;
	border-radius: 4px;
	text-decoration: none;
	background: #fff;
	white-space: nowrap;
}

.hasbat-dc-cart-remove:hover,
.hasbat-dc-cart-remove:focus {
	color: #fff;
	background: #c51e3a;
	border-color: #c51e3a;
	text-decoration: none;
}

.hasbat-dc-pricing-row-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.hasbat-dc-order-cart-hint {
	margin: 0.55rem 0 0;
	font-size: 0.85rem;
	color: #5a6b78;
}

/* سلة WooCommerce في صفحات التطبيق */
body.hasbat-h-folder .wdes-site-cart-list .woocommerce-mini-cart-item .quantity input.qty {
	pointer-events: auto;
	min-width: 2.75rem;
}

body.hasbat-h-folder .wdes-site-cart-list a.remove.remove_from_cart_button {
	pointer-events: auto;
}
