/*
 * exposhop-returns — страница формы (экраны 1, 2, 4b) и блок в кабинете (4a).
 * Значения — из инлайн-стилей ReturnPage.dc.html. Все селекторы под .exr /
 * .exr-acc / .exr-pill: пересечений с селекторами темы и exposhop-home нет.
 * Специфичность .exr .x (0,2,0) перебивает базовые стили Astra для
 * button/input/h1 без !important.
 */
.exr {
	--exr-accent: var(--esc-accent, #d4006f);
	--exr-accent-hover: #b3005d;
	--exr-ink: #111522;
	--exr-navy: #1b2132;
	--exr-muted: #6b7080;
	--exr-text: #4a4f5e;
	--exr-line: #e3e5ea;
	--exr-err: #b42318;
	font-family: var(--exr-font, inherit);
	color: var(--exr-ink);
	-webkit-font-smoothing: antialiased;
	container-type: inline-size;
}
.exr--fonts { --exr-font: 'Rubik', 'Noto Sans Georgian', system-ui, sans-serif; }
.exr [hidden] { display: none !important; }
.exr *, .exr *::before, .exr *::after { box-sizing: border-box; }
.exr a { color: var(--exr-accent); }
.exr a:hover { color: #a80058; }

.exr .exr__band { background: #f6f6f8; padding: 20px 16px 48px; }
.exr .exr__wrap { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

.exr .exr__crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--exr-muted); }
.exr .exr__crumb { display: flex; gap: 6px; }
.exr .exr__crumbs a { color: var(--exr-muted); text-decoration: none; }
.exr .exr__crumbs a:hover { color: var(--exr-ink); }
.exr .exr__crumb-cur { color: var(--exr-ink); font-weight: 600; }
.exr .exr__crumb-sep { color: #a3a7b3; }

.exr .exr__title {
	margin: 0; font-family: inherit; color: var(--exr-ink);
	font-size: clamp(24px, 3.4cqi, 38px); line-height: 1.25; font-weight: 700;
	letter-spacing: -0.01em; text-wrap: balance; max-width: 900px;
}

.exr .exr__cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.exr .exr__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.exr .exr__main { flex: 1.7 1 340px; min-width: 0; background: #fff; border: 1px solid var(--exr-line); padding: 24px 20px; }

.exr .exr__card { background: #fff; border: 1px solid var(--exr-line); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.exr .exr__card--seller { gap: 14px; }
.exr .exr__card--order { padding: 18px 20px; }
.exr .exr__card-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.exr .exr__text { margin: 0; font-size: 14px; line-height: 1.65; color: var(--exr-text); text-wrap: pretty; }
.exr .exr__kv { display: flex; flex-direction: column; gap: 3px; }
.exr .exr__k { font-size: 12px; color: var(--exr-muted); }
.exr .exr__v { font-size: 15px; line-height: 1.45; text-decoration: none; }
.exr .exr__v--strong { font-weight: 600; }
.exr .exr__order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.exr .exr__order-no { font-size: 15px; font-weight: 600; }
.exr .exr__muted { font-size: 14px; color: #5d6272; line-height: 1.5; }

.exr .exr__hint { display: flex; gap: 12px; padding: 4px 2px; font-size: 14px; line-height: 1.55; color: var(--exr-text); }
.exr .exr__hint strong { color: var(--exr-ink); font-weight: 600; }
.exr .exr__hint-ico {
	flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--exr-accent);
	color: var(--exr-accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px;
}

/* Форма */
.exr .exr__form { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.exr .exr__intro { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 500; padding-bottom: 20px; border-bottom: 1px solid #e9eaee; text-wrap: pretty; }
.exr .exr__summary {
	display: flex; gap: 10px; align-items: flex-start; background: #fdf1f0; border: 1px solid #f1c4bf;
	color: #8f1d13; padding: 12px 14px; font-size: 14px; line-height: 1.45; font-weight: 500;
}
.exr .exr__summary-ico {
	flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--exr-err); color: #fff;
	font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px;
}
.exr .exr__generic { background: #fdf1f0; border: 1px solid #f1c4bf; color: #8f1d13; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.exr .exr__prefilled { font-size: 14px; line-height: 1.5; color: #1b5e3a; background: #eef7f1; padding: 12px 14px; }
.exr .exr__partial { font-size: 14px; line-height: 1.5; color: #8a4b00; background: #fdf0dc; padding: 12px 14px; }
.exr .exr__partial ul { margin: 6px 0 0 18px; padding: 0; }

.exr .exr__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px 16px; }
.exr .exr__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.exr .exr__label { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--exr-ink); }
.exr .exr__label-note { font-weight: 400; color: #5d6272; }
.exr .exr__req { color: var(--exr-accent); }
.exr .exr__input {
	height: 52px; width: 100%; margin: 0; padding: 0 14px; border: 1px solid #cfd3db; background: #fff; border-radius: 4px;
	font-family: inherit; font-size: 16px; line-height: normal; color: var(--exr-ink); outline: none; box-shadow: none;
}
.exr .exr__input--area { min-height: 76px; height: auto; padding: 13px 14px; line-height: 1.45; resize: vertical; }
.exr .exr__input:focus { border-color: var(--exr-navy); box-shadow: 0 0 0 3px rgba(212, 0, 111, .15); }
.exr .exr__field.is-invalid .exr__input { border-color: var(--exr-err); background: #fffafa; }
.exr .exr__err { display: flex; gap: 6px; align-items: flex-start; color: var(--exr-err); font-size: 13px; line-height: 1.4; }
.exr .exr__err-ico {
	flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--exr-err); color: #fff;
	font-size: 10px; font-weight: 700; display: grid; place-items: center; margin-top: 1px;
}
.exr .exr__legend { font-size: 13px; color: var(--exr-muted); }
.exr .exr__optional { background: #f6f6f8; border: 1px dashed #cdd0d9; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.exr .exr__optional .exr__label { line-height: 1.45; }
.exr .exr__tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--exr-text); background: #fff; border: 1px solid #d8dbe2; padding: 4px 10px; border-radius: 20px; }
.exr .exr__help { font-size: 13px; color: var(--exr-muted); line-height: 1.45; }
.exr .exr__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.exr .exr__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.exr .exr__btn {
	flex: 1 1 200px; height: 56px; margin: 0; padding: 0 16px; border-radius: 0; border: 0;
	font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: normal; text-transform: none;
	display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; text-decoration: none; cursor: pointer;
}
.exr .exr__btn--primary { background: var(--exr-accent); color: #fff; }
.exr .exr__btn--primary:hover, .exr .exr__btn--primary:focus { background: var(--exr-accent-hover); color: #fff; }
.exr .exr__btn--primary[disabled] { opacity: .6; cursor: progress; }
.exr .exr__btn--ghost { border: 1.5px solid var(--exr-navy); background: #fff; color: var(--exr-navy); font-size: 15px; }
.exr .exr__btn--ghost:hover { background: #f1f2f5; color: var(--exr-navy); }
.exr .exr__btn--block { flex: none; width: 100%; }
.exr .exr__arrow { font-size: 18px; }

/* Экран успеха */
.exr .exr__success { display: flex; flex-direction: column; gap: 20px; outline: none; }
.exr .exr__ok { width: 52px; height: 52px; border-radius: 50%; background: #e6f4ec; color: #1f7a45; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.exr .exr__success-title { margin: 0; font-family: inherit; color: var(--exr-ink); font-size: 24px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.exr .exr__date { font-size: 18px; font-weight: 600; }
.exr .exr__sent { margin: 0; font-size: 15px; line-height: 1.55; background: #f6f6f8; padding: 14px 16px; }
.exr .exr__sent strong { font-weight: 600; }
.exr .exr__recap { border-top: 1px solid #e9eaee; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.exr .exr__recap-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 14px; line-height: 1.45; }
.exr .exr__recap-row .exr__k { font-size: 14px; }
.exr .exr__recap-v { font-weight: 500; text-align: right; }

.exr .exr__custom-all { font-size: 15px; line-height: 1.6; color: var(--exr-text); background: #f6f6f8; padding: 16px 18px; }

/* Кабинет (экран 4a) — колонка «Мои заказы» и страница заказа */
.exr-pill {
	display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 600; line-height: 1.3;
	color: #a80058; background: #fbe8f2; padding: 5px 10px; border-radius: 20px; white-space: nowrap;
}
.exr-pill--warn { color: #8a4b00; background: #fdf0dc; }
.exr-acc { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 0; max-width: 240px; }
.exr-acc .exr-acc__btn {
	display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; margin: 0;
	border: 1.5px solid var(--esc-accent, #d4006f); border-radius: 0; background: #fff; color: var(--esc-accent, #d4006f);
	font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none;
	text-transform: none; letter-spacing: normal; cursor: pointer;
}
.exr-acc .exr-acc__btn:hover { background: #fbe8f2; color: var(--esc-accent, #d4006f); }
.exr-acc .exr-acc__btn[disabled] { border-color: #dcdee4; background: #f3f4f6; color: #8a8fa0; cursor: not-allowed; }
.exr-acc .exr-acc__note { font-size: 13px; line-height: 1.5; color: #5d6272; }
.exr-acc .exr-acc__note a { color: var(--esc-accent, #d4006f); }
.exr-acc-view { margin: 0 0 32px; padding: 18px; border: 1px solid #e3e5ea; background: #fff; max-width: 420px; }
/* Колонка «Мои заказы» — только наша ячейка. Узкий контент кабинета (≈716px
   на 1280) + неразрывное грузинское «ხელშეკრულებაზე»: без этого таблица
   вылезает на ~29px. Селектор сильнее .woocommerce-js table.shop_table td (0,2,2). */
.woocommerce-js table.shop_table td.woocommerce-orders-table__cell-exr-withdraw,
.woocommerce-js table.shop_table th.woocommerce-orders-table__header-exr-withdraw { padding-left: 4px; padding-right: 4px; }
.woocommerce-orders-table__cell-exr-withdraw .exr-acc .exr-acc__btn { font-size: 14px; padding: 8px 10px; }

/* Текст страницы под формой (группа .exr-page-text в контенте страницы формы):
   продолжение серой полосы формы, та же ширина контента 1160px. */
.exr-page-text {
	background: #f6f6f8; margin: 0; padding: 0 max(16px, calc((100% - 1160px) / 2)) 48px;
	font-size: 15px; line-height: 1.65; color: #4a4f5e;
}
.exr-page-text > * { max-width: 760px; }
.exr-page-text p { margin: 0 0 14px; }
.exr-page-text strong { color: #111522; font-weight: 600; }
.exr-page-text ol { margin: 0 0 14px 1.3em; padding: 0; }
.exr-page-text li { margin: 0 0 6px; }
.exr-page-text a { color: var(--esc-accent, #d4006f); }
