/* PN-2 «Полка»: WooCommerce and YITH content inside the PN-2 frame (wp_head pages only).
   Ohio's CSS, JS and WooCommerce templates are off on PN-2 pages (inc/skin.php), so the markup here is
   WooCommerce's own: classic templates (product form, notices, account, order tables) and the cart and
   checkout blocks. Fonts, colours, radii and spacing only - fields, consents and texts stay
   WooCommerce's and the mu-plugins'. The checkout mu-plugin prints its CSS later in <head>, so its rules
   are met here with the #p2 scope (and !important where it uses it). */

/* ---------- frame of WooCommerce pages ---------- */
#p2 .p2-wc{padding-top:8px}
#p2 .p2-wc .p2-page-head{padding-top:28px;margin-bottom:28px}
#p2 .p2-wc .p2-page-head h1{font-size:clamp(40px,5vw,72px)}
#p2 .p2-wc-body,#p2 .p2-form,#p2 .woocommerce-notices-wrapper{font-family:var(--p2-sans);color:var(--p2-ink)}
#p2 .p2-wc-body :is(h1,h2,h3,h4,h5){font-family:var(--p2-display);font-weight:600;color:var(--p2-ink);letter-spacing:-.005em;text-transform:none}
/* links in running text of WooCommerce pages (terms, privacy note, lost password, order notes) are underlined;
   :where keeps this at (1,1,0) so the account menu pills and the product name rule below still win */
#p2 .p2-wc-body :where(a:not(.button):not(.wp-element-button):not(.wc-block-components-button):not(.wp-block-button__link):not(.wc-block-components-product-name)){color:var(--p2-ink);text-decoration:underline;text-underline-offset:3px;background-image:none}
#p2 .p2-wc-body .wc-block-components-product-name{color:var(--p2-ink);font-weight:600;text-decoration:none;background-image:none}

/* buttons: pill, ink, sentence case */
#p2 .p2-wc-body :is(.button,a.button,button.button,button[type=submit],.wp-block-button__link,.wc-block-components-button:not(.wc-block-components-button--tertiary):not(.is-link):not(.wc-block-components-totals-coupon__button)){
  border-radius:999px;background:var(--p2-ink);color:#fff;border:0;box-shadow:none;
  font-family:var(--p2-sans);font-weight:600;font-size:17px;letter-spacing:0;text-transform:none;min-height:52px;padding-left:28px;padding-right:28px;text-decoration:none;background-image:none}
#p2 .p2-wc-body :is(.button,a.button,button.button,button[type=submit],.wp-block-button__link,.wc-block-components-button:not(.wc-block-components-button--tertiary):not(.is-link)):hover{background:#000;color:#fff}
#p2 .p2-wc-body .wc-block-components-totals-coupon__button{border-radius:999px;text-transform:none;letter-spacing:0;font-family:var(--p2-sans);font-weight:600}

/* Place order and Proceed to checkout: the checkout mu-plugin styles them with DM Sans capitals and square
   corners (previous skin); here they take the skin's main button. Height, consent and texts unchanged. */
#p2 .wc-block-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
#p2 .wc-block-cart .wc-block-cart__submit-container .wc-block-cart__submit-button{
  font-family:var(--p2-sans);font-size:17px;font-weight:600;letter-spacing:0;text-transform:none;border-radius:999px;background:var(--p2-ink);color:#fff;border:0;box-shadow:none}
#p2 .wc-block-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover,
#p2 .wc-block-cart .wc-block-cart__submit-container .wc-block-cart__submit-button:hover{background:#000;color:#fff}
#p2 .wc-block-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button:focus-visible,
#p2 .wc-block-cart .wc-block-cart__submit-container .wc-block-cart__submit-button:focus-visible{outline:3px solid var(--p2-ink)!important;outline-offset:3px!important;box-shadow:none!important}

/* fields: one radius for inputs, selects and the select container (mu-plugin squares the select) */
#p2 .p2-wc-body :is(.wc-block-components-text-input input,.wc-block-components-textarea,.wc-block-components-combobox .components-combobox-control__input,input.input-text,textarea.input-text){border-radius:12px;font-family:var(--p2-sans)}
#p2 .wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
#p2 .wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__container{border-radius:12px}
#p2 .p2-wc-body .wc-block-components-text-input input:focus,#p2 .p2-wc-body .wc-blocks-components-select__select:focus{box-shadow:0 0 0 1px var(--p2-ink);border-color:var(--p2-ink)}
#p2 .p2-wc-body :is(.wc-block-components-title,.wc-block-components-checkout-step__title,.wc-block-cart__totals-title,.wc-block-components-order-summary__button-text){font-family:var(--p2-display);font-weight:600;color:var(--p2-ink);text-transform:none;letter-spacing:0}
#p2 .p2-wc-body :is(.wc-block-components-totals-item__value,.wc-block-formatted-money-amount){color:var(--p2-ink);font-weight:700}
#p2 .p2-wc-body .wc-block-checkout__terms{font-size:15px;line-height:1.55}
#p2 .p2-wc-body .wc-block-cart__empty-cart__title{font-family:var(--p2-display);font-weight:600;text-transform:none;letter-spacing:0}
/* 768: WooCommerce keeps two columns too narrow, words break mid-word - stack earlier (as before) */
@media (max-width:900px){
  #p2 .wc-block-components-sidebar-layout{flex-direction:column}
  #p2 .wc-block-components-sidebar-layout .wc-block-components-main,
  #p2 .wc-block-components-sidebar-layout .wc-block-components-sidebar{width:100%!important;padding-left:0;padding-right:0}
}

/* phone check (r1): the blocks print their small print at --wp--preset--font-size--small (13-14 px:
   "You are currently checking out as guest", "+ Add apartment..."); here it is 16 px at every width */
body.pn2{--wp--preset--font-size--small:16px}
#p2 :is(.wc-block-checkout__guest-checkout-notice,.wc-block-components-address-form__address_2-toggle){font-size:16px}
#p2 .wc-block-components-address-form__address_2-toggle{min-height:44px}
/* 12.11 (PN-R13): the 44 px toggle kept its text at the top, so 35 px of air hung under "+ Add apartment" against
   12 px between fields. Text centred in the 44 px zone; the margins give back 12 px to the text on both sides. */
#p2 .wc-block-components-address-form .wc-block-components-address-form__address_2-toggle{display:flex;align-items:center;margin-top:1px;margin-bottom:-12px}
/* 12.11 checkout cards (PN-R6, PN-R12, PN-R14). The cards are the skin's fieldset rule below (margin 24px 0 16px):
   - the first card started 24 px under the "Order summary" column - its top margin is dropped;
   - the summary column takes the cards' 2 px line and 16 px radius, its title the step titles' type;
   - "Add a note to your order" sits outside the cards, so it gets their inner offset (2 px line + 20 px). */
#p2 .wc-block-checkout__form>fieldset:first-of-type{margin-top:0}
@media (min-width:901px){#p2 .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block{border:2px solid var(--p2-line);border-radius:16px}}
#p2 .p2-wc-body .wc-block-components-checkout-order-summary__title-text{font-family:var(--p2-display);font-weight:600;color:var(--p2-ink);letter-spacing:0;text-transform:none}
#p2 .wc-block-checkout__order-notes{padding-left:22px;padding-right:22px}
/* phone check (r3, /checkout/ at 390): the consent line under the order (15 px from the rule above, with its
   links), the pack description in the order summary (WooCommerce x-small, 14 px) and the currency note of the
   checkout mu-plugin (14 px). Below 480 px they read at 16 px; the checkbox and in-line links keep their size.
   The 154x23 "Apartment, suite" input the check lists is WooCommerce's autofill trap
   (.wc-block-components-address-form__address_2-hidden-input: tabindex -1, aria-hidden, left -20000px),
   not a control anyone can tap; the visible toggle above already has 44 px. */
@media (max-width:480px){
  #p2 .p2-wc-body .wc-block-checkout__terms{font-size:16px}
  #p2 .wc-block-components-product-metadata__description>p{font-size:16px}
  #p2 .pn-cur-note{font-size:16px}
  #p2 .wc-block-components-checkout-return-to-cart-button{display:inline-flex;align-items:center;min-height:44px}
}

/* card marks under the checkout (functions.php pn_checkout_cards); label shown in sentence case */
#p2 .pn-checkout-cards{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:20px 0 6px;padding-top:16px;border-top:2px solid var(--p2-ink);max-width:100%}
#p2 .pn-checkout-cards .lbl{width:100%;margin-bottom:4px;font:600 16px/1.3 var(--p2-sans);letter-spacing:0;text-transform:lowercase;color:var(--p2-ink-2)}
#p2 .pn-checkout-cards .lbl::first-letter{text-transform:uppercase}
#p2 .pn-checkout-cards img{width:44px;height:28px;object-fit:contain;background:#fff;border:1px solid #e8e8e8;border-radius:6px;padding:4px 5px;box-sizing:border-box}

/* ---------- notices ---------- */
#p2 :is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner){border-radius:16px;font-family:var(--p2-sans);font-size:16px;color:var(--p2-ink)}
/* classic notices (WooCommerce templates): text first, the button after it */
#p2 :is(.woocommerce-message,.woocommerce-info,.woocommerce-error){display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 20px;padding:16px 20px;list-style:none;background:var(--p2-soft);border:2px solid var(--p2-ink);line-height:1.45}
#p2 .woocommerce-error{background:#FEF3F2;border-color:#B42318;flex-direction:column;align-items:flex-start}
#p2 .woocommerce-error li{margin:0;padding:0}
#p2 :is(.woocommerce-message,.woocommerce-info) a.button{order:2;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:0;border-radius:999px;background:var(--p2-ink);color:#fff;font:600 16px/1 var(--p2-sans);text-transform:none;letter-spacing:0;text-decoration:none;background-image:none}
#p2 :is(.woocommerce-message,.woocommerce-info) a.button:hover{background:#000;color:#fff}
#p2 :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) a:not(.button){color:var(--p2-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
#p2 .p2-prod>.woocommerce-notices-wrapper,#p2 .p2-shop>.woocommerce-notices-wrapper{margin:12px 0}

/* ---------- product page: WooCommerce's own form and <button> ---------- */
#p2 .p2-form form.cart{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0;padding:0;width:100%}
#p2 .p2-form form.cart .quantity{display:none}
#p2 .p2-form .single_add_to_cart_button{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;height:auto;margin:0;padding:0 24px;border:0;border-radius:999px;background:var(--p2-ink);color:#fff;font:600 17px/1.1 var(--p2-sans);letter-spacing:0;text-transform:none;box-shadow:none;cursor:pointer;text-decoration:none;background-image:none}
#p2 .p2-form .single_add_to_cart_button:hover{background:#000;color:#fff}
#p2 .p2-form .single_add_to_cart_button:focus-visible{outline:3px solid var(--p2-ink);outline-offset:3px}
#p2 .p2-form .yith-add-to-wishlist-button-block{margin:0;min-height:44px;display:flex;align-items:center;justify-content:center}
#p2 .p2-form .yith-wcwl-add-to-wishlist-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--p2-ink);font:600 16px/1.2 var(--p2-sans);text-transform:none;letter-spacing:0;background:none;border:0;box-shadow:none}
#p2 .p2-form .yith-wcwl-add-to-wishlist-button:hover{text-decoration:underline;text-underline-offset:3px}
#p2 .p2-form .added_to_cart{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:none;color:var(--p2-ink);font:600 16px/1 var(--p2-sans);text-decoration:underline;text-underline-offset:4px;border:0;box-shadow:none;padding:0}

/* ---------- my account ---------- */
#p2 .woocommerce-MyAccount-navigation ul{list-style:none;margin:0 0 24px;padding:0;display:flex;flex-direction:column;gap:6px}
#p2 .woocommerce-MyAccount-navigation li{margin:0;padding:0}
#p2 .woocommerce-MyAccount-navigation li a{display:flex;align-items:center;min-height:48px;padding:0 18px;border-radius:999px;border:2px solid var(--p2-ink);color:var(--p2-ink);font:600 16px/1.2 var(--p2-sans);text-decoration:none;background:#fff}
#p2 .woocommerce-MyAccount-navigation li.is-active a,#p2 .woocommerce-MyAccount-navigation li a:hover{background:var(--p2-ink);color:#fff}
#p2 .woocommerce-MyAccount-content{font-size:17px;line-height:1.6}
@media (min-width:901px){
  #p2 .p2-wc-body .woocommerce:has(>.woocommerce-MyAccount-navigation){display:grid;grid-template-columns:260px minmax(0,1fr);gap:48px;align-items:start}
  #p2 .p2-wc-body .woocommerce:has(>.woocommerce-MyAccount-navigation)>:not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content){grid-column:1/-1}
}
#p2 .woocommerce-MyAccount-content>p:first-of-type{margin-top:0}

/* login / register / lost password (myaccount/form-login.php, form-lost-password.php) */
#p2 .p2-wc-body .col2-set{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;align-items:start}
#p2 .p2-wc-body .col2-set::before,#p2 .p2-wc-body .col2-set::after{content:none}
#p2 .p2-wc-body .col2-set>*{min-width:0;width:auto;float:none}
#p2 .p2-wc-body #customer_login h2,#p2 .p2-wc-body .woocommerce>h2{font-size:32px;line-height:1.1;margin:0 0 16px}
/* 12.11 (PN-R11): Login and Register cards end on one line (they were 662 and 690 px) */
#p2 .p2-wc-body #customer_login{align-items:stretch}
#p2 .p2-wc-body #customer_login>.u-column1,#p2 .p2-wc-body #customer_login>.u-column2{display:flex;flex-direction:column}
#p2 .p2-wc-body #customer_login>*>form{flex:1 1 auto}
#p2 .p2-wc-body form.login,#p2 .p2-wc-body form.register,#p2 .p2-wc-body form.woocommerce-ResetPassword,#p2 .p2-wc-body form.woocommerce-EditAccountForm{border:2px solid var(--p2-line);border-radius:var(--p2-rt);padding:26px;margin:0}
#p2 .p2-wc-body form.woocommerce-EditAccountForm{border:0;padding:0}
#p2 .p2-wc-body form :is(p,.form-row){margin:0 0 16px;padding:0}
#p2 .p2-wc-body form>:last-child{margin-bottom:0}
#p2 .p2-wc-body .form-row-first,#p2 .p2-wc-body .form-row-last,#p2 .p2-wc-body .form-row-wide{width:100%;float:none}
#p2 .p2-wc-body .form-row label{display:block;margin:0 0 6px;font-family:var(--p2-sans);font-weight:600;font-size:16px;line-height:1.35;letter-spacing:0;text-transform:none;color:var(--p2-ink)}
#p2 .p2-wc-body .required{color:#B42318;border:0;text-decoration:none}
#p2 .p2-wc-body :is(input.input-text,textarea.input-text,select:not(.wc-blocks-components-select__select):not(.orderby)){display:block;width:100%;min-height:52px;margin:0;padding:12px 16px;border:2px solid var(--p2-ink);border-radius:12px;background:#fff;color:var(--p2-ink);font:400 17px/1.3 var(--p2-sans);box-shadow:none}
#p2 .p2-wc-body :is(input.input-text,textarea.input-text):focus{outline:3px solid var(--p2-ink);outline-offset:2px}
#p2 .p2-wc-body label.woocommerce-form__label-for-checkbox{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin:0;font-weight:500;cursor:pointer}
#p2 .p2-wc-body input[type=checkbox]{width:22px;height:22px;margin:0;accent-color:var(--p2-ink);flex:none}
#p2 .p2-wc-body .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit){display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
#p2 .p2-wc-body .lost_password a{display:inline-flex;align-items:center;min-height:44px}
#p2 .p2-wc-body :is(.woocommerce-privacy-policy-text,.woocommerce-password-hint,.woocommerce-password-strength){font-size:16px;line-height:1.5;color:var(--p2-ink-2)}
#p2 .p2-wc-body fieldset{margin:24px 0 16px;padding:20px;border:2px solid var(--p2-line);border-radius:16px}
#p2 .p2-wc-body legend{padding:0 6px;font:600 18px/1.2 var(--p2-display)}
/* WooCommerce's password "eye" toggle needs its icon font, which the skin does not load (kept hidden, as before) */
#p2 .show-password-input{display:none!important}

/* order received, view order, orders list (classic tables) */
#p2 .p2-wc-body table.shop_table{width:100%;margin:0 0 28px;border-collapse:collapse;border:0;font-size:16px;line-height:1.45}
#p2 .p2-wc-body table.shop_table :is(th,td){padding:14px 12px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid var(--p2-line)}
#p2 .p2-wc-body table.shop_table thead th{font-weight:600;color:var(--p2-ink-2)}
#p2 .p2-wc-body table.shop_table tfoot th{font-weight:600}
#p2 .p2-wc-body .woocommerce-order-overview{display:flex;flex-wrap:wrap;gap:12px 32px;margin:0 0 28px;padding:0;list-style:none}
#p2 .p2-wc-body .woocommerce-order-overview li{margin:0;padding:0;font-size:16px;color:var(--p2-ink-2)}
#p2 .p2-wc-body .woocommerce-order-overview li strong{display:block;color:var(--p2-ink);font-size:17px}
#p2 .p2-wc-body :is(.woocommerce-order-details__title,.woocommerce-column__title,.woocommerce-order-downloads__title){font-size:28px;margin:0 0 14px}
#p2 .p2-wc-body .woocommerce-customer-details address{font-style:normal;padding:18px 20px;border:2px solid var(--p2-line);border-radius:16px}
#p2 .p2-wc-body .woocommerce-pagination{display:flex;gap:12px;margin-top:16px}

/* ---------- wishlist ---------- */
#p2 .wishlist_table{border:2px solid var(--p2-line);border-radius:var(--p2-rt);border-collapse:separate;overflow:hidden}
#p2 .wishlist_table th{font:600 16px/1.3 var(--p2-sans);letter-spacing:0;text-transform:none;color:var(--p2-ink-2)}
/* no social sharing on the storefronts (fleet policy) */
#p2 .yith-wcwl-share,#p2 .wishlist_table .product-arrange{display:none!important}
@media (max-width:760px){
  #p2 .p2-wc-body .col2-set{grid-template-columns:minmax(0,1fr);gap:24px}
  #p2 .p2-wc-body form.login,#p2 .p2-wc-body form.register,#p2 .p2-wc-body form.woocommerce-ResetPassword{padding:20px 18px}
  #p2 .p2-wc-body table.shop_table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media (max-width:767px){
  #p2 .wishlist_table.mobile{width:100%;margin:0}
  #p2 .wishlist_table .product-remove a,#p2 .wishlist_table a.remove_from_wishlist{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
  #p2 [class*="wishlist"] table,#p2 table.wishlist_table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
}

/* fleet currency switcher bar (mu-plugin, placed under the header when the theme has no slot) */
#p2 .fleet-cur-bar{max-width:1440px;margin:0 auto;width:100%;padding:8px var(--p2-gut);border:0;font-family:var(--p2-sans);font-size:16px}
#p2 .fleet-cur-switcher a{color:var(--p2-ink)}

@media (prefers-reduced-motion:reduce){
  #p2 .p2-wc-body *,#p2 .p2-form *{transition:none!important;animation:none!important}
}

/* 11.11, слово Егора: «Add to wishlist» стоял впритык под кнопкой (отступ 0). Вторичная кнопка-пилюля во всю ширину. */
#p2 .p2-form .yith-add-to-wishlist-button-block{display:block;width:100%;margin:10px 0 0;min-height:0}
#p2 .p2-form .yith-wcwl-add-to-wishlist-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:0 24px;border:1.5px solid var(--p2-ink);border-radius:999px;background:#fff;color:var(--p2-ink);font:600 16px/1.2 var(--p2-sans);text-decoration:none;cursor:pointer}
#p2 .p2-form .yith-wcwl-add-to-wishlist-button:hover{background:#f2f2f2;text-decoration:none}
#p2 .p2-form .yith-wcwl-add-to-wishlist-button:focus-visible{outline:3px solid var(--p2-ink);outline-offset:3px}
#p2 .p2-form .yith-wcwl-add-to-wishlist-button svg{width:18px;height:18px;flex:none}
