/* Bellatique — кабінет і бонуси. Кольори узгоджені з темою, але змінні мають власний префікс --bqa-:
   тема в css/bellatique.css оголошує --bq-ink/--bq-muted/--bq-line/--bq-head/--bq-radius з ІНШИМИ значеннями,
   і зі спільними іменами заголовок картки на сторінці входу ставав майже білим. */
:root {
	--bqa-blue: #1976D2;
	--bqa-blue-dark: #1565C0;
	--bqa-blue-soft: #EEF5FB;
	--bqa-line: #D6E6F5;
	--bqa-ink: #3C3C3C;
	--bqa-head: #1C2430;
	--bqa-muted: #6F7A86;
	--bqa-red: #E23D57;
	--bqa-green: #1E7B34;
	--bqa-green-soft: #E6F4EA;
	--bqa-amber: #8A5A00;
	--bqa-amber-soft: #FFF4D6;
	--bqa-radius: 16px;
}
.bq-card { background: #fff; border: 1px solid var(--bqa-line); border-radius: var(--bqa-radius); padding: 28px; }
.bq-auth { display: flex; justify-content: center; padding: 32px 16px 56px; background: var(--bqa-blue-soft); border-radius: var(--bqa-radius); }
.bq-auth__card { width: 100%; max-width: 460px; box-shadow: 0 12px 32px rgba(25, 118, 210, .08); }
.bq-auth__title { font-family: 'Bona Nova', serif; font-size: 30px; line-height: 1.15; margin: 0 0 6px; color: var(--bqa-head); }
.bq-auth__lead { color: var(--bqa-muted); margin: 0; font-size: 15px; line-height: 1.5; }
.bq-perks { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--bqa-blue-soft); border-radius: 12px; font-size: 14px; color: var(--bqa-ink); }
.bq-perks li { display: flex; gap: 8px; align-items: baseline; }
.bq-perks li::before { content: '✓'; color: var(--bqa-blue); font-weight: 700; }
.bq-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.bq-form[hidden] { display: none; }
.bq-field { display: flex; flex-direction: column; gap: 6px; }
.bq-field__label { font-size: 13px; font-weight: 600; color: var(--bqa-ink); }
.bq-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--bqa-line); border-radius: 12px; font: inherit; font-size: 16px; color: var(--bqa-ink); background: #fff; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.bq-input:focus { outline: none; border-color: var(--bqa-blue); box-shadow: 0 0 0 3px rgba(25, 118, 210, .15); }
.bq-input--code { letter-spacing: .4em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.bq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, opacity .15s; }
.bq-btn--primary { background: var(--bqa-blue); color: #fff; }
.bq-btn--primary:hover { background: var(--bqa-blue-dark); color: #fff; }
.bq-btn--ghost { background: var(--bqa-blue-soft); color: var(--bqa-blue); }
.bq-btn:disabled, .is-busy .bq-btn { opacity: .6; cursor: progress; }
.bq-link { align-self: flex-start; background: none; border: 0; padding: 2px 0; color: var(--bqa-blue); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.bq-link:disabled { color: var(--bqa-muted); cursor: default; }
.bq-msg { min-height: 1.2em; margin: 0; font-size: 14px; color: var(--bqa-red); }
.bq-msg.is-ok { color: var(--bqa-green); }
.bq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bq-empty { color: var(--bqa-muted); }
.bq-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Кабінет */
.bq-account-page .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; padding: 32px 0 64px; } /* без отступа карточки липнут к полосе хлебных крошек и к подвалу */
.bq-account-page .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--bqa-line); border-radius: var(--bqa-radius); }
.bq-account-page .woocommerce-MyAccount-navigation a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--bqa-ink); text-decoration: none; font-weight: 500; }
.bq-account-page .woocommerce-MyAccount-navigation .is-active a { background: var(--bqa-blue-soft); color: var(--bqa-blue); font-weight: 600; }
.bq-account-page .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--bqa-muted); }
.bq-account-page .woocommerce-MyAccount-content { min-width: 0; }
.bq-account-page .woocommerce > .bq-auth { grid-column: 1 / -1; }
/* Шорткод [products] во вкладке «Обране» тоже оборачивает сетку в div.woocommerce — правило выше не должно делать из неё колонки и отступы кабінету */
.bq-account-page .woocommerce-MyAccount-content .woocommerce { display: block; padding: 0; }
.bq-account { display: flex; flex-direction: column; gap: 20px; }
.bq-account h2 { font-family: 'Bona Nova', serif; font-size: 24px; color: var(--bqa-head); margin: 0 0 14px; }
.bq-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.bq-badge--ok { background: var(--bqa-green-soft); color: var(--bqa-green); }
.bq-badge--wait { background: var(--bqa-amber-soft); color: var(--bqa-amber); }
.bq-badge--no { background: #FDECEF; color: var(--bqa-red); }
.bq-doctor { margin: -6px 0 14px; font-size: 15px; font-weight: 600; color: var(--bqa-blue); }
.bq-phone__row { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; font-size: 17px; }
.bq-docs { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bq-docs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--bqa-line); border-radius: 12px; }
.bq-docs small { flex-basis: 100%; color: var(--bqa-red); }
.bq-upload { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px dashed var(--bqa-blue); border-radius: 12px; color: var(--bqa-blue); font-weight: 600; cursor: pointer; }
.bq-upload input { display: none; }
.bq-balance { background: linear-gradient(135deg, var(--bqa-blue-soft), #fff 70%); }
.bq-balance__value { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 48px; line-height: 1; color: var(--bqa-blue); margin: 4px 0 10px; font-variant-numeric: lining-nums tabular-nums; } /* у Bona Nova старинные цифры: «1500» прыгает по высоте */
.bq-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bq-history li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--bqa-line); border-radius: 12px; background: #fff; }
.bq-plus { color: var(--bqa-green); font-weight: 700; white-space: nowrap; }
.bq-minus { color: var(--bqa-red); font-weight: 700; white-space: nowrap; }
.bq-orders { display: flex; flex-direction: column; gap: 12px; }
.bq-order__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bq-order__sum { text-align: right; }
.bq-order__items { margin: 12px 0 8px; padding: 12px 0 0; border-top: 1px solid var(--bqa-line); list-style: none; font-size: 14px; color: var(--bqa-muted); }

/* Оформлення: бонуси */
.bq-bonus { margin: 0 0 16px; padding: 16px; border: 1px solid var(--bqa-line); border-radius: 12px; background: var(--bqa-blue-soft); }
.bq-bonus__toggle { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.bq-bonus__toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--bqa-blue); }
.bq-bonus__row { display: flex; gap: 8px; margin-top: 10px; }
.bq-bonus__row input { width: 120px; height: 42px; padding: 0 10px; border: 1px solid var(--bqa-line); border-radius: 10px; font: inherit; background: #fff; }
.bq-bonus__row .bq-btn { min-height: 42px; padding: 0 18px; border-radius: 10px; }
/* Сумму бонусов checkout-bonus.js переносит в строку темы «Знижка»; своя строка сбора тогда не нужна */
.woocommerce-checkout-review-order-table tr.fee.bq-fee-moved { display: none; }
.bq-bonus-hint { margin: 8px 0 0; font-size: 13px; color: var(--bqa-muted); }
.bq-bonus__invite { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--bqa-ink); }
.bq-bonus--guest .bq-btn { min-height: 42px; padding: 0 18px; border-radius: 10px; background: #fff; border: 1px solid var(--bqa-line); }
.bq-bonus--guest .bq-btn:hover { border-color: var(--bqa-blue); }

@media (max-width: 860px) {
	.bq-account-page .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 0 40px; } /* не 1fr: иначе строка вкладок без переноса растягивает колонку шире экрана */
	/* Вкладки переносом, а не прокруткой: при прокрутке «Бонуси» и «Вийти» уходили за край без намёка, что там что-то есть */
	.bq-account-page .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 4px; }
	.bq-account-page .woocommerce-MyAccount-navigation a { white-space: nowrap; padding: 10px 12px; font-size: 15px; }
	.bq-grid-2 { grid-template-columns: 1fr; }
	.bq-card { padding: 20px; }
	.bq-auth__title { font-size: 26px; }
}
