/* Памучен дом - woo.css: маркъпът на WooCommerce и на плъгина за доставка получава вида на класовете от дизайна
   (PLAN.md → ИЗМЕНЕНИЯ 21.11.2026 (2), Б6 и B3-1). Декларациите са копирани от pd.css; нови цветове и шрифтове няма. */

/* ---------- Скрити ---------- */
wc-order-attribution-inputs,a.added_to_cart{display:none}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Полета (= .field, .input, .select, .textarea) ---------- */
.woocommerce form .form-row{display:flex;flex-direction:column;gap:6px;margin:0}
.woocommerce form .form-row[hidden]{display:none}
.woocommerce form .form-row label{font-size:14px;font-weight:500}
.woocommerce-input-wrapper{display:block}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{display:block;width:100%;min-height:48px;padding:11px 14px;background:#fff;border:1px solid var(--line);border-radius:2px;color:var(--ink)}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus,.woocommerce form .form-row select:focus{outline:2px solid var(--green);outline-offset:0;border-color:var(--green)}
.woocommerce form .form-row textarea{min-height:110px;resize:vertical}
.woocommerce form .form-row select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:40px}
.select2-container.select2-container--default .select2-selection--single{display:flex;align-items:center;height:auto;min-height:48px;padding:11px 40px 11px 14px;background:#fff;border:1px solid var(--line);border-radius:2px;color:var(--ink);font-size:16px;line-height:1.55}
.select2-container.select2-container--default .select2-selection--single .select2-selection__rendered{padding:0;line-height:inherit;color:inherit}
.select2-container.select2-container--default .select2-selection--single .select2-selection__arrow{top:0;right:8px;height:100%}
.select2-container--focus .select2-selection--single,.select2-container--open .select2-selection--single{outline:2px solid var(--green);outline-offset:0;border-color:var(--green)}
.woocommerce form .form-row.woocommerce-invalid input.input-text,.woocommerce form .form-row.woocommerce-invalid select,.woocommerce form .form-row.woocommerce-invalid .select2-selection{border-color:#9B2C2C;background:#FBF3F2}
.woocommerce form .form-row abbr.required,.woocommerce form .form-row .required{color:var(--green);text-decoration:none}
.woocommerce form .form-row .optional{color:var(--sage);font-weight:400}

/* ---------- Мрежата на полетата (= .grid2, .grid2 .wide) ---------- */
.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-address-fields__field-wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.woocommerce-shipping-fields__field-wrapper .form-row-wide,.woocommerce-address-fields__field-wrapper .form-row-wide{grid-column:1/-1}
/* Фактуриране: ред и колони по id (PLAN.md В3 B4-1, Д9-Д11) */
.woocommerce-billing-fields__field-wrapper #billing_first_name_field{order:1;grid-column:1}
.woocommerce-billing-fields__field-wrapper #billing_last_name_field{order:2;grid-column:2}
.woocommerce-billing-fields__field-wrapper #billing_email_field{order:3;grid-column:1}
.woocommerce-billing-fields__field-wrapper #billing_phone_field{order:4;grid-column:2}
.woocommerce-billing-fields__field-wrapper #billing_country_field{order:5;grid-column:1 / -1}
.woocommerce-billing-fields__field-wrapper #billing_address_1_field{order:6;grid-column:1 / -1}
.woocommerce-billing-fields__field-wrapper #billing_address_2_field{order:7;grid-column:1 / -1}
.woocommerce-billing-fields__field-wrapper #billing_city_field{order:8;grid-column:1}
.woocommerce-billing-fields__field-wrapper #billing_state_field{order:9;grid-column:2}
.woocommerce-billing-fields__field-wrapper #billing_postcode_field{order:10;grid-column:1}
.woocommerce-billing-fields__field-wrapper #billing_to_company_field{order:11;grid-column:1 / -1}
.woocommerce-billing-fields__field-wrapper #billing_company_field{order:12;grid-column:1 / -1}
.woocommerce-billing-fields__field-wrapper #billing_company_eik_field{order:13;grid-column:1}
.woocommerce-billing-fields__field-wrapper #billing_company_vat_field{order:14;grid-column:2}
.woocommerce-billing-fields__field-wrapper #billing_company_mol_field{order:15;grid-column:1}
.woocommerce-billing-fields__field-wrapper #billing_company_city_field{order:16;grid-column:2}
.woocommerce-billing-fields__field-wrapper #billing_company_address_field{order:17;grid-column:1 / -1}
.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields,.woocommerce-account-fields{display:flex;flex-direction:column;gap:18px}

/* ---------- Отметка (= .check) ---------- */
.woocommerce form .form-row label.checkbox,label.woocommerce-form__label-for-checkbox{display:flex;gap:10px;align-items:flex-start;cursor:pointer;font-size:inherit;font-weight:400}
label.checkbox input[type=checkbox],label.woocommerce-form__label-for-checkbox input[type=checkbox]{margin:3px 0 0;width:18px;height:18px;accent-color:var(--green);flex:none}
.woocommerce-additional-fields > h3{display:none}
#ship-to-different-address{font-family:var(--sans);font-size:16px}

/* ---------- Методи за доставка (= .methods, .method, .method--on, .method-row, .method-extra) ---------- */
ul#shipping_method{display:flex;flex-direction:column;gap:10px}
ul#shipping_method > li{display:flex;flex-wrap:wrap;align-items:center;border:1px solid var(--line);background:var(--bg)}
ul#shipping_method > li:has(input:checked),ul#shipping_method > li:has(input[type=hidden]){border-color:var(--green);background:#fff}
ul#shipping_method > li > input{width:18px;height:18px;accent-color:var(--green);flex:none;margin:0 0 0 16px}
ul#shipping_method > li > label{flex:1 1 0;min-width:0;padding:14px 16px 14px 12px;cursor:pointer}
ul#shipping_method > li > input[type=hidden] + label{padding-left:16px}
ul#shipping_method .amount{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.dvs-method-extra{flex-basis:100%;display:flex;flex-direction:column;gap:14px;padding:4px 16px 18px 46px}
.dvs-field{display:flex;flex-direction:column;gap:6px}
.dvs-field__label{font-size:14px;font-weight:500}
a.dvs-link{color:var(--green);text-underline-offset:4px;font-size:15px}
.woocommerce-shipping-totals p{font-size:14px;color:#4B5850}

/* ---------- Плащане (= .pays, .method, .method--on, .method-name, .pay-desc) ---------- */
ul.wc_payment_methods{display:flex;flex-direction:column;gap:10px}
li.wc_payment_method{display:flex;flex-wrap:wrap;align-items:center;border:1px solid var(--line);background:var(--bg)}
li.wc_payment_method:has(input:checked),ul.wc_payment_methods > li:only-child{border-color:var(--green);background:#fff}
li.wc_payment_method > input{width:18px;height:18px;accent-color:var(--green);flex:none;margin:0 0 0 16px}
li.wc_payment_method > label{flex:1 1 0;min-width:0;padding:14px 16px 14px 12px;cursor:pointer}
li.wc_payment_method > .payment_box{flex-basis:100%;font-size:14px;color:#4B5850;padding:0 16px 14px 16px}

/* ---------- Плащане: кутия, текстове, бутони (= .co-box, .small, .btn.btn-dark, .btn-block) ---------- */
#payment{background:#fff;border:1px solid var(--line);padding:24px;display:flex;flex-direction:column;gap:18px}
#payment .place-order{display:flex;flex-direction:column;gap:18px}
.woocommerce-terms-and-conditions-wrapper{display:flex;flex-direction:column;gap:12px}
.woocommerce-terms-and-conditions-wrapper > p.form-row{order:1}
.woocommerce-terms-and-conditions-wrapper > .woocommerce-privacy-policy-text{order:2}
.woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox{display:block;padding-left:28px}
.woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox input[type=checkbox]{float:left;margin:3px 0 0 -28px}
.woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox abbr.required{margin-left:4px}
.woocommerce-privacy-policy-text{font-size:14px;color:#4B5850}
button#place_order,.woocommerce-form-login button:not(.show-password-input),.woocommerce-EditAccountForm button:not(.show-password-input),.woocommerce-address-fields button,.woocommerce-notices-wrapper .button,.note .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 26px;background:var(--green);color:#fff;text-decoration:none;font-weight:500;border-radius:2px;border:0;cursor:pointer;text-align:center}
button#place_order:hover,.woocommerce-form-login button:not(.show-password-input):hover,.woocommerce-EditAccountForm button:not(.show-password-input):hover,.woocommerce-address-fields button:hover,.woocommerce-notices-wrapper .button:hover,.note .button:hover{background:var(--ink);color:#fff}
button#place_order{display:flex;width:100%}
.show-password-input{display:none}

/* ---------- Известия (= .note, .note--error) ---------- */
.woocommerce-message,.woocommerce-info{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between;padding:16px 20px;border-left:3px solid var(--green);background:#fff;margin-bottom:24px}
.woocommerce-error{border-left:3px solid #9B2C2C;background:#FBF3F2;display:block;padding:16px 20px;margin-bottom:24px}
.woocommerce-error li + li{margin-top:4px}
.woocommerce-error a{color:#9B2C2C}

/* ---------- Поръчка: мрежата (PLAN.md B3-1) ---------- */
form.checkout.co{row-gap:0;grid-template-rows:auto auto auto 1fr}
form.checkout.co #customer_details,form.checkout.co #order_review,form.checkout.co .pd-review{display:contents}
.pd-co-billing{grid-column:1;grid-row:2 / span 3}
.pd-ship{grid-column:1;grid-row:5}
.pd-co-notes{grid-column:1;grid-row:6}
.pd-sum{grid-column:2;grid-row:2}
form.checkout.co #payment{grid-column:2;grid-row:3}
form.checkout.co .woocommerce-NoticeGroup-checkout{grid-column:1 / -1;grid-row:1}
form.checkout.co .co-box,form.checkout.co #payment{margin-bottom:20px}
.co-item .cart-thumb--none .icon{width:28px;height:28px}

/* ---------- Количка ---------- */
div.cart > form.woocommerce-cart-form{display:contents}
div.cart .ship-bar{grid-column:1 / -1;margin-bottom:0}
.cart-row .quantity{display:block}
.cart-collaterals{min-width:0}

/* ---------- Профил (= .acc-nav, .acc, .table, .cols2, .card, .login) ---------- */
nav.woocommerce-MyAccount-navigation ul{display:flex;flex-direction:column;border-top:1px solid var(--line)}
nav.woocommerce-MyAccount-navigation a{display:block;padding:12px 4px;border-bottom:1px solid var(--line);text-decoration:none}
nav.woocommerce-MyAccount-navigation li.is-active a{font-weight:600;color:var(--green)}
nav.woocommerce-MyAccount-navigation a:hover{text-decoration:underline}
.woocommerce-account.logged-in .page > .woocommerce{display:grid;grid-template-columns:240px minmax(0,1fr);gap:40px;align-items:start}
.woocommerce-account:not(.logged-in) .page > .woocommerce{display:grid;grid-template-columns:minmax(0,460px);gap:0}
.woocommerce-MyAccount-content{min-width:0;overflow-x:auto;display:flex;flex-direction:column;gap:20px}
table.woocommerce-orders-table,table.woocommerce-table--order-details{width:100%;border-collapse:collapse;background:#fff;font-size:15px}
table.woocommerce-orders-table th,table.woocommerce-orders-table td,table.woocommerce-table--order-details th,table.woocommerce-table--order-details td{border:1px solid var(--line);padding:12px 14px;text-align:left;vertical-align:top}
table.woocommerce-orders-table thead th,table.woocommerce-table--order-details thead th{background:var(--sand);font-weight:600}
.woocommerce-Addresses,.woocommerce-columns--addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.woocommerce-Address,.woocommerce-columns--addresses .woocommerce-column{background:#fff;border:1px solid var(--line);padding:24px;display:flex;flex-direction:column;gap:12px}
.woocommerce-Address address,.woocommerce-customer-details address{font-style:normal;line-height:1.7}
form.woocommerce-form-login{background:#fff;border:1px solid var(--line);padding:24px;display:flex;flex-direction:column;gap:18px}
.woocommerce-account .page > .woocommerce > h2,.woocommerce-MyAccount-content h2,.woocommerce-order h2{font-size:26px}
.woocommerce-EditAccountForm,.woocommerce-address-fields{display:flex;flex-direction:column;gap:16px}

/* ---------- Благодарим (= .overview, .table, .cols2, .card) ---------- */
.woocommerce-order{display:flex;flex-direction:column;gap:28px}
ul.woocommerce-order-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);background:#fff}
/* li.method: нулира .method от pd.css (Д14); li + li и медията връщат линиите */
ul.woocommerce-order-overview li{border:0;background:none;padding:18px 20px;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#4B5850}
ul.woocommerce-order-overview li + li{border-left:1px solid var(--line)}
ul.woocommerce-order-overview strong{font-size:16px;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
p.woocommerce-thankyou-order-received:empty{display:none}
.woocommerce-order-details,.woocommerce-customer-details{display:flex;flex-direction:column;gap:12px}

/* ---------- 860 px и надолу ---------- */
@media (max-width:860px){
  .woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-address-fields__field-wrapper{grid-template-columns:1fr}
  .woocommerce-billing-fields__field-wrapper :is(#billing_last_name_field,#billing_phone_field,#billing_state_field,#billing_company_vat_field,#billing_company_city_field){grid-column:1}
  .dvs-method-extra{padding-left:16px}
  form.checkout.co{grid-template-rows:none}
  .pd-co-billing,.pd-ship,.pd-co-notes,.pd-sum,form.checkout.co #payment,form.checkout.co .woocommerce-NoticeGroup-checkout{grid-column:1;grid-row:auto}
  form.checkout.co .woocommerce-NoticeGroup-checkout{order:1}
  .pd-co-billing{order:2}
  .pd-ship{order:3}
  .pd-co-notes{order:4}
  .pd-sum{order:5}
  form.checkout.co #payment{order:6}
  .woocommerce-account.logged-in .page > .woocommerce{grid-template-columns:1fr;gap:24px}
  .woocommerce-account:not(.logged-in) .page > .woocommerce{grid-template-columns:1fr}
  nav.woocommerce-MyAccount-navigation ul{flex-direction:row;flex-wrap:wrap;gap:6px;border-top:0}
  nav.woocommerce-MyAccount-navigation a{border:1px solid var(--line);padding:8px 12px}
  .woocommerce-Addresses,.woocommerce-columns--addresses{grid-template-columns:1fr}
  ul.woocommerce-order-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  ul.woocommerce-order-overview li:nth-child(3){border-left:0}
  ul.woocommerce-order-overview li:nth-child(n+3){border-top:1px solid var(--line)}
}
