/* COD Pickup / Delivery — checkout */

.bedots-cod-fulfillment {
	margin: 0 0 1.5rem;
	padding: 1.1rem 1.15rem 1.25rem;
	border: 1px solid #d8d2c8;
	background: linear-gradient(180deg, #fbf8f3 0%, #f4efe6 100%);
}

.bedots-cod-fulfillment__title {
	margin: 0 0 0.85rem;
	font-size: 1.1rem;
	font-weight: 600;
}

.bedots-cod-fulfillment__modes {
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.bedots-cod-fulfillment__modes {
		grid-template-columns: 1fr 1fr;
	}
}

.bedots-cod-mode {
	display: block;
	cursor: pointer;
	margin: 0;
}

.bedots-cod-mode input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bedots-cod-mode__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.9rem 1rem;
	border: 1px solid #cfc7bb;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bedots-cod-mode input:checked + .bedots-cod-mode__body {
	border-color: #2f5d3a;
	box-shadow: inset 0 0 0 1px #2f5d3a;
}

.bedots-cod-mode__label {
	font-weight: 650;
	font-size: 1.05rem;
}

.bedots-cod-mode__desc,
.bedots-cod-mode__fee {
	font-size: 0.92rem;
	line-height: 1.4;
	color: #4a453c;
}

.bedots-cod-mode__fee {
	font-weight: 600;
	color: #2f5d3a;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	width: 100%;
}

.bedots-cod-mode__fee-label {
	display: block;
	width: 100%;
}

.bedots-cod-mode__fee-amount {
	display: block;
	width: 100%;
	direction: ltr;
	unicode-bidi: isolate;
	text-align: left;
}

/* Arabic text amounts should follow page direction (not forced LTR like prices). */
.bedots-cod-mode__fee-amount--text {
	direction: inherit;
	unicode-bidi: normal;
	text-align: inherit;
}

html[dir="rtl"] .bedots-cod-mode__fee,
html[lang="ar"] .bedots-cod-mode__fee,
body.rtl .bedots-cod-mode__fee,
.bedots-cod-fulfillment.is-arabic .bedots-cod-mode__fee {
	align-items: stretch;
	text-align: right;
}

html[dir="rtl"] .bedots-cod-mode__fee-label,
html[lang="ar"] .bedots-cod-mode__fee-label,
body.rtl .bedots-cod-mode__fee-label,
.bedots-cod-fulfillment.is-arabic .bedots-cod-mode__fee-label,
html[dir="rtl"] .bedots-cod-mode__fee-amount--text,
html[lang="ar"] .bedots-cod-mode__fee-amount--text,
body.rtl .bedots-cod-mode__fee-amount--text,
.bedots-cod-fulfillment.is-arabic .bedots-cod-mode__fee-amount--text {
	text-align: right;
	direction: rtl;
	unicode-bidi: embed;
}

/* Keep numeric prices LTR even in RTL. */
html[dir="rtl"] .bedots-cod-mode__fee-amount:not(.bedots-cod-mode__fee-amount--text),
html[lang="ar"] .bedots-cod-mode__fee-amount:not(.bedots-cod-mode__fee-amount--text),
body.rtl .bedots-cod-mode__fee-amount:not(.bedots-cod-mode__fee-amount--text),
.bedots-cod-fulfillment.is-arabic .bedots-cod-mode__fee-amount:not(.bedots-cod-mode__fee-amount--text) {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: right;
}

.bedots-cod-branches {
	margin-top: 1.15rem;
}

.bedots-cod-branches__title {
	margin: 0 0 0.7rem;
	font-size: 1rem;
}

.bedots-cod-branches__grid {
	display: grid;
	gap: 0.85rem;
}

@media (min-width: 720px) {
	.bedots-cod-branches__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.bedots-cod-branch-card {
	display: block;
	margin: 0;
	cursor: pointer;
}

.bedots-cod-branch-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bedots-cod-branch-card__inner {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1rem 1.05rem;
	border: 1px solid #cfc7bb;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.bedots-cod-branch-card:hover .bedots-cod-branch-card__inner,
.bedots-cod-branch-card.is-selected .bedots-cod-branch-card__inner,
.bedots-cod-branch-card input:checked + .bedots-cod-branch-card__inner {
	border-color: #2f5d3a;
	box-shadow: inset 0 0 0 1px #2f5d3a;
}

.bedots-cod-branch-card:hover .bedots-cod-branch-card__inner {
	transform: translateY(-1px);
}

.bedots-cod-branch-card__name {
	display: block;
	font-weight: 700;
	font-size: 1.05rem;
	margin: 0;
	text-align: center;
}

.bedots-cod-branch-card__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	width: 100%;
	font-size: 0.92rem;
	line-height: 1.45;
	margin: 0;
	color: #3d3a34;
}

.bedots-cod-branch-card__k {
	display: block;
	width: 100%;
	font-weight: 650;
}

.bedots-cod-branch-card__v,
.bedots-cod-branch-card__hours,
.bedots-cod-branch-card__phone {
	display: block;
	max-width: 100%;
	font-weight: 400;
	unicode-bidi: plaintext;
	text-align: left;
}

.bedots-cod-branch-card__phone {
	direction: ltr;
	unicode-bidi: isolate;
	color: inherit;
	text-decoration: none;
}

.bedots-cod-branch-card__hours {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bedots-cod-branch-card__hours-line {
	display: block;
	margin: 0.12rem 0;
	padding: 0;
	unicode-bidi: plaintext;
}

/* RTL / Arabic branch cards */
html[dir="rtl"] .bedots-cod-branch-card__row,
html[lang="ar"] .bedots-cod-branch-card__row,
body.rtl .bedots-cod-branch-card__row,
.bedots-cod-fulfillment.is-arabic .bedots-cod-branch-card__row {
	align-items: stretch;
	text-align: right;
}

html[dir="rtl"] .bedots-cod-branch-card__k,
html[lang="ar"] .bedots-cod-branch-card__k,
body.rtl .bedots-cod-branch-card__k,
.bedots-cod-fulfillment.is-arabic .bedots-cod-branch-card__k {
	text-align: right;
}

html[dir="rtl"] .bedots-cod-branch-card__v,
html[lang="ar"] .bedots-cod-branch-card__v,
body.rtl .bedots-cod-branch-card__v,
.bedots-cod-fulfillment.is-arabic .bedots-cod-branch-card__v,
html[dir="rtl"] .bedots-cod-branch-card__hours,
html[lang="ar"] .bedots-cod-branch-card__hours,
body.rtl .bedots-cod-branch-card__hours,
.bedots-cod-fulfillment.is-arabic .bedots-cod-branch-card__hours,
html[dir="rtl"] .bedots-cod-branch-card__hours-line,
html[lang="ar"] .bedots-cod-branch-card__hours-line,
body.rtl .bedots-cod-branch-card__hours-line,
.bedots-cod-fulfillment.is-arabic .bedots-cod-branch-card__hours-line {
	direction: rtl;
	unicode-bidi: plaintext;
	text-align: right;
}

/* Phone numbers stay LTR islands, right-aligned in Arabic. */
html[dir="rtl"] .bedots-cod-branch-card__phone,
html[lang="ar"] .bedots-cod-branch-card__phone,
body.rtl .bedots-cod-branch-card__phone,
.bedots-cod-fulfillment.is-arabic .bedots-cod-branch-card__phone {
	direction: ltr !important;
	unicode-bidi: isolate;
	text-align: right;
}

.bedots-cod-order-meta {
	margin: 1rem 0;
	padding: 0.85rem 1rem;
	border: 1px solid #ddd;
	background: #fafafa;
}

/*
 * Arabic glyphs read larger at the same rem — optically match English sizes.
 */
html[dir="rtl"] .bedots-cod-fulfillment__title,
html[lang="ar"] .bedots-cod-fulfillment__title,
body.rtl .bedots-cod-fulfillment__title,
.bedots-cod-fulfillment.is-arabic .bedots-cod-fulfillment__title {
	font-size: 0.98rem;
}

html[dir="rtl"] .bedots-cod-mode__label,
html[lang="ar"] .bedots-cod-mode__label,
body.rtl .bedots-cod-mode__label,
.bedots-cod-fulfillment.is-arabic .bedots-cod-mode__label {
	font-size: 0.92rem;
}

html[dir="rtl"] .bedots-cod-mode__desc,
html[lang="ar"] .bedots-cod-mode__desc,
body.rtl .bedots-cod-mode__desc,
.bedots-cod-fulfillment.is-arabic .bedots-cod-mode__desc,
html[dir="rtl"] .bedots-cod-mode__fee,
html[lang="ar"] .bedots-cod-mode__fee,
body.rtl .bedots-cod-mode__fee,
.bedots-cod-fulfillment.is-arabic .bedots-cod-mode__fee {
	font-size: 0.82rem;
}

html[dir="rtl"] .bedots-cod-branches__title,
html[lang="ar"] .bedots-cod-branches__title,
body.rtl .bedots-cod-branches__title,
.bedots-cod-fulfillment.is-arabic .bedots-cod-branches__title {
	font-size: 0.9rem;
}

html[dir="rtl"] .bedots-cod-branch-card__name,
html[lang="ar"] .bedots-cod-branch-card__name,
body.rtl .bedots-cod-branch-card__name,
.bedots-cod-fulfillment.is-arabic .bedots-cod-branch-card__name {
	font-size: 0.92rem;
}

html[dir="rtl"] .bedots-cod-branch-card__row,
html[lang="ar"] .bedots-cod-branch-card__row,
body.rtl .bedots-cod-branch-card__row,
.bedots-cod-fulfillment.is-arabic .bedots-cod-branch-card__row {
	font-size: 0.82rem;
}
