/* CURRENCY_VAT_1, прогон 4, K3 раздел 9 «Внешний вид». Подключается в <head> хуком index:head_scripts
   (design/themes/nova_theme/templates/addons/go4trans_design/hooks/index/head_scripts.post.tpl): {style src="addons/go4trans_design/shop_look.css?v=N"}.
   Новых цветов нет — только из описи (R4_9_DESIGN.md): #165fc8 основная кнопка / ссылки, #23252b текст, #929ba8 вторичный текст,
   #e1e5ec рамки полей и плиток, #f5f5f5 третичная кнопка, #fff. Радиусы — переменные темы. */

/* ── п. 1: переключатель валют — рядом с My Account, заметный ───────────────────────────────────────────────── */
.g4t-cur {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid #e1e5ec;
  border-radius: var(--cs-base-rounded-corners-radius, 16px);
  background: #fff;
  vertical-align: middle;
}
.g4t-cur__i,
.g4t-cur__i:visited {
  display: inline-block;
  min-width: 30px;
  box-sizing: border-box;
  padding: 4px 9px;
  border-radius: var(--cs-base-rounded-corners-radius, 16px);
  color: #23252b;
  font-size: var(--cs-font-size-small, 14px);
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.g4t-cur__i:hover,
.g4t-cur__i:focus { background: #f5f5f5; color: #23252b; text-decoration: none; }
.g4t-cur__i.is-active,
.g4t-cur__i.is-active:hover { background: #165fc8; color: #fff; cursor: default; }
.top-currencies { padding-top: 4px; padding-bottom: 4px; }
@media (min-width: 768px) {
  /* ячейки верхней панели: ссылки — валюта — My Account, прижаты вправо (в разметке валюта первая: меняется только
     зрительный порядок). Ячейки темы здесь — по ширине содержимого; у блока ссылок тема задаёт max-width: 100%, из-за
     чего во flex-строке он сжимался до одного слова в строке — поэтому max-width: none и запрет переноса. */
  .tygh-top-panel .row-fluid:has(.g4t-cur) { display: flex; align-items: center; justify-content: flex-end; }
  .tygh-top-panel .row-fluid:has(.g4t-cur) > [class*="span"] { float: none; min-height: 0; flex: 0 0 auto; }
  .tygh-top-panel .row-fluid:has(.g4t-cur) > [class*="span"]:has(.top-quick-links) { order: 1; }
  .tygh-top-panel .row-fluid:has(.g4t-cur) > [class*="span"]:has(.g4t-cur) { order: 2; text-align: right; }
  .tygh-top-panel .row-fluid:has(.g4t-cur) > [class*="span"]:has(.top-my-account) { order: 3; }
  .tygh-top-panel .row-fluid:has(.g4t-cur) .top-currencies { float: none; display: inline-block; }
}
@media (min-width: 1025px) {
  .tygh-top-panel .row-fluid:has(.g4t-cur) .top-quick-links { float: none; max-width: none; text-align: right; }
  .tygh-top-panel .row-fluid:has(.g4t-cur) .top-quick-links .ty-text-links_show_inline { white-space: nowrap; }
}
/* ── корзина: панель кнопок не закрепляется поверх строк «Charged in» / «Total cost» (тема: sticky от 1200 px) ── */
@media (min-width: 1200px) {
  .ty-cart-content__bottom-buttons { position: static; }
}

/* ── п. 4: оформление — одна колонка, поля одного вида, без цветных блоков ─────────────────────────────────── */
.litecheckout__form #litecheckout_payments_form { max-width: 640px; }
#litecheckout_payments_form .litecheckout__field,
#litecheckout_payments_form .litecheckout__field--xsmall,
#litecheckout_payments_form .litecheckout__field--small,
#litecheckout_payments_form .litecheckout__field--medium,
#litecheckout_payments_form .litecheckout__field--large,
#litecheckout_payments_form .litecheckout__field--xlarge,
#litecheckout_payments_form .litecheckout__field--fill {
  flex: 0 0 calc(100% - 1rem);
  max-width: calc(100% - 1rem);
  min-width: 0;
}
/* заголовок шага — своя строка над полями (был в одной строке с Country / State / City) */
#litecheckout_step_location > .litecheckout__group > .litecheckout__item { flex: 0 0 calc(100% - 1rem); }
/* списки Country / State — рамка, высота и радиус как у текстовых полей */
#litecheckout_payments_form select.litecheckout__input--selectable--select,
#litecheckout_payments_form .litecheckout__select {
  height: 40px;
  border: 1px solid #e1e5ec;
  border-radius: var(--cs-input-rounded-corners-radius, 5px);
  background-color: #fff;
  font-size: 16px;
  color: #23252b;
}
#litecheckout_payments_form select.litecheckout__input--selectable--select:hover,
#litecheckout_payments_form .litecheckout__select:hover { border-color: #c2cad8; }
/* улица — сразу под индексом, без отступа «нового шага» */
#litecheckout_payments_form [data-ca-lite-checkout-element="address-group"] { margin-top: -0.5rem; }
/* плитки доставки и оплаты — ниже (были 130 px) */
#litecheckout_payments_form .litecheckout__shipping-method,
#litecheckout_payments_form .litecheckout__shipping-method__wrapper { height: auto; min-height: 72px; }
#litecheckout_payments_form .litecheckout__shipping-method__wrapper { padding: 10px 0; box-sizing: border-box; }
/* «International shipment» на оформлении — как остальные блоки страницы: белый, серая рамка */
/* у блока стили в атрибуте style (intl_notice.tpl) — поэтому !important; полоса слева (#e0a800) остаётся */
.litecheckout .g4t-ship-note--intl {
  background: #fff !important;
  border-top: 1px solid #e1e5ec;
  border-right: 1px solid #e1e5ec;
  border-bottom: 1px solid #e1e5ec;
  border-radius: var(--cs-input-rounded-corners-radius, 5px);
}
/* ── п. 8: кнопки PayPal не шире 360 px ─────────────────────────────────────────────────────────────────────── */
.ty-paypal-checkout-buttons-container,
#smart-button-container { max-width: 360px; }

/* ── п. 6: страница «заказ принят» (overrides/views/checkout/complete.tpl) ─────────────────────────────────── */
.g4t-done { max-width: 760px; }
.g4t-done__next p { margin: 0 0 6px; font-size: 16px; }
.g4t-done__card {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e1e5ec;
  border-radius: var(--cs-border-radius-small, 12px);
  background: #fff;
  font-size: 16px;
  line-height: 1.45;
  color: #23252b;
}
.g4t-done__pay { float: none; margin: 16px 0 0; }
.g4t-done__pay .ty-subheader { margin-top: 0; }
.g4t-done__blocks { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 20px; }
.g4t-done__blocks > .g4t-core-order { order: 1; }
.g4t-done__blocks > .cp-cbv-rest { order: 2; }
.g4t-done__blocks > .g4t-account-complete { order: 3; }
.g4t-done__blocks > .g4t-done__card { margin: 0; font-size: 16px; }
.g4t-rest-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0; }
.g4t-rest-line + .g4t-rest-line { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e1e5ec; }
.g4t-rest-line .ty-btn { margin: 0; }
.g4t-account-complete__text { margin: 0 0 10px; }
.g4t-account-complete .ty-btn { margin: 0; }
/* ── CURRENCY_VAT_1 run 5 (K4 5.5 – 5.8) ─────────────────────────────────────────────────────────────────────────────
   Colours and radii only from the inventory of run 4: #165fc8 #23252b #5f6773 #929ba8 #e1e5ec #c2cad8 #f5f5f5 #fff. */

/* «?» with a hint (common/help.tpl inside .g4t-tip; the hint itself — feature_tip.css) — was in the styles of the core block only */
.g4t-tip { display: inline-block; vertical-align: baseline; }
.g4t-tip .ty-help-info > a { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #f5f5f5; color: #23252b; font-size: 12px; font-weight: bold; line-height: 18px; text-align: center; text-decoration: none; }
.g4t-tip .ty-help-info > a:hover, .g4t-tip .ty-help-info > a:focus { background: #165fc8; color: #fff; }

/* 5.5 / 5.6: under the total of a seller — the VAT inside the amounts, «Charged in …» (only for another currency) */
.g4t-sum__vat, .g4t-sum__charged, .ty-checkout-summary .ty-checkout-summary__total .g4t-sum__vat, .ty-checkout-summary .ty-checkout-summary__total .g4t-sum__charged, .g4t-cartcard .g4t-sum__vat, .g4t-cartcard .g4t-sum__charged { margin-top: 4px; font-size: 13px; font-weight: normal; line-height: 1.4; color: #5f6773; text-align: right; }
.g4t-sum__charged .g4t-charged-value { color: #23252b; font-weight: bold; }
.ty-checkout-summary .ty-checkout-summary__total .g4t-sum__vat, .ty-checkout-summary .ty-checkout-summary__total .g4t-sum__charged { text-align: left; }
.g4t-sum .ty-checkout-summary__block + .ty-checkout-summary__block { margin-top: 16px; }

/* 5.8: the cart — one card per seller */
.g4t-cartcards__note { margin: 0 0 12px; font-size: 14px; color: #5f6773; }
.g4t-cartcard { border: 1px solid #e1e5ec; border-radius: var(--cs-base-rounded-corners-radius, 16px); background: #fff; margin: 0 0 20px; padding: 0 16px 16px; }
.g4t-cartcard__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 0 12px; border-bottom: 1px solid #e1e5ec; }
.g4t-cartcard .g4t-cartcard__seller, .g4t-cartcard .g4t-cartcard__seller a { font-size: 18px; font-weight: bold; line-height: 1.3; color: #23252b; text-decoration: none; }
.g4t-cartcard__seller a:hover { color: #165fc8; }
.g4t-cartcard__from { font-size: 14px; color: #5f6773; }
.g4t-cartcard__table { margin: 0; width: 100%; }
.g4t-cartcard__table thead th { background: transparent; font-size: 13px; font-weight: normal; color: #929ba8; padding-top: 10px; padding-bottom: 6px; }
.g4t-cart-remove { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 10px; border-radius: var(--cs-border-radius-small, 12px); background: #f5f5f5; color: #23252b; font-size: 13px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.g4t-cart-remove:hover, .g4t-cart-remove:focus { background: #e1e5ec; color: #23252b; text-decoration: none; }
.g4t-cart-remove__icon { flex: 0 0 auto; }
.ty-cart-content__qty .g4t-cart-remove { float: none; position: static; width: auto; height: auto; }
.g4t-cartcard__foot { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding-top: 14px; border-top: 1px solid #e1e5ec; }
.g4t-cartcard__sum { width: 100%; max-width: 420px; font-size: 15px; color: #23252b; }
.g4t-cartcard__row { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.g4t-cartcard__row > span:last-child { text-align: right; white-space: nowrap; }
.g4t-cartcard__calc { color: #165fc8; text-decoration: underline; }
.g4t-cartcard__calc--change { margin-left: 6px; font-size: 13px; }
.g4t-cartcard__total { margin-top: 6px; padding-top: 8px; border-top: 1px solid #e1e5ec; font-size: 18px; font-weight: bold; }
.g4t-cartcard__actions .ty-btn { margin: 0; }
.g4t-cartcard__actions .cp-cbv-vendor__note { font-size: 14px; color: #5f6773; }
/* no total of the whole cart; the «Proceed to checkout» of the theme under the cart repeats the button of the card */
.g4t-cart-total--none { margin: 0; padding: 0; border: 0; min-height: 0; }
#checkout_form_wrapper:has(.g4t-cartcard) ~ .ty-cart-content__bottom-buttons .ty-cart-content__right-buttons .ty-btn__primary { display: none; }
#checkout_form_wrapper:has(.g4t-cartcard) .ty-cart-content__top-buttons .ty-cart-content__right-buttons .ty-btn__primary { display: none; }
body:has(.g4t-cartcards--several) #cart_bottom_fixed { display: none; }
/* run 6 (K5 5.2): a seller that does not ship to the country of the buyer — the checkout button of its card is not active,
   the line under it tells what to do; the fixed bar of the phone (total + «Proceed to checkout») is not shown */
.g4t-cartcard--noship .g4t-cartcard__actions, .g4t-cartcard--min .g4t-cartcard__actions { display: flex; flex-direction: column; align-items: flex-end; }
.g4t-cartcard__checkout--off, .g4t-cartcard__checkout--off:hover { opacity: .45; cursor: not-allowed; pointer-events: none; user-select: none; margin-left: auto !important; }
.g4t-cartcard__noship { flex: 0 0 100%; margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: #c9302c; text-align: right; }
body:has(.g4t-cartcards--noship) #cart_bottom_fixed { display: none; }
@media (max-width: 767px) { .g4t-cartcard__noship { text-align: left; } .g4t-cartcard--noship .g4t-cartcard__actions, .g4t-cartcard--min .g4t-cartcard__actions { align-items: stretch; } }
/* run 7 (K6 answer 67): items of a seller below the minimum for UK / EU orders — the same inactive button with
   «Add items for at least … from <seller> to order to <country>.» under it (class g4t-cartcard--min; the fixed bar of the
   phone is hidden by .g4t-cartcards--noship of the wrapper, set for both cases) */
.g4t-cartcard__min { color: #c9302c; }
/* run 7 (K6 4.4): the checkout cannot place the order (no «Place order» button: no shipping method for the address) —
   the PayPal buttons are not shown either (the script of paypal_checkout does not draw them without that button; this rule
   hides the place they would be in whatever the script does) */
#litecheckout_payments_form:not(:has([name="dispatch[checkout.place_order]"])) #smart-button-container { display: none !important; }
/* run 6 (K5 5.3): header — «My Account» and its arrow on one line */
.top-my-account .ty-account-info__title { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.top-my-account .ty-account-info__title .ty-account-info__user-arrow { flex: 0 0 auto; }
@media (max-width: 767px) {
  .g4t-cartcard { padding: 0 12px 14px; }
  .g4t-cartcard__sum { max-width: none; }
  .g4t-cartcard__actions, .g4t-cartcard__actions .ty-btn { width: 100%; box-sizing: border-box; text-align: center; }
}
/* ── run 5 (K4 5.7): the checkout ── */
/* the note of the buyer: a link, the box opens on the click */
.g4t-note { margin: 0 0 12px; }
.g4t-note__link { display: inline-block; font-size: 14px; color: #165fc8; text-decoration: underline; }
.g4t-note__box { display: none; }
.g4t-note--open .g4t-note__box { display: block; }
.g4t-note--open .g4t-note__link { display: none; }
/* the three confirmations (terms, core return policy, personal data): one look — size, spacing, the box on the left, links */
#litecheckout_terms .ty-checkout__terms, #litecheckout_terms .g4t-core-agreebox { margin: 0 0 10px; padding: 0; }
#litecheckout_terms .ty-checkout__terms .cm-field-container > label,
#litecheckout_terms .g4t-core-agreebox > label,
#litecheckout_terms .ty-gdpr-agreement { display: block; position: relative; margin: 0; padding: 0 0 0 26px; min-height: 20px; font-size: 14px; line-height: 20px; font-weight: normal; color: #23252b; text-align: left; }
#litecheckout_terms .ty-checkout__terms .cm-field-container > label > input[type=checkbox],
#litecheckout_terms .g4t-core-agreebox > label > input[type=checkbox] { position: absolute; left: 0; top: 2px; margin: 0; width: 16px; height: 16px; }
#litecheckout_terms .ty-gdpr-agreement > label { position: absolute; left: 0; top: 0; margin: 0; padding: 0; width: 16px; height: 20px; }
#litecheckout_terms .ty-gdpr-agreement > label > input[type=checkbox] { position: absolute; left: 0; top: 2px; margin: 0; width: 16px; height: 16px; }
#litecheckout_terms a, #litecheckout_terms a span, #litecheckout_terms a u { font-size: 14px; line-height: 20px; font-weight: normal; }
#litecheckout_terms .ty-license-agreement__link.ty-dashed-link,
#litecheckout_terms .g4t-core-agree__link,
#litecheckout_terms .ty-gdpr-agreement a u { color: #165fc8; text-decoration: underline; border-bottom: 0; }
#litecheckout_terms .ty-gdpr-agreement a, #litecheckout_terms .ty-gdpr-agreement a span { color: #23252b; text-decoration: none; }

/* ── run 5 (K4 5.1): the currencies — one drop-down list in the header (was a row of symbols) ── */
.g4t-cur.g4t-cur--menu { border: 0; padding: 0; background: transparent; position: relative; }
.g4t-curdd { position: relative; display: inline-block; text-align: left; }
.g4t-curdd__btn { display: inline-flex; align-items: center; gap: 5px; list-style: none; cursor: pointer; padding: 5px 12px; border: 1px solid #e1e5ec; border-radius: var(--cs-base-rounded-corners-radius, 16px); background: #fff; color: #23252b; font-size: var(--cs-font-size-small, 14px); font-weight: bold; line-height: 1.2; white-space: nowrap; user-select: none; }
.g4t-curdd__btn::-webkit-details-marker { display: none; }
.g4t-curdd__btn::marker { content: ""; }
.g4t-curdd__btn:hover, .g4t-curdd[open] > .g4t-curdd__btn { border-color: #c2cad8; background: #f5f5f5; }
.g4t-curdd__btn:focus-visible { outline: 2px solid #165fc8; outline-offset: 2px; }
.g4t-curdd__caret { font-size: 11px; color: #5f6773; }
.g4t-curdd__menu { position: absolute; z-index: 1100; top: calc(100% + 6px); right: 0; min-width: 250px; box-sizing: border-box; padding: 6px; border: 1px solid #e1e5ec; border-radius: var(--cs-border-radius-small, 12px); background: #fff; box-shadow: 0 6px 18px rgba(35, 37, 43, 0.12); }
.g4t-curdd__i, .g4t-curdd__i:visited { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--cs-border-radius-small, 12px); color: #23252b; font-size: 14px; font-weight: normal; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.g4t-curdd__i:hover, .g4t-curdd__i:focus { background: #f5f5f5; color: #23252b; text-decoration: none; }
.g4t-curdd__i.is-active { font-weight: bold; }
.g4t-curdd__check { flex: 0 0 14px; width: 14px; color: #165fc8; font-weight: bold; }
.g4t-curdd__sym { flex: 0 0 auto; min-width: 22px; font-weight: bold; }
.g4t-curdd__btn .g4t-curdd__sym { min-width: 0; }
.g4t-curdd__note { margin: 6px 4px 2px; padding: 8px 6px 2px; border-top: 1px solid #e1e5ec; font-size: 12px; line-height: 1.4; color: #5f6773; white-space: normal; }
@media (max-width: 767px) {
  /* on a phone the list stands at the left edge of the top panel */
  .g4t-curdd__menu { right: auto; left: 0; min-width: 240px; max-width: calc(100vw - 24px); }
  .g4t-curdd__i { padding: 11px 10px; }
}
/* ── run 5 (K4 answer 36): the page «Set your password» — a narrow form, as the sign-in form ── */
.g4t-setpw { max-width: 420px; }
.g4t-setpw__intro { margin: 0 0 14px; font-size: 16px; }
.g4t-setpw .ty-login__input { width: 100%; box-sizing: border-box; }
.g4t-setpw__hint { margin-top: 4px; font-size: 13px; color: #5f6773; }
.g4t-account-complete { margin: 0; font-size: 16px; }

/* CURRENCY_VAT_1 run 8 (K7 4.1): the buyer's order page — the headings «Price / Quantity / Subtotal» stand over their numbers
   (the cells are right / centre aligned by the core, the headings were left aligned) */
.ty-orders-detail__table thead th.ty-orders-detail__table-price,
.ty-orders-detail__table thead th.ty-orders-detail__table-subtotal { text-align: right; }
.ty-orders-detail__table thead th.ty-orders-detail__table-quantity { text-align: center; }
