/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: Ryslan Mamedov
Author URI: https://wordpress.org
Description: Twenty Twenty-Five Child
Requires PHP: 7.2
Version: 1.0
Template: twentytwentyfive
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}

.wp-block-group.wc-blocks-pattern-header-distraction-free.wc-blocks-header-pattern.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained .wp-block-navigation {
    text-transform: uppercase;
}
/* Active HEADER LINK */
.wc-blocks-header-pattern .wp-block-navigation-item.current-menu-item.wp-block-navigation-link a {
    text-decoration: underline;
}

/* Active All LINK */
/* .wp-block-navigation-item.current-menu-item.wp-block-navigation-link a {
    text-decoration: underline;
} */

h2.has-text-align-center.wp-block-post-title.has-medium-font-size {
    font-family: "Montserrat", sans-serif;
	font-weight: 600;
}



/* ================================
   BASE RESET FOR CHECKOUT
================================ */
body.woocommerce-checkout main .woocommerce {
  max-width: 1400px;
  margin: 0 auto;
}

/* ================================
   GRID LAYOUT
================================ */
form.checkout .checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  padding: 48px 24px;
}

/* Mobile */
@media (max-width: 960px) {
  form.checkout .checkout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ================================
   HEADINGS
================================ */
form.checkout .checkout-left h3,
form.checkout .checkout-left h2,
form.checkout .checkout-right h2,
form.checkout .woocommerce-billing-fields h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ================================
   FORM FIELDS
================================ */
form.checkout .checkout-left .form-row {
  margin: 0 0 3px;
}

form.checkout .checkout-left label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  display: block;
}

form.checkout .checkout-left input,
form.checkout .checkout-left select,
form.checkout .checkout-left textarea {
  width: 100%;
  height: 48px;
  padding: 0.5rem 0.5rem!important;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.woocommerce-page form .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    padding: .5rem .5rem !important;
}


form.checkout .checkout-left textarea {
  height: auto;
  min-height: 96px;
}

/* Focus */
form.checkout .checkout-left input:focus,
form.checkout .checkout-left select:focus,
form.checkout .checkout-left textarea:focus {
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
  outline: none;
}

/* Required asterisk */
form.checkout .checkout-left label .required {
  color: #cc1818;
}

/* ================================
   TWO COLUMNS FOR NAME
================================ */
form.checkout .form-row-first,
form.checkout .form-row-last {
  width: 48%;
}

form.checkout .form-row-first {
  float: left;
}

form.checkout .form-row-last {
  float: right;
}

@media (max-width: 768px) {
  form.checkout .form-row-first,
  form.checkout .form-row-last {
    width: 100%;
    float: none;
  }
}

/* ================================
   ERROR STATES
================================ */
form.checkout .wc-block-components-notice-banner {
    /* align-content: flex-start;
    align-items: stretch;
    background-color: #fff;
    border: 1px solid #2f2f2f;
    border-radius: 4px;
    box-sizing: border-box;
    color: #2f2f2f;
    display: flex; */
    font-size: 0.65em!important;
    /* font-weight: 400;
    gap: 12px;
    line-height: 1.5;
    margin: 16px 0;
     */
    padding: 6px !important;
}

form.checkout .woocommerce-invalid input,
form.checkout .woocommerce-invalid select {
  border-color: #cc1818 !important;
  box-shadow: 0 0 0 1px #cc1818!important;
}

form.checkout .woocommerce-error,
form.checkout .woocommerce-message {
  margin-bottom: 24px!important;
}

/* ================================
   ORDER SUMMARY (RIGHT)
================================ */
.checkout-right {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 24px;
  background: #fff;
  height: fit-content;
}

.woocommerce-page table.shop_table {
    width: 100%!important;
    border-collapse: collapse!important;
}

.woocommerce-page table.shop_table th,
.woocommerce-page table.shop_table td {
  padding: 12px 0px 12px 10px!important;
  font-size: 14px!important;
}

.woocommerce-page table.shop_table th {
  text-align: left!important;
  font-weight: 500!important;
}

woocommerce-page table.shop_table td {
  text-align: right!important;
}

woocommerce-page table.shop_table tr:not(:last-child) {
  border-bottom: 1px solid #eee;
}

/* Sticky summary on desktop */
@media (min-width: 960px) {
  .checkout-right {
    position: sticky;
    top: 32px;
  }
}

/* ================================
   PAYMENT BLOCK
================================ */
.woocommerce-checkout-payment {
  margin-top: 32px;
  padding: 24px;
  border-radius: 10px;
  background: #fff!important;
  border: 1px solid #e5e5e5;
}

.wc_payment_method {
  margin-bottom: 16px;
}


#add_payment_method #payment div.payment_box::before, .woocommerce-cart #payment div.payment_box::before, .woocommerce-checkout #payment div.payment_box::before {
    content: "";
    display: block;
    border: 1em solid #f5f5f7;
    border-right-color: transparent;
    border-left-color: transparent;
    border-top-color: transparent;
    position: absolute;
    top: -.75em;
    left: 0;
    margin: -1em 0 0 2em;
 }

.woocommerce-checkout #payment div.payment_box{
  background: #f5f5f7!important;
}

/* Stripe card iframe spacing */
.wc-stripe-elements-field,
.wc-stripe-iban-element-field {
  padding: 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d9d9d9;
}

/* ================================
   PLACE ORDER BUTTON
================================ */
#place_order {
  width: 100%;
  height: 52px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  margin-top: 24px;
  cursor: pointer;
}

#place_order:hover {
  background: #111;
}

/* ================================
   PRIVACY TEXT
================================ */
.woocommerce-privacy-policy-text {
  font-size: 13px;
  color: #666;
  margin-top: 16px;
}


#radio-control-wc-payment-method-options-seb_commerce {
    display: none;
}

/* Убираем блок с выбором способов доставки, так как в нашем магазине только один способ доставки */
.wc-block-components-shipping-rates-control {
    display: none !important;
}
#shipping-option {
    display: none !important;
}
/* Убираем блок с итоговой стоимостью доставки, так как в нашем магазине доставка бесплатная */
.wc-block-components-totals-shipping {
    display: none !important;
}