/* ===== نموذج الطلب داخل صفحة المنتج ===== */
.hbcod {
	--c-accent: var(--hb-accent, #d6407a);
	--c-accent-d: var(--hb-accent-dark, #b32d63);
	--c-line: var(--hb-line, #f6d9e6);
	--c-sand: var(--hb-sand, #fde8f1);
	--c-ink: var(--hb-ink, #3b2a36);
	--c-mute: #8d7482;
	--c-ok: #1f9d63;
	margin: 24px 0;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(42, 35, 32, .08);
	font-family: inherit;
	overflow: hidden;
	position: relative;
	color: var(--c-ink);
}
.hbcod form { padding: 6px 18px 20px; counter-reset: hbs; }
@media (min-width: 560px) { .hbcod form { padding: 6px 24px 24px; } }

.hbcod__head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px; background: linear-gradient(135deg, var(--c-accent), var(--c-accent-d)); color: #fff; }
@media (min-width: 560px) { .hbcod__head { padding: 20px 24px; } }
.hbcod__badge { flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 24px; }
.hbcod__title { margin: 0 0 2px; font-size: 19px; color: #fff; line-height: 1.35; }
.hbcod__sub { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.85); }

/* الأقسام المرقّمة */
.hbcod__sec { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.hbcod__sec:last-of-type { border-bottom: 0; }
.hbcod__sh { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.hbcod__sh::before { counter-increment: hbs; content: counter(hbs); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c-accent); color: #fff; font-size: 14px; display: grid; place-items: center; }

.hbcod__hint { background: #f6f0ff; color: #5b3f93; border: 1px dashed #d9c9f5; padding: 10px 12px; border-radius: 12px; font-size: 14px; margin: 12px 0 0; }
.hbcod__hint[hidden] { display: none; }

.hbcod__row { margin-bottom: 14px; }
.hbcod__row:last-child { margin-bottom: 0; }
.hbcod__row label, .hbcod__label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--c-ink); }

.hbcod input[type="text"], .hbcod input[type="tel"], .hbcod select {
	width: 100%; min-height: 50px; padding: 11px 14px; font: inherit; font-size: 16px;
	border: 1.5px solid var(--c-line); border-radius: 12px; background: #fffafc; color: inherit; transition: border-color .15s, box-shadow .15s, background .15s;
}
.hbcod input::placeholder { color: #c2a6b4; }
.hbcod input:focus, .hbcod select:focus { outline: 0; border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 4px rgba(214, 64, 122, .16); }
.hbcod select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b6f68' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-end: 14px; padding-left: 38px; }

.hbcod__cols { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .hbcod__cols { grid-template-columns: 1fr 1fr; } }

/* خيارات (طريقة التوصيل / الشركة) */
.hbcod__choices { display: grid; gap: 10px; }
@media (min-width: 520px) { .hbcod__choices { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.hbcod__choice {
	display: flex; align-items: center; gap: 10px; padding: 13px 14px; cursor: pointer; background: #fffafc;
	border: 1.5px solid var(--c-line); border-radius: 14px; font-weight: 700 !important; margin: 0 !important; transition: border-color .15s, background .15s;
}
.hbcod__choice input { accent-color: var(--c-accent); width: 19px; height: 19px; flex: none; }
.hbcod__choice span { flex: 1; display: flex; justify-content: space-between; gap: 8px; }
.hbcod__choice:has(input:checked) { border-color: var(--c-accent); background: #fff0f6; box-shadow: 0 0 0 1px var(--c-accent) inset; }
.hbcod__choice.is-disabled { opacity: .5; cursor: not-allowed; }
.hbcod__choice b { color: var(--c-accent); font-weight: 800; }

/* الكمية */
.hbcod__qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hbcod__qty .hbcod__label { margin: 0; }
.hbcod__stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--c-line); border-radius: 14px; overflow: hidden; background: #fff; }
.hbcod__stepper button { width: 48px; height: 48px; border: 0; background: var(--c-sand); font-size: 22px; line-height: 1; cursor: pointer; color: var(--c-ink); }
.hbcod__stepper button:active { background: #fde0ec; }
.hbcod__stepper input { width: 54px !important; min-height: 48px !important; border: 0 !important; background: #fff !important; text-align: center; font-weight: 800; border-radius: 0 !important; box-shadow: none !important; -moz-appearance: textfield; }
.hbcod__stepper input::-webkit-outer-spin-button, .hbcod__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* الملخص */
.hbcod__summary { background: #fff5f9; border: 1px solid var(--c-line); border-radius: 16px; padding: 14px 16px; margin: 6px 0 16px; display: grid; gap: 8px; }
.hbcod__summary > div { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--c-mute); }
.hbcod__summary > div b { color: var(--c-ink); }
.hbcod__total { border-top: 1.5px dashed #f3c3d6; padding-top: 10px; margin-top: 2px; font-size: 18px !important; font-weight: 800; color: var(--c-ink) !important; }
.hbcod__total b { color: var(--c-accent) !important; font-size: 22px; }

.hbcod__error { background: #fdecec; color: #a61b1b; border-radius: 12px; padding: 11px 14px; margin-bottom: 12px; font-weight: 700; font-size: 14px; border: 1px solid #f5c2c2; }
.hbcod__error[hidden] { display: none; }

.hbcod__submit {
	width: 100%; min-height: 58px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--c-accent), var(--c-accent-d)); color: #fff;
	font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; transition: transform .1s, opacity .2s; box-shadow: 0 8px 20px rgba(214, 64, 122, .32);
}
.hbcod__submit:active { transform: scale(.985); }
.hbcod__submit:disabled { opacity: .6; cursor: wait; }
.hbcod__safe { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--c-mute); }

.hbcod__hidden { display: none !important; }
.hbcod__hp { position: absolute !important; inset-inline-start: 0; top: 0; opacity: 0; height: 1px !important; width: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; pointer-events: none; }

.hbcod__done { text-align: center; padding: 28px 12px; }
.hbcod__check { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 50%; background: var(--c-ok); color: #fff; font-size: 36px; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(31, 157, 99, .35); }
.hbcod__done h3 { color: var(--c-ok); margin: 0 0 8px; }
.hbcod__done p { margin: 4px 0; }

/* العروض */
.hbcod__offers { display: grid; gap: 10px; }
.hbcod__offer { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: start; padding: 12px; border: 1.5px solid var(--c-line); border-radius: 16px; background: #fff; font: inherit; cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.hbcod__offer img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.hbcod__offer b { font-size: 15px; }
.hbcod__otxt { display: grid; gap: 4px; }
.hbcod__oprice { display: grid; text-align: end; gap: 2px; }
.hbcod__oprice s { color: #999; font-size: 13px; }
.hbcod__oprice span { font-size: 20px; font-weight: 800; color: var(--c-accent); }
.hbcod__offer em { font-style: normal; font-size: 12.5px; color: var(--c-ok); font-weight: 700; }
.hbcod__offer i { position: absolute; top: -9px; inset-inline-end: 12px; background: var(--c-ok); color: #fff; font-style: normal; font-size: 11px; padding: 2px 10px; border-radius: 99px; }
.hbcod__offer.is-on { border-color: var(--c-accent); background: #fff0f6; box-shadow: 0 0 0 1px var(--c-accent) inset; }

.hbcod__links { display: flex; gap: 16px; margin: 0 0 12px; font-size: 14px; }
.hbcod__links a { color: var(--c-accent); font-weight: 700; text-decoration: none; }
.hbcod__guide { background: var(--c-sand); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.hbcod__guide[hidden] { display: none; }

.hbcod__coupon { margin-top: 14px; }
.hbcod__couponbox { display: flex; gap: 8px; }
.hbcod__couponbox input { flex: 1; text-transform: uppercase; letter-spacing: 1px; }
.hbcod__couponbox button { padding: 0 20px; border: 1.5px solid var(--c-accent); background: #fff; color: var(--c-accent); border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; }
.hbcod__couponmsg { display: block; margin-top: 5px; font-size: 13px; }
.hbcod__couponmsg.is-ok { color: var(--c-ok); } .hbcod__couponmsg.is-bad { color: #a61b1b; }
.hbcod__save b { color: var(--c-ok) !important; }

.hbcod__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 0 0 12px; }
.hbcod__consent input { margin-top: 3px; accent-color: var(--c-accent); }

/* اللون والمقاس */
.hbcod-sw form.variations_form table.variations, .hbcod-sw form.variations_form .single_variation_wrap .woocommerce-variation-add-to-cart, .hbcod-sw form.variations_form .reset_variations { display: none !important; }
.hbcod__req { color: #b3261e; font-style: normal; margin-inline-start: 4px; }
.hbcod__colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .hbcod__colors { grid-template-columns: repeat(4, 1fr); } }
.hbcod__color { position: relative; padding: 0; border: 2px solid var(--c-line); border-radius: 16px; background: #fff; overflow: hidden; cursor: pointer; font: inherit; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .12s; }
.hbcod__color:hover { transform: translateY(-2px); }
.hbcod__color img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.hbcod__cname { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 6px; font-weight: 700; font-size: 13.5px; background: #fffafc; border-top: 1px solid var(--c-line); min-height: 40px; }
.hbcod__cname em { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #bbb; flex: none; }
.hbcod__color.is-on { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(214, 64, 122, .22); }
.hbcod__color.is-on::after { content: "✓"; position: absolute; top: 8px; inset-inline-start: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--c-accent); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.hbcod__color.is-on .hbcod__cname { background: #fff0f6; color: var(--c-accent); }
.hbcod__colors + .hbcod__row, .hbcod__row + .hbcod__row .hbcod__sizes { margin-top: 0; }
.hbcod__sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.hbcod__size { min-width: 60px; height: 50px; padding: 0 14px; border: 2px solid var(--c-line); border-radius: 12px; background: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: all .15s; }
.hbcod__size:hover { border-color: var(--c-accent); }
.hbcod__size.is-on { border-color: var(--c-accent); background: var(--c-accent); color: #fff; font-weight: 800; box-shadow: 0 4px 12px rgba(214, 64, 122, .32); }
.hbcod__size.is-out, .hbcod__size:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

/* نافذة دليل المقاسات */
.hbcod__modal { width: min(92vw, 460px); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--c-ink); }
.hbcod__modal::backdrop { background: rgba(30, 15, 20, .55); }
.hbcod__mh { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--c-accent); color: #fff; }
.hbcod__mh button { border: 0; background: rgba(255,255,255,.2); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.hbcod__mb { padding: 16px 18px 20px; font-size: 15px; line-height: 1.9; max-height: 60vh; overflow: auto; }

/* أيقونات داخل الحقول */
.hbcod input[name="customer_name"], .hbcod input[name="phone"] { background-repeat: no-repeat; background-position: left 14px center; padding-left: 40px; }
.hbcod input[name="customer_name"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b3a79d' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0116 0'/%3E%3C/svg%3E"); }
.hbcod input[name="phone"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b3a79d' stroke-width='1.8'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a2 2 0 01-2 2A16 16 0 013 6a2 2 0 012-2z'/%3E%3C/svg%3E"); }
.hbcod input[name="phone"] { direction: ltr; text-align: right; }

/* ===== نسخة مضغوطة: نموذج قصير مناسب للبيع على الهاتف ===== */
.hbcod { margin: 14px 0; border-radius: 16px; }
.hbcod__head { padding: 12px 14px; gap: 10px; }
.hbcod__badge { width: 36px; height: 36px; border-radius: 11px; }
.hbcod__badge svg { width: 20px; height: 20px; }
.hbcod__title { font-size: 16px; }
.hbcod__sub { font-size: 12px; }
.hbcod form { padding: 2px 14px 14px; }
.hbcod__sec { padding: 10px 0; }
.hbcod__sh { font-size: 14px; margin-bottom: 8px; gap: 8px; }
.hbcod__sh::before { width: 20px; height: 20px; font-size: 12px; }
.hbcod__row { margin-bottom: 9px; }
.hbcod__row label, .hbcod__label { font-size: 13px; margin-bottom: 4px; }
.hbcod input[type="text"], .hbcod input[type="tel"], .hbcod select { min-height: 44px; padding: 8px 12px; font-size: 16px; border-radius: 10px; }
.hbcod, .hbcod * { max-width: 100%; }
.hbcod__cols { grid-template-columns: 1fr 1fr !important; gap: 0 8px; }
.hbcod__choices { grid-template-columns: 1fr 1fr !important; gap: 8px; }
.hbcod__choice { padding: 9px 10px; gap: 8px; min-height: 0 !important; height: auto !important; border-radius: 10px; font-size: 13.5px; flex-direction: row !important; align-items: center; }
.hbcod__choice input { width: 17px !important; height: 17px !important; min-height: 0 !important; margin: 0; flex: none; }
.hbcod__choice span { display: block; flex: 1; line-height: 1.35; }
.hbcod__choice b { display: block; font-size: 12.5px; }
.hbcod__qty { margin-bottom: 6px; }
.hbcod__stepper button { width: 40px; height: 40px; font-size: 20px; }
.hbcod__stepper input { width: 44px !important; min-height: 40px !important; }
.hbcod__coupon { margin-top: 4px; }
.hbcod__coupon > label { display: inline-block; cursor: pointer; color: var(--c-accent); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; margin: 0; }
.hbcod__coupon:not(.is-open) .hbcod__couponbox, .hbcod__coupon:not(.is-open) .hbcod__couponmsg:empty { display: none; }
.hbcod__coupon.is-open > label { margin-bottom: 6px; }
.hbcod__summary { padding: 10px 12px; margin: 4px 0 12px; gap: 5px; border-radius: 12px; }
.hbcod__summary > div { font-size: 13.5px; }
.hbcod__total { font-size: 16px !important; padding-top: 7px; }
.hbcod__total b { font-size: 19px; }
.hbcod__submit { min-height: 50px; font-size: 16.5px; border-radius: 13px; }
.hbcod__safe { margin-top: 8px; font-size: 12px; }
.hbcod__hint { padding: 7px 10px; font-size: 13px; margin-top: 8px; }
/* الألوان: مربعات صغيرة بدل بطاقات طويلة */
.hbcod__colors { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; }
@media (min-width: 560px) { .hbcod__colors { grid-template-columns: repeat(5, 1fr) !important; } }
.hbcod__color { border-radius: 12px; border-width: 2px; }
.hbcod__color img { aspect-ratio: 1 / 1; }
.hbcod__cname { padding: 5px 4px; min-height: 0; font-size: 12px; gap: 5px; }
.hbcod__cname em { width: 12px; height: 12px; }
.hbcod__color.is-on::after { width: 20px; height: 20px; font-size: 12px; top: 5px; inset-inline-start: 5px; }
.hbcod__size { min-width: 50px; height: 42px; font-size: 15px; padding: 0 10px; border-radius: 10px; }
.hbcod__sizes { gap: 6px; }


/* ===== v3: فورم قصير جداً للبيع على الهاتف (الاسم+الهاتف في سطر، كمية+مجموع في بطاقة واحدة) ===== */
.hbcod__sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hbcod__head { padding: 10px 14px; }
.hbcod__badge { width: 32px; height: 32px; border-radius: 10px; }
.hbcod__badge svg { width: 18px; height: 18px; }
.hbcod__title { font-size: 15.5px; margin: 0; }
.hbcod form { padding: 4px 12px 12px; }
.hbcod__sec { padding: 8px 0; border-bottom: 0; }
.hbcod__sec--info { padding-top: 10px; }
.hbcod__sh::before { display: none; }
.hbcod__sh { font-size: 14px; margin-bottom: 8px; }
.hbcod__row { margin-bottom: 8px; }
.hbcod__cols { grid-template-columns: 1fr 1fr !important; gap: 0 8px; }
.hbcod input[type="text"], .hbcod input[type="tel"], .hbcod select { min-height: 46px; padding: 8px 12px; }
.hbcod input[name="customer_name"], .hbcod input[name="phone"] { background-image: none; padding-left: 12px; }
.hbcod input[name="phone"] { text-align: start; }
.hbcod input[name="phone"]:placeholder-shown { direction: rtl; }

/* طريقة التوصيل: شريحتان متجاورتان بلا دوائر راديو */
.hbcod__choices { gap: 8px; }
.hbcod__choice { position: relative; justify-content: center; text-align: center; padding: 8px 6px; min-height: 46px !important; }
.hbcod__choice input { position: absolute !important; opacity: 0; width: 1px !important; height: 1px !important; pointer-events: none; }
.hbcod__choice span { flex: none; text-align: center; }
.hbcod__choice:has(input:checked)::after { content: "✓"; position: absolute; top: 3px; inset-inline-start: 6px; font-size: 11px; font-weight: 800; color: var(--c-accent); }

/* العروض والكوبون */
.hbcod__extras { margin: 0; }
.hbcod__extras:empty { display: none; }
.hbcod__coupon { margin: 0 0 6px; }

/* بطاقة واحدة: الكمية + المجموع، وسطر صغير للتفاصيل */
.hbcod__summary { display: block; padding: 10px 12px; margin: 6px 0 10px; }
.hbcod__sumA { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.hbcod__sumA .hbcod__qty { margin: 0; gap: 8px; flex: none; }
.hbcod__sumA .hbcod__label { margin: 0; font-size: 13px; }
.hbcod__sumA .hbcod__stepper button { width: 36px; height: 36px; font-size: 18px; }
.hbcod__sumA .hbcod__stepper input { width: 36px !important; min-height: 36px !important; font-size: 15px; }
.hbcod__summary .hbcod__total { display: grid; justify-items: end; gap: 0; border: 0; padding: 0; margin: 0; text-align: end; }
.hbcod__summary .hbcod__total span { font-size: 12px; color: var(--c-mute); font-weight: 700; }
.hbcod__summary .hbcod__total b { font-size: 21px; line-height: 1.2; }
.hbcod__sumB { display: flex !important; flex-wrap: wrap; justify-content: flex-start !important; gap: 2px 14px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed #f3c3d6; }
.hbcod__sumB > div { display: flex; gap: 5px; font-size: 12.5px; color: var(--c-mute); }
.hbcod__sumB > div b { font-weight: 800; color: var(--c-ink); }
.hbcod__sumB .hbcod__save b { color: var(--c-ok); }
.hbcod__submit { min-height: 52px; font-size: 16.5px; }
.hbcod__safe { margin-top: 6px; font-size: 11.5px; }
.hbcod__error { margin-bottom: 8px; }

/* خيارات القطع الإضافية */
.hbcod__pieces { display: grid; gap: 10px; margin: 0 0 12px; }
.hbcod__piece { border: 1.5px dashed var(--hbc-line, #f0c6d8); border-radius: 14px; padding: 10px 12px; background: var(--hbc-soft, #fff6fa); display: grid; gap: 8px; }
.hbcod__phead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hbcod__phead b { font-size: 14px; }
.hbcod__psame { border: 0; background: transparent; color: var(--hbc-accent, #d6407a); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 2px; }
.hbcod__pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.hbcod__pgrid label { display: grid; gap: 3px; }
.hbcod__pgrid label span { font-size: 12px; color: #7a6a73; }
.hbcod__pgrid select { width: 100%; min-height: 44px; font-size: 16px; border: 1.5px solid var(--hbc-line, #f0c6d8); border-radius: 12px; background: #fff; padding: 6px 10px; font-family: inherit; }
.hbcod__pstat { min-height: 1em; font-size: 12.5px; color: #c0392b; }
.hbcod__pstat:empty { display: none; }

/* نافذة اختيار القطع + ملخصها */
.hbcod__pdlg .hbcod__pieces { margin: 0 0 12px; }
.hbcod__pdlg .hbcod__mb { display: grid; gap: 10px; }
.hbcod__perr { margin: 0; color: #c0392b; font-size: 13.5px; line-height: 1.5; }
.hbcod__pok { border: 0; border-radius: 14px; min-height: 48px; background: var(--hbc-accent, #d6407a); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.hbcod__psum { display: grid; gap: 6px; border: 1.5px dashed var(--hbc-line, #f0c6d8); border-radius: 14px; background: var(--hbc-soft, #fff6fa); padding: 10px 12px; }
.hbcod__pline { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.hbcod__pline span { color: #7a6a73; }
.hbcod__pline.is-miss b { color: #c0392b; }
.hbcod__pedit { justify-self: start; border: 0; background: transparent; color: var(--hbc-accent, #d6407a); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 2px 0; }
.hbcod__pedit.is-miss { background: var(--hbc-accent, #d6407a); color: #fff; padding: 9px 16px; border-radius: 12px; justify-self: stretch; text-align: center; }
.hbcod__pieces[hidden] { display: none; }
/* خيارات نافدة: لا يمكن اختيارها */
.hbcod__color.is-out, .hbcod__color:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.hbcod__color.is-out img { filter: grayscale(1); }
.hbcod__color.is-out::before { content: "نفذ"; position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; background: #1e1e1e; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.hbcod__color.is-out:hover { transform: none; }
.hbcod__size.is-out:hover { border-color: var(--c-line); }


/* ===== v4: فورم الطلب — فخم وواضح على الهاتف ===== */
.hbcod { border-radius: 22px; box-shadow: 0 12px 34px rgba(91,35,71,.12); border-color: #f3d3e2; }
.hbcod__head { background: linear-gradient(135deg, #d4467f, #a82a60 70%, #7b2a68); padding: 14px 16px; }
.hbcod__title { font-size: 16.5px; font-weight: 800; }
.hbcod form { padding: 4px 14px 16px; }
.hbcod__sh { font-size: 15px; font-weight: 800; color: #5b2347; }
.hbcod__sec { padding: 12px 0; }

/* الألوان: صور متباعدة وحالة تحديد واضحة */
.hbcod__colors { grid-template-columns: repeat(4, 1fr) !important; gap: 10px; }
.hbcod__color { border-radius: 14px; border: 2px solid #f1dbe6; transition: transform .15s, border-color .15s, box-shadow .15s; }
.hbcod__color.is-on { border-color: #c93a77; box-shadow: 0 0 0 3px rgba(201,58,119,.2), 0 8px 18px rgba(201,58,119,.22); transform: translateY(-2px); }
.hbcod__color.is-on::after { background: #c93a77; width: 22px; height: 22px; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.hbcod__color.is-on .hbcod__cname { background: #fdeaf2; color: #a82a60; font-weight: 800; }
.hbcod__cname { font-size: 12.5px; padding: 6px 4px; }

/* المقاسات: أزرار كبيرة للمس */
.hbcod__sizes { gap: 10px; }
.hbcod__size { min-width: 56px; height: 48px; border-radius: 14px; border: 2px solid #f1dbe6; font-size: 16px; color: #3a2233; background: #fff; }
.hbcod__size.is-on { background: linear-gradient(135deg, #d94a88, #a82a60); border-color: #a82a60; color: #fff; box-shadow: 0 6px 14px rgba(201,58,119,.35); transform: translateY(-1px); }

/* الحقول: ارتفاع مريح للمس */
.hbcod input[type="text"], .hbcod input[type="tel"], .hbcod select { min-height: 52px; border-radius: 14px; border: 1.5px solid #f1dbe6; background: #fffafc; font-size: 16px; }
.hbcod__cols { gap: 0 10px; }
.hbcod__row { margin-bottom: 10px; }
.hbcod__choice { border-radius: 14px; min-height: 50px !important; border: 1.5px solid #f1dbe6; }
.hbcod__choice:has(input:checked) { background: #fdeaf2; border-color: #c93a77; color: #a82a60; }

/* عروض التوفير */
.hbcod__offers { gap: 12px; padding-top: 6px; }
.hbcod__offer { padding: 12px 14px; border-radius: 18px; border: 2px solid #f1dbe6; gap: 12px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hbcod__offer img { width: 62px; height: 78px; border-radius: 12px; }
.hbcod__offer b { font-size: 15.5px; color: #3a2233; }
.hbcod__oprice span { font-size: 21px; color: #a82a60; }
.hbcod__offer em { background: #e8f7ef; color: #14804a; padding: 2px 10px; border-radius: 99px; display: inline-block; font-size: 12.5px; font-weight: 800; }
.hbcod__offer i { top: -11px; background: linear-gradient(135deg, #f0883e, #e0456f); font-size: 12px; font-weight: 800; padding: 3px 14px; box-shadow: 0 4px 10px rgba(224,69,111,.35); }
.hbcod__offer.is-on { border-color: #c93a77; background: linear-gradient(180deg, #fff, #fff2f8); box-shadow: 0 8px 20px rgba(201,58,119,.2); }
.hbcod__offer.is-on::before { content: "✓"; position: absolute; top: 10px; inset-inline-start: 10px; width: 22px; height: 22px; border-radius: 50%; background: #c93a77; color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; z-index: 1; }

/* الملخص */
.hbcod__summary { background: #fff5f9; border: 1px solid #f3d3e2; border-radius: 16px; }
.hbcod__summary .hbcod__total b { color: #a82a60 !important; }

/* زر التأكيد: عريض وثابت أسفل الشاشة أثناء التمرير على الهاتف */
.hbcod__submit { min-height: 56px; border-radius: 16px; font-size: 17.5px; font-weight: 800; background: linear-gradient(135deg, #d94a88, #a82a60); box-shadow: 0 10px 24px rgba(168,42,96,.4); }
@media (max-width: 1023px) {
	.hbcod__submit { position: sticky; bottom: 12px; z-index: 30; }
	.hbcod form { overflow: visible; }
	.hbcod { overflow: visible; }
	.hbcod__head { border-radius: 22px 22px 0 0; }
}


/* ===== v5: مضغوط — فورم قصير (يلغي تكبير v4) ===== */
.hbcod { margin: 10px 0; border-radius: 18px; }
.hbcod__head { padding: 9px 14px; }
.hbcod__badge { width: 30px; height: 30px; border-radius: 9px; }
.hbcod__title { font-size: 15px; }
.hbcod__sub { display: none; }
.hbcod form { padding: 2px 12px 10px; }
.hbcod__sec { padding: 6px 0; }
.hbcod__sh { font-size: 13.5px; margin: 0 0 6px; }
.hbcod__row { margin-bottom: 7px; }
.hbcod__cols { gap: 0 8px; }
.hbcod input[type="text"], .hbcod input[type="tel"], .hbcod select { min-height: 44px; padding: 6px 12px; border-radius: 12px; }
.hbcod__hint { padding: 5px 10px; font-size: 12.5px; margin-top: 6px; }

/* الألوان: 6 صور صغيرة في الصف، بلا نص تحتها إلا للمحدد */
.hbcod__colors { grid-template-columns: repeat(6, 1fr) !important; gap: 6px; }
@media (max-width: 380px) { .hbcod__colors { grid-template-columns: repeat(5, 1fr) !important; } }
.hbcod__color { border-radius: 10px; border-width: 2px; }
.hbcod__color img { aspect-ratio: 3 / 4; }
.hbcod__cname { padding: 3px 2px; font-size: 10.5px; gap: 3px; min-height: 0; white-space: nowrap; overflow: hidden; }
.hbcod__cname em { width: 9px; height: 9px; }
.hbcod__color.is-on { transform: none; box-shadow: 0 0 0 2px rgba(201,58,119,.22); }
.hbcod__color.is-on::after { width: 18px; height: 18px; font-size: 11px; top: 4px; inset-inline-start: 4px; }
.hbcod__color.is-out::before { top: 4px; inset-inline-end: 4px; font-size: 10px; padding: 1px 7px; }

/* المقاسات */
.hbcod__sizes { gap: 6px; }
.hbcod__size { min-width: 46px; height: 40px; font-size: 15px; border-radius: 11px; padding: 0 8px; }
.hbcod__size.is-on { transform: none; }

/* التوصيل */
.hbcod__choice { min-height: 44px !important; padding: 6px 8px; font-size: 13px; border-radius: 12px; }

/* العروض: صفوف رفيعة بلا صور */
.hbcod__offers { gap: 8px; padding-top: 4px; }
.hbcod__offer { grid-template-columns: 1fr auto; padding: 8px 12px; border-radius: 14px; border-width: 1.5px; }
.hbcod__offer img { display: none; }
.hbcod__offer b { font-size: 14px; }
.hbcod__oprice { display: flex; align-items: baseline; gap: 8px; }
.hbcod__oprice span { font-size: 17px; }
.hbcod__offer em { font-size: 11.5px; padding: 1px 8px; }
.hbcod__offer i { top: -9px; font-size: 11px; padding: 2px 10px; }
.hbcod__offer.is-on::before { width: 18px; height: 18px; font-size: 11px; top: 8px; inset-inline-start: 8px; }
.hbcod__offer.is-on { padding-inline-start: 34px; }

/* الملخص والزر */
.hbcod__summary { padding: 8px 12px; margin: 4px 0 8px; }
.hbcod__sumB { margin-top: 5px; padding-top: 5px; }
.hbcod__summary .hbcod__total b { font-size: 19px; }
.hbcod__sumA .hbcod__stepper button { width: 32px; height: 32px; }
.hbcod__sumA .hbcod__stepper input { width: 32px !important; min-height: 32px !important; }
.hbcod__submit { min-height: 50px; font-size: 16.5px; border-radius: 14px; }
.hbcod__safe { margin-top: 4px; font-size: 11px; }


/* ===== v6: كل جملة في سطر واحد ===== */
.hbcod__sec--info > .hbcod__row:not([data-carrier-row]) > .hbcod__label,
.hbcod__extras > .hbcod__row > .hbcod__label { display: none; }
.hbcod__choices { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
.hbcod__choice span { white-space: nowrap; display: flex; justify-content: center; gap: 6px; }

.hbcod__offer { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 12px; }
.hbcod__otxt { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: nowrap; }
.hbcod__otxt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.hbcod__otxt em { flex: none; white-space: nowrap; font-size: 11px; padding: 1px 8px; }
.hbcod__oprice { flex: none; white-space: nowrap; }
.hbcod__oprice s { display: none; }
.hbcod__oprice span { font-size: 16px; white-space: nowrap; }
.hbcod__offer.is-on { padding-inline-start: 34px; }

.hbcod__sumB { flex-wrap: nowrap; justify-content: space-between !important; gap: 8px; overflow: hidden; }
.hbcod__sumB > div { white-space: nowrap; font-size: 12px; }
.hbcod__hint, .hbcod__safe, .hbcod__couponmsg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ===== v7: لا اقتطاع — النص يظهر كاملاً، بخط أصغر ===== */
.hbcod__otxt { flex-wrap: wrap; gap: 2px 8px; }
.hbcod__otxt b { white-space: normal; overflow: visible; text-overflow: clip; font-size: 13px; line-height: 1.45; }
.hbcod__otxt em { white-space: nowrap; }
.hbcod__oprice span { font-size: 15.5px; }
.hbcod__sumB { flex-wrap: wrap; justify-content: flex-start !important; gap: 2px 12px; overflow: visible; }
.hbcod__sumB > div { white-space: normal; font-size: 12px; }
.hbcod__hint, .hbcod__safe, .hbcod__couponmsg { white-space: normal; overflow: visible; text-overflow: clip; }
.hbcod__choice span { white-space: normal; flex-wrap: wrap; line-height: 1.35; }
.hbcod__cname { white-space: normal; overflow: visible; }
