/* cartRe – Sameday Easybox · v1.3.6
   Selector optimizat pentru mobil, încărcare progresivă și accesibilitate. */

:root {
	--cse-blue: #1b65c3;
	--cse-blue-dark: #124a92;
	--cse-blue-soft: #eef5ff;
	--cse-orange: #e8901a;
	--cse-ink: #152033;
	--cse-muted: #667085;
	--cse-line: #dce4ef;
	--cse-surface: #ffffff;
	--cse-bg: #f7f9fc;
	--cse-success: #18794e;
	--cse-danger: #b42318;
	--cse-radius: 16px;
	--cse-shadow: 0 24px 70px rgba(15, 23, 42, .24);
	--cse-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------
   Cardul din checkout
------------------------------------------------------------------- */
.cse-row td { padding: 10px 0 !important; border: 0 !important; }
.cse-card,
.cse-card * { box-sizing: border-box; }
.cse-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: linear-gradient(135deg, #fff 0%, var(--cse-blue-soft) 100%);
	border: 1.5px solid var(--cse-line);
	border-radius: var(--cse-radius);
	font-family: var(--cse-font);
	transition: border-color .22s ease, box-shadow .22s ease;
}
.cse-card--selected {
	border-color: var(--cse-blue);
	box-shadow: 0 5px 18px rgba(27, 101, 195, .14);
}
.cse-card__icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 13px;
	background: var(--cse-blue);
	color: #fff;
}
.cse-card__icon svg { width: 24px; height: 24px; }
.cse-card__icon--empty { background: var(--cse-blue-soft); color: var(--cse-blue); }
.cse-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cse-card__label {
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .055em;
	text-transform: uppercase;
	color: var(--cse-blue);
}
.cse-card__name { font-size: 15px; font-weight: 750; color: var(--cse-ink); line-height: 1.3; }
.cse-card__address,
.cse-card__schedule { font-size: 13px; color: var(--cse-muted); line-height: 1.42; }
.cse-btn {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 10px 18px;
	border-radius: 12px;
	border: 1.5px solid transparent;
	font: 700 13.5px/1 var(--cse-font);
	cursor: pointer;
	transition: transform .14s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.cse-btn:active { transform: scale(.97); }
.cse-btn:focus-visible { outline: 3px solid rgba(27, 101, 195, .25); outline-offset: 2px; }
.cse-btn--primary { background: var(--cse-blue); color: #fff; box-shadow: 0 4px 14px rgba(27, 101, 195, .28); }
.cse-btn--primary:hover { background: var(--cse-blue-dark); color: #fff; }
.cse-btn--ghost { background: #fff; color: var(--cse-blue); border-color: var(--cse-line); }
.cse-btn--ghost:hover { border-color: var(--cse-blue); }

/* ------------------------------------------------------------------
   Modal / bottom sheet
------------------------------------------------------------------- */
.cse-modal,
.cse-modal * { box-sizing: border-box; }
.cse-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	font-family: var(--cse-font);
	isolation: isolate;
}
.cse-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 20, 35, .58);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
	animation: cse-fade-in .2s ease both;
}
.cse-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 640px;
	height: min(92dvh, 840px);
	max-height: calc(100vh - 14px);
	display: flex;
	flex-direction: column;
	background: var(--cse-surface);
	border: 1px solid rgba(255,255,255,.65);
	border-radius: 26px 26px 0 0;
	box-shadow: var(--cse-shadow);
	overflow: hidden;
	outline: none;
	animation: cse-sheet-up .3s cubic-bezier(.22, 1, .36, 1) both;
	will-change: transform;
}
.cse-modal.is-closing .cse-modal__backdrop { animation: cse-fade-out .18s ease both; }
.cse-modal.is-closing .cse-modal__panel { animation: cse-sheet-down .19s ease both; }
.cse-modal__panel.is-dragging { transition: none !important; }

@media (min-width: 641px) {
	.cse-modal { align-items: center; padding: 24px; }
	.cse-modal__panel {
		height: min(84dvh, 760px);
		max-height: 84vh;
		border-radius: 26px;
		animation-name: cse-pop-in;
	}
	.cse-modal.is-closing .cse-modal__panel { animation-name: cse-pop-out; }
}

@keyframes cse-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cse-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cse-sheet-up { from { transform: translate3d(0, 38px, 0); opacity: 0; } to { transform: translate3d(0, 0, 0); opacity: 1; } }
@keyframes cse-sheet-down { from { transform: translate3d(0, 0, 0); opacity: 1; } to { transform: translate3d(0, 110%, 0); opacity: .7; } }
@keyframes cse-pop-in { from { transform: scale(.965) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes cse-pop-out { from { transform: scale(1); opacity: 1; } to { transform: scale(.975); opacity: 0; } }

.cse-modal__progress {
	position: absolute;
	z-index: 8;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
}
.cse-modal.is-loading .cse-modal__progress { opacity: 1; }
.cse-modal__progress span {
	display: block;
	width: 38%;
	height: 100%;
	background: linear-gradient(90deg, transparent, var(--cse-blue), transparent);
	animation: cse-progress 1.05s ease-in-out infinite;
}
@keyframes cse-progress { from { transform: translateX(-120%); } to { transform: translateX(360%); } }

.cse-modal__grab {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 18px;
	flex: 0 0 18px;
	touch-action: none;
}
.cse-modal__grab span { width: 42px; height: 5px; border-radius: 999px; background: #d7dee8; }
@media (min-width: 641px) { .cse-modal__grab { display: none; } }

.cse-modal__header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 8px 18px 12px;
	background: rgba(255,255,255,.96);
	touch-action: none;
}
.cse-modal__title { margin: 0; color: var(--cse-ink); font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.cse-modal__help { margin: 4px 0 0; color: var(--cse-muted); font-size: 12.5px; line-height: 1.35; }
.cse-modal__close {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 15px;
	background: #f0f4f8;
	color: #475467;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background .18s ease, color .18s ease, transform .12s ease;
}
.cse-modal__close svg { width: 22px; height: 22px; }
.cse-modal__close:hover { background: #e5ebf2; color: var(--cse-ink); }
.cse-modal__close:active { transform: scale(.94); }
.cse-modal__close:focus-visible { outline: 3px solid rgba(27,101,195,.25); outline-offset: 2px; }

.cse-modal__toolbar {
	flex: 0 0 auto;
	padding: 0 18px 12px;
	background: #fff;
	border-bottom: 1px solid #edf1f6;
}
.cse-locate {
	width: 100%;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 11px 14px;
	border: 1.5px solid rgba(27, 101, 195, .28);
	border-radius: 14px;
	background: var(--cse-blue-soft);
	color: var(--cse-blue);
	font: 750 13.5px/1.25 var(--cse-font);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.cse-locate:hover { background: #e4effc; border-color: var(--cse-blue); }
.cse-locate:active { transform: scale(.985); }
.cse-locate:focus-visible { outline: 3px solid rgba(27,101,195,.24); outline-offset: 2px; }
.cse-locate:disabled { cursor: wait; opacity: .72; }
.cse-locate__icon { flex: 0 0 21px; width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; }
.cse-locate__icon svg { width: 21px; height: 21px; }
.cse-locate.is-loading .cse-locate__icon { animation: cse-spin .9s linear infinite; }
@keyframes cse-spin { to { transform: rotate(360deg); } }

.cse-location-status {
	min-height: 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--cse-muted);
}
.cse-location-status:not(:empty) { padding-top: 8px; }
.cse-location-status.is-success { color: var(--cse-success); }
.cse-location-status.is-error { color: var(--cse-danger); }
.cse-location-status.is-loading { color: var(--cse-blue); }

.cse-modal__filters { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 10px; margin-top: 10px; }
.cse-search { position: relative; display: block; min-width: 0; }
.cse-search > span {
	position: absolute;
	left: 14px;
	top: 50%;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	color: #7b8798;
	pointer-events: none;
}
.cse-search svg { width: 20px; height: 20px; }
.cse-input,
.cse-select {
	width: 100%;
	min-height: 48px;
	border: 1.5px solid var(--cse-line);
	border-radius: 14px;
	background: #f8fafc;
	color: var(--cse-ink);
	font: 500 14px/1.2 var(--cse-font);
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.cse-input { padding: 11px 14px 11px 44px; }
.cse-select { padding: 11px 36px 11px 13px; cursor: pointer; }
.cse-input::placeholder { color: #8a96a8; opacity: 1; }
.cse-input:focus,
.cse-select:focus { border-color: var(--cse-blue); box-shadow: 0 0 0 3px rgba(27,101,195,.13); background: #fff; }

.cse-modal__list {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 10px 12px 20px;
	background: var(--cse-bg);
	overscroll-behavior-y: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable;
}
.cse-results { min-height: 100%; }
.cse-sentinel { width: 100%; height: 1px; }

.cse-locker {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 72px;
	margin: 0 0 9px;
	padding: 12px 13px;
	text-align: left;
	background: #fff;
	border: 1.5px solid var(--cse-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(16,24,40,.025);
	cursor: pointer;
	font-family: var(--cse-font);
	-webkit-tap-highlight-color: transparent;
	transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .1s ease;
	content-visibility: auto;
	contain-intrinsic-size: 76px;
}
.cse-locker:hover { border-color: #9fbfe7; background: #fbfdff; box-shadow: 0 4px 14px rgba(27,101,195,.08); }
.cse-locker:active { transform: scale(.992); }
.cse-locker:focus-visible { outline: 3px solid rgba(27,101,195,.28); outline-offset: 2px; }
.cse-locker:disabled { cursor: wait; }
.cse-locker--active { border-color: var(--cse-blue); background: var(--cse-blue-soft); box-shadow: 0 0 0 1px rgba(27,101,195,.08); }
.cse-locker__pin {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--cse-blue-soft);
	color: var(--cse-blue);
}
.cse-locker--active .cse-locker__pin { background: var(--cse-blue); color: #fff; }
.cse-locker__pin svg { width: 20px; height: 20px; }
.cse-locker__info { flex: 1 1 auto; min-width: 0; }
.cse-locker__name { display: block; color: var(--cse-ink); font-size: 14.5px; font-weight: 780; line-height: 1.28; }
.cse-locker__meta { display: block; margin-top: 3px; color: var(--cse-muted); font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.cse-locker__aside { flex: 0 0 auto; max-width: 118px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.cse-locker__distance,
.cse-locker__badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; white-space: nowrap; }
.cse-locker__distance { padding: 4px 9px; color: var(--cse-blue); background: var(--cse-blue-soft); font-size: 11.5px; font-weight: 800; }
.cse-locker__badge { padding: 4px 9px; color: #b66205; background: #fff2df; font-size: 10.5px; font-weight: 750; }
.cse-locker__saving {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	border-radius: inherit;
	background: rgba(255,255,255,.82);
	backdrop-filter: blur(2px);
}
.cse-locker__saving::after { content: ""; width: 24px; height: 24px; border: 3px solid #dce8f7; border-top-color: var(--cse-blue); border-radius: 50%; animation: cse-spin .75s linear infinite; }
.cse-locker.is-saving .cse-locker__saving { display: flex; }

.cse-skeleton {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	margin: 0 0 9px;
	padding: 12px 13px;
	border: 1px solid #e7edf5;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
}
.cse-skeleton__pin,
.cse-skeleton__text i,
.cse-skeleton__badge {
	position: relative;
	display: block;
	background: #e9eef5;
	overflow: hidden;
}
.cse-skeleton__pin::after,
.cse-skeleton__text i::after,
.cse-skeleton__badge::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent);
	animation: cse-shimmer 1.15s ease-in-out infinite;
}
.cse-skeleton__pin { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; }
.cse-skeleton__text { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.cse-skeleton__text i:first-child { width: 62%; height: 13px; border-radius: 7px; }
.cse-skeleton__text i:last-child { width: 84%; height: 10px; border-radius: 6px; }
.cse-skeleton__badge { flex: 0 0 70px; height: 22px; border-radius: 999px; }
@keyframes cse-shimmer { 100% { transform: translateX(100%); } }

.cse-load-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 15px 10px 8px;
	color: var(--cse-muted);
	font-size: 12.5px;
	font-weight: 650;
}
.cse-load-more[hidden] { display: none !important; }
.cse-load-more > span:first-child { width: 18px; height: 18px; border: 2px solid #d7e2f0; border-top-color: var(--cse-blue); border-radius: 50%; animation: cse-spin .8s linear infinite; }

.cse-empty {
	min-height: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px 24px;
	text-align: center;
	color: var(--cse-muted);
}
.cse-empty > span { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; margin-bottom: 13px; color: #8fb2df; }
.cse-empty svg { width: 50px; height: 50px; }
.cse-empty strong { color: var(--cse-ink); font-size: 15px; font-weight: 800; }
.cse-empty p { max-width: 330px; margin: 7px 0 0; font-size: 13px; line-height: 1.45; }
.cse-empty button { margin-top: 14px; min-height: 42px; padding: 9px 18px; border: 0; border-radius: 12px; background: var(--cse-blue); color: #fff; font: 750 13px/1 var(--cse-font); cursor: pointer; }
.cse-empty--compact { min-height: 190px; }
.cse-empty--compact > span { width: 38px; height: 38px; }
.cse-empty--compact svg { width: 34px; height: 34px; }
.cse-empty--error > span { border-radius: 50%; background: #fff0ef; color: var(--cse-danger); font-size: 24px; font-weight: 800; }

.cse-modal__footer {
	flex: 0 0 auto;
	min-height: 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 18px max(10px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--cse-line);
	background: rgba(255,255,255,.96);
}
.cse-modal__count { min-width: 0; color: var(--cse-muted); font-size: 12px; font-weight: 600; line-height: 1.3; }
.cse-modal__footer-close {
	display: none;
	flex: 0 0 auto;
	min-width: 76px;
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid var(--cse-line);
	border-radius: 11px;
	background: #f7f9fc;
	color: var(--cse-ink);
	font: 750 12.5px/1 var(--cse-font);
	cursor: pointer;
}

.cse-toast {
	position: absolute;
	z-index: 20;
	left: 50%;
	bottom: calc(64px + env(safe-area-inset-bottom));
	max-width: calc(100% - 32px);
	padding: 11px 15px;
	border-radius: 12px;
	background: #1f2937;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 12px 30px rgba(15,23,42,.25);
	opacity: 0;
	transform: translate(-50%, 12px);
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
}
.cse-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cse-toast.is-error { background: #9f231b; }
.cse-toast.is-success { background: #156b45; }

body.cse-modal-open { overflow: hidden !important; overscroll-behavior: none; }
.cse-block-wrap { margin: 14px 0 4px; }
.cse-block-wrap .cse-card { box-sizing: border-box; }

/* ------------------------------------------------------------------
   Mulțumire / comandă
------------------------------------------------------------------- */
.cse-thankyou {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 28px;
	padding: 18px 20px;
	background: linear-gradient(135deg, #fff 0%, var(--cse-blue-soft) 100%);
	border: 1.5px solid var(--cse-blue);
	border-radius: var(--cse-radius);
	font-family: var(--cse-font);
}
.cse-thankyou__icon { flex: 0 0 48px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--cse-blue); color: #fff; }
.cse-thankyou__icon svg { width: 26px; height: 26px; }
.cse-thankyou p { margin: 0; }
.cse-thankyou__label { font-size: 11px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; color: var(--cse-blue); }
.cse-thankyou__name { font-size: 16px; font-weight: 750; color: var(--cse-ink); }
.cse-thankyou__address { font-size: 13.5px; color: var(--cse-muted); }

/* ------------------------------------------------------------------
   Telefon
------------------------------------------------------------------- */
@media (max-width: 640px) {
	.cse-modal__panel {
		height: calc(100dvh - max(8px, env(safe-area-inset-top)));
		max-height: calc(100vh - 8px);
		border-radius: 26px 26px 0 0;
	}
	.cse-modal__header { padding: 6px 14px 10px; }
	.cse-modal__title { font-size: 18px; }
	.cse-modal__help { font-size: 12px; }
	.cse-modal__close { flex-basis: 46px; width: 46px; height: 46px; }
	.cse-modal__toolbar { padding: 0 14px 10px; }
	.cse-modal__filters { grid-template-columns: 1fr; gap: 8px; }
	.cse-input,
	.cse-select { min-height: 48px; font-size: 16px; }
	.cse-modal__list { padding: 9px 10px 18px; }
	.cse-locker { min-height: 76px; padding: 12px; border-radius: 15px; }
	.cse-locker__name { font-size: 14px; }
	.cse-locker__meta { white-space: normal; }
	.cse-locker__aside { max-width: 92px; }
	.cse-locker__badge { white-space: normal; text-align: center; line-height: 1.15; }
	.cse-modal__footer { padding-left: 14px; padding-right: 14px; }
	.cse-modal__footer-close { display: inline-flex; align-items: center; justify-content: center; }
	.cse-modal__count { font-size: 11.5px; }
	.cse-toast { bottom: calc(70px + env(safe-area-inset-bottom)); }
	.cse-card { flex-wrap: wrap; }
	.cse-card__body { flex-basis: calc(100% - 58px); }
	.cse-btn { flex-basis: 100%; min-height: 44px; padding: 12px; text-align: center; }
}

@media (max-width: 390px) {
	.cse-locker__pin { flex-basis: 36px; width: 36px; height: 36px; }
	.cse-locker__aside { max-width: 78px; }
	.cse-locker__distance { padding: 4px 7px; font-size: 10.5px; }
	.cse-locker__badge { padding: 4px 7px; font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.cse-modal__backdrop,
	.cse-modal__panel,
	.cse-modal__progress span,
	.cse-skeleton__pin::after,
	.cse-skeleton__text i::after,
	.cse-skeleton__badge::after,
	.cse-locate.is-loading .cse-locate__icon,
	.cse-load-more > span:first-child,
	.cse-locker__saving::after { animation: none !important; }
	.cse-locker,
	.cse-btn,
	.cse-modal__close,
	.cse-toast { transition: none !important; }
}
