/* Корзина, оформление заказа и страница «заказ принят». Подключается после остальных файлов woodmart-*.css. */

/* ---------- оформление заказа ---------- */
.wo { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; margin-bottom: 30px; }
.wo-card, .wo-summary { background: #fff; border-radius: 12px; box-shadow: var(--wm-shadow-1); }
.wo-card { padding: 22px 26px 24px; }
.wo-card + .wo-card { margin-top: 18px; }
.wo-card h2, .wo-summary h2 { margin: 0 0 16px; font-size: 19px; }
.wo-card h2 .fa { width: 30px; height: 30px; margin-right: 8px; font-size: 14px; line-height: 30px; text-align: center; color: #fff; background: var(--wm-gloss); border-radius: 50%; }
.wo-card h3 { margin: 20px 0 12px; font-size: 15px; color: var(--wm-muted); font-family: "Roboto", Arial, sans-serif; font-weight: 500; }
.wo [hidden] { display: none !important; }

.wo-switch { display: inline-flex; padding: 3px; background: var(--wm-sand); border: 1px solid var(--wm-line); border-radius: 22px; }
.wo-switch label { margin: 0; cursor: pointer; }
.wo-switch input { position: absolute; opacity: 0; }
.wo-switch span { display: block; padding: 8px 22px; font-weight: 500; color: var(--wm-muted); border-radius: 19px; transition: background-color .12s, color .12s; }
.wo-switch input:checked + span { color: #fff; background: var(--wm-brown); }
.wo-switch input:focus-visible + span { outline: 2px solid var(--wm-tan-dark); outline-offset: 2px; }

.wo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.wo-wide { grid-column: 1 / -1; }
.wo-field label { display: block; margin: 0 0 5px; font-size: 13px; font-weight: 500; color: var(--wm-brown); }
.wo-field input, .wo-field textarea { display: block; width: 100%; padding: 10px 14px; font-size: 15px; color: var(--wm-brown); background: #fff; border: 1px solid var(--wm-line); border-radius: 8px; box-shadow: inset 0 1px 2px rgba(57, 50, 48, .06); transition: border-color .12s, box-shadow .12s; }
.wo-field textarea { resize: vertical; }
.wo-field input:focus, .wo-field textarea:focus { outline: 0; border-color: var(--wm-tan); box-shadow: 0 0 0 3px rgba(196, 154, 108, .22); }
.wo-field.has-error input { border-color: #c0543f; box-shadow: 0 0 0 3px rgba(192, 84, 63, .15); }
.wo-hint { margin: 5px 0 0; font-size: 12px; color: var(--wm-muted); }
.wo-error { margin: 5px 0 0; font-size: 13px; color: #a3412e; }
.wo-error:empty { display: none; }

.wo-option { display: block; margin: 0 0 10px; cursor: pointer; }
.wo-option input { position: absolute; opacity: 0; }
.wo-option span { display: block; padding: 12px 16px; font-weight: 400; color: var(--wm-brown); background: #fff; border: 2px solid var(--wm-line); border-radius: 10px; transition: border-color .12s, background-color .12s; }
.wo-option span .fa { width: 18px; margin-right: 8px; text-align: center; color: var(--wm-tan); }
.wo-option:hover span { border-color: var(--wm-tan); }
.wo-option input:checked + span { border-color: var(--wm-tan); background: var(--wm-sand); box-shadow: inset 0 0 0 1px var(--wm-tan); font-weight: 500; }
.wo-option input:focus-visible + span { outline: 2px solid var(--wm-tan-dark); outline-offset: 2px; }
.wo-delivery { margin-top: 14px; }
.wo-note { margin: 0 0 16px; padding: 12px 16px; background: var(--wm-sand); border-radius: 10px; }
.wo-note .fa { margin-right: 8px; color: var(--wm-tan-dark); }

.wo-side { position: sticky; top: 16px; }
.wo-summary { padding: 22px 24px 24px; background: linear-gradient(180deg, #fff 0%, #fbf7f1 100%); border-top: 4px solid var(--wm-tan); }
.wo-products { list-style: none; margin: 0 0 14px; padding: 0; }
.wo-products li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--wm-line); }
.wo-products img { flex: none; width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.wo-products div { flex: 1 1 auto; min-width: 0; }
.wo-products strong { display: block; font-weight: 500; line-height: 1.3; }
.wo-products span { display: block; font-size: 12px; color: var(--wm-muted); }
.wo-products b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wo-totals { margin: 0; }
.wo-totals div { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.wo-totals dt { font-weight: 400; color: var(--wm-muted); }
.wo-totals dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.wo-totals .is-final { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--wm-line); }
.wo-totals .is-final dt { font-family: "Roboto Slab", Georgia, serif; font-size: 16px; font-weight: 500; color: var(--wm-brown); }
.wo-totals .is-final dd { font-family: "Roboto Slab", Georgia, serif; font-size: 26px; font-weight: 700; }
.wo-reverse { margin: 10px 0 0; padding: 8px 12px; font-size: 12.5px; color: #6b4a12; background: #fbe9bd; border: 1px solid #e8cf8f; border-radius: 8px; }
.wo-submit { display: block; width: 100%; margin-top: 18px; padding: 14px 18px; font-family: "Roboto Slab", Georgia, serif; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-align: center; text-transform: uppercase; color: #fff; background: var(--wm-gloss); border: 1px solid #a98152; border-radius: 26px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--wm-shadow-1); text-shadow: 0 1px 0 rgba(88, 60, 30, .35); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.wo-submit:hover:not(:disabled), a.wo-submit:hover, a.wo-submit:focus { color: #fff; background: var(--wm-gloss-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), var(--wm-shadow-2); transform: translateY(-1px); }
.wo-submit:disabled { opacity: .65; cursor: default; }
.wo-back { display: block; margin-top: 14px; text-align: center; color: var(--wm-muted); }

@media (max-width: 991px) {
  .wo { grid-template-columns: minmax(0, 1fr); }
  .wo-side { position: static; }
}
@media (max-width: 560px) {
  .wo-card { padding: 18px 16px 20px; }
  .wo-fields { grid-template-columns: minmax(0, 1fr); }
  .wo-switch span { padding: 8px 16px; }
}

/* ---------- заказ принят ---------- */
.wo-done { max-width: 620px; margin: 10px auto 40px; padding: 34px 34px 30px; text-align: center; background: #fff; border-radius: 14px; box-shadow: var(--wm-shadow-2); }
.wo-done-mark { width: 64px; height: 64px; margin: 0 auto 16px; font-size: 28px; line-height: 64px; color: #fff; background: linear-gradient(180deg, #74a565 0%, #5b8c4e 100%); border-radius: 50%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--wm-shadow-1); }
.wo-done h1 { margin-bottom: 10px; }
.wo-done-lead { margin: 0 auto 6px; max-width: 480px; font-size: 15px; line-height: 1.55; }
.wo-done-button { display: inline-block; width: auto; padding-left: 28px; padding-right: 28px; }
.wo-pay { margin-top: 26px; padding: 18px 22px; text-align: left; background: var(--wm-sand); border-radius: 12px; }
.wo-pay h2 { margin: 0 0 10px; font-size: 16px; }
.wo-pay dl { margin: 0; }
.wo-pay div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.wo-pay div + div { border-top: 1px solid var(--wm-line); }
.wo-pay dt { font-weight: 400; color: var(--wm-muted); }
.wo-pay dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- корзина ---------- */
#checkout-cart h1 { font-size: 30px; }
#checkout-cart .table-responsive { background: #fff; border: 0; border-radius: 12px; box-shadow: var(--wm-shadow-1); overflow: hidden; }
#checkout-cart .table { margin: 0; border: 0; }
#checkout-cart .table > thead > tr > td { padding: 12px 14px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--wm-muted); background: var(--wm-sand); border: 0; border-bottom: 1px solid var(--wm-line); }
#checkout-cart .table > tbody > tr > td { padding: 14px; vertical-align: middle; border: 0; border-top: 1px solid var(--wm-line); }
#checkout-cart .table > tbody > tr:first-child > td { border-top: 0; }
#checkout-cart .table td.text-center img { width: 76px; height: 57px; padding: 0; object-fit: cover; border: 0; border-radius: 8px; }
#checkout-cart .table td.text-left > a { font-family: "Roboto Slab", Georgia, serif; font-size: 15px; font-weight: 500; color: var(--wm-brown); }
#checkout-cart .table td.text-left small { color: var(--wm-muted); }
#checkout-cart .table td:nth-child(3) { color: var(--wm-muted); font-size: 12px; }
#checkout-cart .table td.text-right { font-variant-numeric: tabular-nums; white-space: nowrap; }
#checkout-cart .table td:last-child { font-weight: 600; }
#checkout-cart .input-group.btn-block { max-width: 170px !important; }
#checkout-cart .input-group .form-control { height: 38px; text-align: center; font-weight: 600; border-radius: 19px 0 0 19px; }
#checkout-cart .input-group-btn .btn { height: 38px; padding: 0 12px; box-shadow: none; transform: none; }
#checkout-cart .input-group-btn .btn-primary { border-radius: 0; }
#checkout-cart .input-group-btn .btn-danger { color: #a3412e; background: #fff; border: 1px solid var(--wm-line); border-left: 0; border-radius: 0 19px 19px 0; }
#checkout-cart .input-group-btn .btn-danger:hover { color: #fff; background: #c0543f; border-color: #c0543f; }
#checkout-cart #content > .row { margin-top: 20px; }
#checkout-cart #content > .row .table-bordered { background: #fff; border: 0; border-radius: 12px; box-shadow: var(--wm-shadow-1); overflow: hidden; }
#checkout-cart #content > .row .table-bordered td { padding: 10px 18px; border: 0; border-top: 1px solid var(--wm-line); font-variant-numeric: tabular-nums; }
#checkout-cart #content > .row .table-bordered tr:first-child td { border-top: 0; }
#checkout-cart #content > .row .table-bordered tr:last-child td { font-family: "Roboto Slab", Georgia, serif; font-size: 18px; background: var(--wm-sand); }
#checkout-cart .buttons { margin-top: 20px; padding: 0; background: none; border: 0; }
#checkout-cart .buttons .btn { padding: 12px 26px; font-family: "Roboto Slab", Georgia, serif; font-weight: 500; border-radius: 24px; }
#checkout-cart .buttons .btn-primary { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
#checkout-cart > .row #content > p, #error-not-found #content > p { font-size: 15px; }

/* ---------- подсказки адреса и расчёт доставки в оформлении ---------- */
.wo-suggest-field { position: relative; }
.wo-suggest { position: absolute; left: 0; right: 0; z-index: 20; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--wm-line); border-radius: 10px; box-shadow: var(--wm-shadow-2); }
.wo-suggest button { display: block; width: 100%; padding: 8px 12px; text-align: left; color: var(--wm-brown); background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.wo-suggest button:hover, .wo-suggest button:focus { background: var(--wm-sand); outline: 0; }
.wo-delivery-info { margin-top: 12px; padding: 10px 14px; font-weight: 500; border-radius: 10px; }
.wo-delivery-info .fa { margin-right: 8px; }
.wo-delivery-info.is-ok { color: #35542c; background: #edf4e7; border: 1px solid #cfe0c3; }
.wo-delivery-info.is-far, .wo-delivery-info.is-unknown { color: #6b4a12; background: #fbe9bd; border: 1px solid #e8cf8f; }

/* ---------- страница «Доставка» ---------- */
.wd { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; margin-bottom: 30px; }
.wd-text { padding: 24px 26px; background: #fff; border-radius: 12px; box-shadow: var(--wm-shadow-1); font-size: 15px; line-height: 1.6; }
.wd-intro { font-family: "Roboto Slab", Georgia, serif; font-size: 17px; }
.wd-table { width: 100%; margin: 14px 0 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wd-table th { padding: 8px 10px; font-size: 12px; font-weight: 500; text-align: left; color: var(--wm-muted); background: var(--wm-sand); }
.wd-table td { padding: 8px 10px; border-top: 1px solid var(--wm-line); }
.wd-table th + th, .wd-table td + td { text-align: right; }
.wd-note { font-size: 13px; color: var(--wm-muted); }
.wd-pickup { margin: 14px 0 0; padding: 12px 16px; background: var(--wm-sand); border-radius: 10px; }
.wd-pickup .fa { margin-right: 8px; color: var(--wm-tan-dark); }
.wd-map { height: 520px; border-radius: 12px; box-shadow: var(--wm-shadow-1); overflow: hidden; z-index: 1; }
.wd-ring { padding: 1px 6px; font-size: 11px; color: var(--wm-brown); background: rgba(255, 255, 255, .9); border: 1px solid var(--wm-line); box-shadow: none; }
.wd-ring::before { display: none; }
@media (max-width: 991px) {
  .wd { grid-template-columns: minmax(0, 1fr); }
  .wd-map { height: 380px; }
}

/* день и время доставки */
.wo-when { margin-top: 6px; }
.wo-field select { display: block; width: 100%; height: 43px; padding: 0 12px; font-size: 15px; color: var(--wm-brown); background: #fff; border: 1px solid var(--wm-line); border-radius: 8px; cursor: pointer; }
.wo-field select:focus { outline: 0; border-color: var(--wm-tan); box-shadow: 0 0 0 3px rgba(196, 154, 108, .22); }
.wo-field.has-error select { border-color: #c0543f; }
.wd-ring { text-align: center; line-height: 16px; border-radius: 9px; white-space: nowrap; }

/* ---------- календарь и время доставки ---------- */
.wo-when-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.wo-calendar { padding: 12px; background: #fff; border: 1px solid var(--wm-line); border-radius: 12px; box-shadow: var(--wm-shadow-1); }
.wo-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wo-cal-head strong { font-family: "Roboto Slab", Georgia, serif; font-weight: 500; text-transform: capitalize; }
.wo-cal-nav { width: 30px; height: 30px; padding: 0; font-size: 20px; line-height: 1; color: var(--wm-brown); background: #fff; border: 1px solid var(--wm-line); border-radius: 50%; cursor: pointer; }
.wo-cal-nav:hover:not(:disabled) { border-color: var(--wm-tan); color: var(--wm-tan-dark); }
.wo-cal-nav:disabled { opacity: .3; cursor: default; }
.wo-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wo-cal-week { padding: 4px 0; font-size: 11px; text-align: center; text-transform: lowercase; color: var(--wm-muted); }
.wo-cal-day { height: 36px; padding: 0; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--wm-brown); background: var(--wm-sand); border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: border-color .12s, background-color .12s; }
.wo-cal-day:hover:not(:disabled) { border-color: var(--wm-tan); background: #fff; }
.wo-cal-day:disabled { font-weight: 400; color: #c9bfb5; background: transparent; cursor: default; }
.wo-cal-day.is-active { color: #fff; background: var(--wm-gloss); border-color: #a98152; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.wo-times-title { margin-bottom: 8px; font-weight: 500; }
.wo-times-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.wo-time { height: 36px; padding: 0; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--wm-brown); background: #fff; border: 1px solid var(--wm-line); border-radius: 18px; cursor: pointer; transition: border-color .12s; }
.wo-time:hover { border-color: var(--wm-tan); }
.wo-time.is-active { color: #fff; background: var(--wm-brown); border-color: var(--wm-brown); }
.wo-cal-day:focus-visible, .wo-time:focus-visible, .wo-cal-nav:focus-visible { outline: 2px solid var(--wm-tan-dark); outline-offset: 2px; }
@media (max-width: 700px) {
  .wo-when-grid { grid-template-columns: minmax(0, 1fr); }
}


/* --- корзина: количество с подписью «шт.», суммы в одну строку --- */
#cart .dropdown-menu { min-width: 500px; }
#cart .dropdown-menu .table > tbody > tr > td { vertical-align: middle; }
#cart .dropdown-menu td.wm-qty, #cart .dropdown-menu td.wm-sum { white-space: nowrap; font-variant-numeric: tabular-nums; }
#cart .dropdown-menu td.wm-qty { color: var(--wm-muted); }
#cart .dropdown-menu td.wm-sum { font-weight: 600; color: var(--wm-brown); }
#cart .dropdown-menu td small { white-space: normal; }
#cart .dropdown-menu .btn-danger { width: 26px; height: 26px; padding: 0; line-height: 24px; color: #a3412e; background: #fff; border: 1px solid var(--wm-line); border-radius: 50%; box-shadow: none; }
#cart .dropdown-menu .btn-danger:hover { color: #fff; background: #c0543f; border-color: #c0543f; }
#cart .dropdown-menu .table-bordered td { white-space: nowrap; }
#checkout-cart .input-group.btn-block { max-width: 215px !important; }
#checkout-cart .input-group .wm-unit { padding: 0 9px 0 0; font-size: 13px; color: var(--wm-muted); background: #fff; border: 1px solid #ccc; border-left: 0; border-right: 0; }
#checkout-cart .input-group .form-control { border-right: 0; text-align: right; padding-right: 6px; box-shadow: none; }
@media (max-width: 560px) { #cart .dropdown-menu { min-width: 0; width: calc(100vw - 30px); } }

/* --- карта в оформлении заказа: место доставки меткой --- */
.wo-map-box { margin-top: 10px; }
.wo-map-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--wm-brown); background: #fff; border: 1px solid var(--wm-line); border-radius: 19px; box-shadow: var(--wm-shadow-1); cursor: pointer; }
.wo-map-toggle:hover { border-color: var(--wm-tan); background: var(--wm-sand); }
.wo-map-toggle .fa { color: var(--wm-tan-dark); }
#wo-map { height: 340px; margin-top: 8px; border: 1px solid var(--wm-line); border-radius: 12px; box-shadow: var(--wm-shadow-1); z-index: 0; }

/* --- оформление заказа в три шага --- */
.wo-steps { display: flex; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: none; }
.wo-steps li { flex: 1 1 0; min-width: 0; }
.wo-steps button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; text-align: left; font-family: "Roboto Slab", Georgia, serif; font-size: 15px; font-weight: 500; color: var(--wm-muted); background: #fff; border: 1px solid var(--wm-line); border-radius: 26px; box-shadow: var(--wm-shadow-1); cursor: pointer; }
.wo-steps button:disabled { cursor: default; opacity: .7; box-shadow: none; }
.wo-steps b { flex: 0 0 30px; width: 30px; height: 30px; line-height: 30px; text-align: center; font-size: 14px; color: var(--wm-brown); background: var(--wm-sand); border-radius: 50%; }
.wo-steps span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wo-steps li.is-current button { color: #fff; background: var(--wm-brown); border-color: var(--wm-brown); }
.wo-steps li.is-current b { color: var(--wm-brown); background: var(--wm-tan); }
.wo-steps li.is-done button { color: var(--wm-brown); border-color: var(--wm-tan); }
.wo-steps li.is-done b { color: #fff; background: var(--wm-tan-dark); }
.wo-steps button:focus-visible { outline: 2px solid var(--wm-tan); outline-offset: 2px; }
.wo-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--wm-line); }
.wo-next { padding: 12px 24px; font-family: "Roboto Slab", Georgia, serif; font-size: 14px; font-weight: 700; color: #fff; background: var(--wm-gloss); border: 1px solid #a98152; border-radius: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--wm-shadow-1); text-shadow: 0 1px 0 rgba(88, 60, 30, .35); cursor: pointer; }
.wo-next:hover:not(:disabled) { background: var(--wm-gloss-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), var(--wm-shadow-2); }
.wo-next:disabled { opacity: .65; cursor: default; }
.wo-prev { padding: 11px 20px; font-size: 14px; color: var(--wm-brown); background: #fff; border: 1px solid var(--wm-line); border-radius: 24px; cursor: pointer; }
.wo-prev:hover { border-color: var(--wm-tan); background: var(--wm-sand); }
.wo-submit[hidden] { display: none; }
@media (max-width: 600px) { .wo-steps { gap: 6px; } .wo-steps button { padding: 8px 10px; font-size: 13px; } .wo-steps li:not(.is-current) span { display: none; } .wo-steps li:not(.is-current) { flex: 0 0 auto; } }
.wo-linklike { padding: 0; color: var(--wm-tan-dark); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.wo-linklike:hover { color: var(--wm-brown); }


/* --- выпадающая корзина: свои карточки вместо стандартной таблицы --- */
#cart .dropdown-menu.wm-mini { min-width: 440px; max-width: calc(100vw - 30px); padding: 0; margin-top: 10px; background: #fff; border: 1px solid var(--wm-line); border-top: 3px solid var(--wm-tan); border-radius: 14px; box-shadow: 0 18px 40px rgba(57, 50, 48, .22); overflow: hidden; }
#cart .wm-mini > li { display: block; padding: 0; }
#cart .wm-mini > li.wm-mini-items { max-height: 330px; overflow-y: auto; }
#cart .wm-mini-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--wm-line); }
#cart .wm-mini-item:hover { background: #fdfaf5; }
#cart .wm-mini-img { flex: 0 0 58px; }
#cart .wm-mini-img img { display: block; width: 58px; height: 46px; object-fit: cover; border-radius: 8px; }
#cart .wm-mini-info { flex: 1 1 auto; min-width: 0; }
#cart .wm-mini-name { display: block; font-family: "Roboto Slab", Georgia, serif; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--wm-brown); white-space: normal; padding: 0; }
#cart .wm-mini-name:hover { color: var(--wm-tan-dark); background: none; }
#cart .wm-mini-info span { display: block; margin-top: 2px; font-size: 12px; color: var(--wm-muted); white-space: normal; }
#cart .wm-mini-info .wm-mini-qty { display: inline-block; margin-top: 5px; padding: 1px 9px; font-weight: 600; color: var(--wm-brown); background: var(--wm-sand); border-radius: 10px; }
#cart .wm-mini-sum { flex: 0 0 auto; font-size: 15px; font-weight: 700; color: var(--wm-brown); white-space: nowrap; font-variant-numeric: tabular-nums; }
#cart .wm-mini-remove { flex: 0 0 26px; width: 26px; height: 26px; padding: 0; font-size: 12px; line-height: 24px; color: #a3412e; background: #fff; border: 1px solid var(--wm-line); border-radius: 50%; cursor: pointer; }
#cart .wm-mini-remove:hover { color: #fff; background: #c0543f; border-color: #c0543f; }
#cart .wm-mini > li.wm-mini-totals { padding: 12px 16px 4px; background: var(--wm-sand); }
#cart .wm-mini-totals div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; font-size: 13px; color: var(--wm-muted); }
#cart .wm-mini-totals b { font-weight: 500; color: var(--wm-brown); white-space: nowrap; font-variant-numeric: tabular-nums; }
#cart .wm-mini-totals div.is-final { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--wm-line); font-family: "Roboto Slab", Georgia, serif; font-size: 15px; color: var(--wm-brown); }
#cart .wm-mini-totals div.is-final b { font-size: 19px; font-weight: 700; }
#cart .wm-mini > li.wm-mini-actions { display: flex; gap: 10px; padding: 12px 16px 16px; background: var(--wm-sand); }
#cart .wm-mini-actions a { flex: 1 1 0; padding: 11px 12px; text-align: center; font-size: 13px; font-weight: 700; border-radius: 22px; white-space: nowrap; text-decoration: none; }
#cart .wm-mini-cart { color: var(--wm-brown); background: #fff; border: 1px solid var(--wm-line); }
#cart .wm-mini-cart:hover { color: var(--wm-brown); background: #fff; border-color: var(--wm-tan); }
#cart .wm-mini-checkout { color: #fff; background: var(--wm-gloss); border: 1px solid #a98152; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--wm-shadow-1); text-shadow: 0 1px 0 rgba(88, 60, 30, .35); }
#cart .wm-mini-checkout:hover { color: #fff; background: var(--wm-gloss-hover); }
#cart .wm-mini > li.wm-mini-empty { padding: 28px 20px; text-align: center; color: var(--wm-muted); }
#cart .wm-mini-empty .fa { display: block; margin-bottom: 8px; font-size: 30px; color: var(--wm-tan); }
#cart .wm-mini-empty p { margin: 0; }
@media (max-width: 480px) { #cart .dropdown-menu.wm-mini { min-width: 0; width: calc(100vw - 30px); } #cart .wm-mini > li.wm-mini-actions { flex-direction: column; } }

/* выпадающая корзина: отступы строк (стандартная тема обнуляла их) и количество справа под суммой */
#cart .wm-mini > li > .wm-mini-item { min-width: 0; padding: 14px 16px; }
#cart .wm-mini > li.wm-mini-totals > div { min-width: 0; padding: 2px 0; }
#cart .wm-mini > li.wm-mini-totals > div.is-final { padding-top: 8px; }
#cart .wm-mini-side { flex: 0 0 auto; text-align: right; }
#cart .wm-mini-side .wm-mini-qty { display: inline-block; margin-top: 4px; padding: 1px 9px; font-size: 12px; font-weight: 600; color: var(--wm-brown); background: var(--wm-sand); border-radius: 10px; white-space: nowrap; }

/* --- страница «Контакты» --- */
.wm-contact { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 8px; }
.wm-contact-info, .wm-contact-form { flex: 1 1 380px; min-width: 0; background: #fff; border-radius: 14px; box-shadow: var(--wm-shadow-1); overflow: hidden; }
.wm-contact-form { padding: 26px 28px 28px; border-top: 3px solid var(--wm-tan); }
.wm-contact-form h2 { margin: 0 0 18px; font-family: "Roboto Slab", Georgia, serif; font-size: 22px; font-weight: 500; color: var(--wm-brown); }
.wm-contact-list { margin: 0; padding: 10px 26px 6px; list-style: none; }
.wm-contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--wm-line); }
.wm-contact-list li:last-child { border-bottom: 0; }
.wm-contact-list li > .fa { flex: 0 0 42px; width: 42px; height: 42px; line-height: 42px; text-align: center; font-size: 18px; color: #fff; background: var(--wm-gloss); border-radius: 50%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--wm-shadow-1); }
.wm-contact-list span { display: block; margin-bottom: 2px; font-size: 12px; color: var(--wm-muted); }
.wm-contact-list a, .wm-contact-list b { font-family: "Roboto Slab", Georgia, serif; font-size: 18px; font-weight: 500; color: var(--wm-brown); overflow-wrap: anywhere; }
.wm-contact-list a:hover { color: var(--wm-tan-dark); }
.wm-contact-list a.wm-contact-route { display: inline-block; margin-top: 4px; font-family: inherit; font-size: 13px; font-weight: 400; color: var(--wm-tan-dark); }
.wm-contact-list b { display: block; }
.wm-contact-list small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--wm-muted); }
#wm-contact-map { height: 300px; border-top: 1px solid var(--wm-line); z-index: 0; }
.wm-contact-field { margin-bottom: 16px; }
.wm-contact-field label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; color: var(--wm-brown); }
.wm-contact-field input, .wm-contact-field textarea { display: block; width: 100%; padding: 11px 14px; font-size: 15px; color: var(--wm-brown); background: #fff; border: 1px solid var(--wm-line); border-radius: 10px; box-shadow: inset 0 1px 2px rgba(57, 50, 48, .06); }
.wm-contact-field textarea { resize: vertical; min-height: 130px; }
.wm-contact-field input:focus, .wm-contact-field textarea:focus { border-color: var(--wm-tan); outline: 0; box-shadow: 0 0 0 3px rgba(196, 154, 108, .25); }
.wm-contact-field.has-error input, .wm-contact-field.has-error textarea { border-color: #c0543f; }
.wm-contact-error { margin: 5px 0 0; font-size: 13px; color: #a3412e; }
.wm-contact-send { display: inline-flex; align-items: center; gap: 9px; padding: 13px 30px; font-family: "Roboto Slab", Georgia, serif; font-size: 15px; font-weight: 700; color: #fff; background: var(--wm-gloss); border: 1px solid #a98152; border-radius: 26px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--wm-shadow-1); text-shadow: 0 1px 0 rgba(88, 60, 30, .35); cursor: pointer; }
.wm-contact-send:hover { background: var(--wm-gloss-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), var(--wm-shadow-2); }
.wm-contact-send:focus-visible { outline: 2px solid var(--wm-brown); outline-offset: 2px; }
@media (max-width: 500px) { .wm-contact-form { padding: 20px 18px; } .wm-contact-list { padding: 6px 18px; } }
#information-contact #content { max-width: none; width: 100%; float: none; }
.wm-contact-form { flex-grow: 1.25; }


/* --- страница «Отказаться от договора» --- */
.ww-popup .ww-card { padding: 0; }
#wm-withdraw-modal .modal-content { border-radius: 14px; }
#wm-withdraw-modal .modal-title { font-family: "Roboto Slab", Georgia, serif; color: var(--wm-brown); }
.wm-foot-line .wm-withdraw-link { float: right; }
.wm-terms-withdraw { margin-top: 18px; }
@media (max-width: 560px) { .wm-foot-line .wm-withdraw-link { float: none; display: block; margin-top: 6px; } }
#wood-withdraw .ww-card { max-width: 720px; padding: 26px 28px 28px; background: #fff; border-top: 3px solid var(--wm-tan); border-radius: 14px; box-shadow: var(--wm-shadow-1); }
.ww-intro { font-size: 15px; line-height: 1.6; }
.ww-note { padding: 10px 14px; font-size: 13px; color: var(--wm-muted); background: var(--wm-sand); border-radius: 8px; }
.ww-field { margin-bottom: 16px; }
.ww-field label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; color: var(--wm-brown); }
.ww-field input, .ww-field textarea { display: block; width: 100%; padding: 11px 14px; font-size: 15px; color: var(--wm-brown); background: #fff; border: 1px solid var(--wm-line); border-radius: 10px; }
.ww-field input:focus, .ww-field textarea:focus { border-color: var(--wm-tan); outline: 0; box-shadow: 0 0 0 3px rgba(196, 154, 108, .25); }
.ww-field.has-error input { border-color: #c0543f; }
.ww-hint { margin: 4px 0 0; font-size: 12px; color: var(--wm-muted); }
.ww-error { margin: 4px 0 0; font-size: 13px; color: #a3412e; }
.ww-next, .ww-confirm { display: inline-flex; align-items: center; gap: 9px; padding: 13px 30px; font-family: "Roboto Slab", Georgia, serif; font-size: 15px; font-weight: 700; color: #fff; background: var(--wm-gloss); border: 1px solid #a98152; border-radius: 26px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--wm-shadow-1); text-shadow: 0 1px 0 rgba(88, 60, 30, .35); cursor: pointer; }
.ww-next:hover, .ww-confirm:hover { background: var(--wm-gloss-hover); }
.ww-change { margin-top: 10px; padding: 9px 18px; font-size: 13px; color: var(--wm-brown); background: #fff; border: 1px solid var(--wm-line); border-radius: 20px; cursor: pointer; }
.ww-actions { display: inline-block; margin-right: 10px; }
.ww-summary { margin: 14px 0 20px; }
.ww-summary div { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--wm-line); }
.ww-summary dt { flex: 0 0 230px; font-weight: 400; color: var(--wm-muted); }
.ww-summary dd { margin: 0; font-weight: 600; color: var(--wm-brown); overflow-wrap: anywhere; }
.ww-done { text-align: center; padding: 6px 0 4px; }
.ww-done .fa { font-size: 44px; color: #5a9a4a; }
.ww-done h2 { margin: 10px 0 8px; font-family: "Roboto Slab", Georgia, serif; font-size: 22px; color: var(--wm-brown); }
@media (max-width: 560px) { .ww-summary div { flex-direction: column; gap: 2px; } .ww-summary dt { flex: none; } }

/* --- страница корзины --- */
.wm-cartpage #content { max-width: none; }
.wc-page { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 6px; }
.wc-items { flex: 1 1 560px; min-width: 0; background: #fff; border-radius: 14px; box-shadow: var(--wm-shadow-1); overflow: hidden; }
.wc-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--wm-line); }
.wc-item-img { flex: 0 0 92px; }
.wc-item-img img { display: block; width: 92px; height: 70px; object-fit: cover; border-radius: 10px; }
.wc-item-info { flex: 1 1 auto; min-width: 0; }
.wc-item-name { display: block; font-family: "Roboto Slab", Georgia, serif; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--wm-brown); }
.wc-item-name:hover { color: var(--wm-tan-dark); }
.wc-item-info span { display: block; margin-top: 3px; font-size: 13px; color: var(--wm-muted); }
.wc-item-info .wc-item-each { color: var(--wm-brown); }
.wc-item-qty { flex: 0 0 auto; display: flex; align-items: center; background: var(--wm-sand); border: 1px solid var(--wm-line); border-radius: 22px; }
.wc-item-qty .wc-step { width: 36px; height: 40px; font-size: 18px; line-height: 1; color: var(--wm-brown); background: none; border: 0; cursor: pointer; border-radius: 22px; }
.wc-item-qty .wc-step:hover { background: #fff; }
.wc-item-qty input { width: 62px; height: 40px; padding: 0 2px; text-align: right; font-size: 15px; font-weight: 600; color: var(--wm-brown); background: none; border: 0; }
.wc-item-qty input:focus { outline: 2px solid var(--wm-tan); outline-offset: -2px; border-radius: 6px; }
.wc-item-qty .wc-unit { padding: 0 2px 0 5px; font-size: 13px; color: var(--wm-muted); }
.wc-item-sum { flex: 0 0 112px; text-align: right; font-size: 18px; font-weight: 700; color: var(--wm-brown); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wc-item-remove { flex: 0 0 30px; width: 30px; height: 30px; padding: 0; font-size: 13px; color: #a3412e; background: #fff; border: 1px solid var(--wm-line); border-radius: 50%; cursor: pointer; }
.wc-item-remove:hover { color: #fff; background: #c0543f; border-color: #c0543f; }
.wc-items-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: #fdfaf5; }
.wc-continue { color: var(--wm-muted); }
.wc-continue:hover { color: var(--wm-brown); }
.wc-update { padding: 8px 16px; font-size: 13px; color: var(--wm-brown); background: #fff; border: 1px solid var(--wm-line); border-radius: 18px; cursor: pointer; }
.wc-update[hidden] { display: none; }
.wc-side { flex: 0 0 340px; padding: 22px 24px 24px; background: var(--wm-sand); border-top: 3px solid var(--wm-tan); border-radius: 14px; box-shadow: var(--wm-shadow-1); position: sticky; top: 14px; }
.wc-totals { margin: 0; }
.wc-totals div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; color: var(--wm-muted); }
.wc-totals dt { font-weight: 400; }
.wc-totals dd { margin: 0; color: var(--wm-brown); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wc-totals div.is-final { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--wm-line); font-family: "Roboto Slab", Georgia, serif; font-size: 17px; color: var(--wm-brown); }
.wc-totals div.is-final dd { font-size: 26px; font-weight: 700; }
.wc-weight { margin: 10px 0 0; font-size: 13px; color: var(--wm-muted); }
.wc-checkout { display: block; margin-top: 18px; padding: 14px 18px; text-align: center; font-family: "Roboto Slab", Georgia, serif; font-size: 15px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: var(--wm-gloss); border: 1px solid #a98152; border-radius: 26px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--wm-shadow-1); text-shadow: 0 1px 0 rgba(88, 60, 30, .35); }
.wc-checkout:hover, .wc-checkout:focus { color: #fff; background: var(--wm-gloss-hover); text-decoration: none; }
@media (max-width: 700px) { .wc-item { flex-wrap: wrap; } .wc-item-info { flex-basis: calc(100% - 110px); } .wc-item-qty { margin-left: 108px; } .wc-item-sum { flex: 1 1 auto; } .wc-side { flex: 1 1 100%; position: static; } }

/* --- боковое меню каталога --- */
.wm-side { background: #fff; border-radius: 14px; box-shadow: var(--wm-shadow-1); overflow: hidden; margin-bottom: 20px; }
.wm-side-title { padding: 14px 18px; font-family: "Roboto Slab", Georgia, serif; font-size: 15px; font-weight: 500; color: #fff; background: var(--wm-brown); }
.wm-side-title .fa { margin-right: 6px; color: var(--wm-tan); }
.wm-side ul { margin: 0; padding: 6px 0; list-style: none; }
.wm-side li a { display: flex; align-items: center; gap: 12px; padding: 7px 14px 7px 12px; color: var(--wm-brown); border-left: 4px solid transparent; text-decoration: none; }
.wm-side li a:hover { background: #fdfaf5; border-left-color: var(--wm-line); }
.wm-side li img { flex: 0 0 44px; width: 44px; height: 33px; object-fit: cover; border-radius: 6px; }
.wm-side li span { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.25; }
.wm-side li b { flex: 0 0 auto; min-width: 22px; padding: 1px 7px; font-size: 11px; font-weight: 600; text-align: center; color: var(--wm-muted); background: var(--wm-sand); border-radius: 10px; }
.wm-side li.is-active a { background: var(--wm-sand); border-left-color: var(--wm-tan); font-weight: 600; }
.wm-side li.is-active b { color: #fff; background: var(--wm-tan-dark); }
.wm-side-all { display: block; padding: 11px 18px; font-size: 13px; color: var(--wm-tan-dark); border-top: 1px solid var(--wm-line); }
.wm-side-all:hover { color: var(--wm-brown); background: #fdfaf5; text-decoration: none; }

/* --- карта сайта --- */
#information-sitemap #content { max-width: none; }
.wm-map { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.wm-map section { background: #fff; border-radius: 14px; box-shadow: var(--wm-shadow-1); padding: 22px 26px; }
.wm-map-catalog { flex: 3 1 520px; }
.wm-map-pages { flex: 1 1 240px; }
.wm-map h2 { margin: 0 0 14px; font-family: "Roboto Slab", Georgia, serif; font-size: 20px; font-weight: 500; }
.wm-map h2 a, .wm-map h3 a { color: var(--wm-brown); }
.wm-map-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 28px; }
.wm-map h3 { margin: 0 0 4px; padding-bottom: 5px; font-size: 15px; font-weight: 600; border-bottom: 2px solid var(--wm-tan); }
.wm-map ul { margin: 0; padding: 0; list-style: none; }
.wm-map li { padding: 4px 0; }
.wm-map li a { color: var(--wm-muted); }
.wm-map li a:hover, .wm-map h2 a:hover, .wm-map h3 a:hover { color: var(--wm-tan-dark); }
/* поиск фирмы по номеру: крутящийся значок у поля, пока ждём ответа регистров */
.wo-spin { margin-left: 4px; font-size: 13px; color: var(--wm-tan-dark); }
.wo-spin[hidden] { display: none; }
/* «Очистить поля» — маленькая кнопка в углу первого шага */
.wo-step[data-step="1"] { position: relative; }
.wo-clear { position: absolute; top: 22px; right: 22px; padding: 4px 10px; font-size: 12px; color: var(--wm-muted); background: none; border: 1px solid var(--wm-line); border-radius: 14px; cursor: pointer; }
.wo-clear:hover { color: var(--wm-brown); border-color: var(--wm-tan); }
.wo-clear .fa { margin-right: 3px; }
@media (max-width: 600px) { .wo-clear { top: 16px; right: 14px; } }
/* поиск фирмы: поля «загружаются», а подставленные — коротко подсвечиваются */
.wo input.is-loading { background: linear-gradient(90deg, #fff 0%, #f6efe4 50%, #fff 100%) 0 0 / 200% 100%; animation: wo-loading 1.1s linear infinite; }
.wo input.is-filled { animation: wo-filled 1.6s ease-out; }
@keyframes wo-loading { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes wo-filled { 0% { background-color: #fbe9c6; border-color: var(--wm-tan); } 100% { background-color: #fff; } }
@media (prefers-reduced-motion: reduce) { .wo input.is-loading, .wo input.is-filled { animation: none; } }
/* «Фирма не плательщик PVN» */
.wo-field.wo-novat { margin-top: -4px; }
.wo-field label.wo-check { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 14px; font-weight: 500; color: var(--wm-brown); cursor: pointer; }
.wo-field .wo-check input[type=checkbox] { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--wm-brown); }
.wo-field[hidden] { display: none; }
/* номер фирмы: кнопка-лупа «искать заново» внутри поля; галочка «не плательщик» бледная, когда реестр сказал «плательщик» */
.wo-reg-box { position: relative; display: block; }
.wo-reg-box input { padding-right: 44px; }
.wo-reg-search { position: absolute; top: 50%; right: 6px; width: 32px; height: 32px; margin-top: -16px; padding: 0; color: var(--wm-brown); background: var(--wm-sand); border: 0; border-radius: 50%; cursor: pointer; }
.wo-reg-search:hover { color: #fff; background: var(--wm-tan-dark); }
.wo-field.is-locked .wo-check { opacity: .45; cursor: default; }
.wo-field.is-locked .wo-check, .wo-field.is-locked .wo-check input { pointer-events: none; }
.wo input[readonly] { color: var(--wm-muted); background: #f7f3ee; }
/* подсказки фирм по названию */
.wo-firm-field { position: relative; }
.wo-firms { position: absolute; left: 0; right: 0; z-index: 20; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--wm-line); border-radius: 10px; box-shadow: var(--wm-shadow-2); }
.wo-firms[hidden] { display: none; }
.wo-firms button { display: block; width: 100%; padding: 8px 12px; text-align: left; color: var(--wm-brown); background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.wo-firms button:hover, .wo-firms button:focus { background: var(--wm-sand); outline: 0; }
.wo-firms small { display: block; margin-top: 2px; font-size: 12px; color: var(--wm-muted); }
.wo-firms .wo-firms-none { padding: 8px 12px; font-size: 13px; color: var(--wm-muted); }
/* «в т. ч. PVN» у частного лица — справочно, серым */
.wo-summary .is-muted dt, .wo-summary .is-muted dd { font-size: 13px; color: var(--wm-muted); font-weight: 400; }
