/*
 * Custom styles for the WooCommerce cart template.
 *
 * This stylesheet adapts the cart and checkout page to match
 * the clean, minimalist design referenced in the provided mockup.
 * It introduces card‑style product entries, simplified form
 * controls, and refined spacing and typography. The styles are
 * scoped to the classes output by the cart template to avoid
 * interfering with the rest of the theme.
 */

/* =========================================
   Layout
   ----------------------------------------- */

/* Two‑column layout: products on the left, summary on the right. */
.cart-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
}

@media (max-width: 1024px) {
  .cart-container {
	grid-template-columns: 1fr;
  }
  .cart-container > .cart-container-item:nth-child(2) {
	order: -1;
  }
}

/* Checkout header */
.checkout-header h1 {
  margin: 0 0 24px;
  font-size: 22.74px;
  font-weight: 400;
  text-transform: uppercase;
}

/* =========================================
   Product list (left column)
   ----------------------------------------- */

/* Each cart item becomes a soft card with subtle shadow and rounded
   corners. We use a CSS grid for easy column management. */
.product-info {
  display: grid;
  grid-template-columns: 197px 1fr;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.product-info:last-child {
  margin-bottom: 0;
}

/* Thumbnail styling */
.product-thumb,
.product-thumb img {
  display: block;
  width: 197px;
  height: 232px;
  object-fit: cover;
  border-radius: 10px;
  overflow: hidden;
}

/* Information column */
.product-info-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.product-title a {
  text-decoration: none;
  color: inherit;
}

.product-price {
        font-family: "Romul", Sans-serif !important;
  font-size: 23px;
  line-height:26px;
  font-weight: 400;
}

.product-details {
  margin-top: 6px;
  font-size: 18px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Quantity controls */
.quantity-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* WooCommerce uses .quantity input, plus .plus and .minus buttons. */
.quantity {
    height:42px !important;
    width:120px !important;
}
.quantity .qty {
  width: 100%;
  height:auto;
  text-align: center;
  font-size: 23px;
  padding: 0 !important;
  background: none !important;
    border: none !important;
}
.quantity[data-type=type-2] .ct-decrease {
    inset-inline-start: 0!important;
}
.quantity[data-type=type-2] .ct-increase {
    inset-inline-end: 0 !important;
}

.quantity .minus,
.quantity .plus {
  width: 32px;
  height: 32px;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  user-select: none;
}

/* Remove link: small cross positioned to the right of controls */
.remove-from-cart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  color: #999;
  background: #fff;
  border: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}

.remove-from-cart:hover {
  background: #f0f0f0;
}

/* Hide the original coupon field in the left column */
.piton-hidden-coupon {
  display: none !important;
}

/* =========================================
   Fieldsets (delivery, personal info, payments)
   ----------------------------------------- */
.piton-fieldset {
  margin: 37px 0;
  padding: 0;
  border: 0;
  background: none;
}

.piton-fieldset > legend {
        font-family: "Romul", Sans-serif !important;
  display: block;
  margin-bottom: 12px;
  font-weight: 400;
  font-size: 22.74px;
  line-height:26px;
  text-transform: uppercase;
  color: #222222;
}

/* Generic grid for field groups */
.field-groups {
  display: grid;
  gap: 16px;
}

/* Two columns on desktop, one on mobile */
.field-name {
  grid-template-columns: 1fr 1fr;
}

.field-name input {
  width: 100%;
  height: 74px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  font-size: 22px;
  color: #333;
}
div.quantity .ct-increase:hover, div.quantity .ct-decrease:hover {
    background:#222;
}

.field-name input::placeholder {
  color: #999;
}

@media (max-width: 680px) {
  .field-name {
	grid-template-columns: 1fr;
  }
}

/* Payment methods list */
.piton-payments {
  display: flex;
  gap: 12px;
}

.piton-payments__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
  margin-bottom:0;
}

.piton-payments__item input {
  width: 16px;
  height: 16px;
  accent-color: #333;
}

.piton-payments__item.is-checked span {
  font-weight: 600;
}

/* =========================================
   Delivery tabs & selectors
   ----------------------------------------- */
.piton-delivery-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.piton-delivery-tabs .ptab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  /*border: 1px solid #d0d0d0;
  border-radius: 12px;
  background: #fff;*/
  margin-bottom:0;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.piton-delivery-tabs .ptab:hover {
  /*background: #f5f5f5;*/
}

.piton-delivery-tabs .ptab input {
  accent-color: #333;
}

/* Pickup select styling */
.piton-input select {
  width: 100%;
  height: 44px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-size: 14px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #999 50%),
					linear-gradient(135deg, #999 50%, transparent 50%),
					linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

.piton-pickup-address {
  margin: 10px 0;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.piton-pickup-map {
  margin-top: 10px;
  height: 330px;
  background: #f4f4f4;
  border-radius: 12px;
  overflow: hidden;
  filter:grayscale(1);
}

button.piton-pvz-open {
    display:none !important;
}

/* CDEK radio list */
.piton-cdek-box .woocommerce-shipping-methods {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.piton-cdek-box .woocommerce-shipping-methods li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
}

.piton-cdek-box input[type="radio"] {
  accent-color: #333;
  width: 16px;
  height: 16px;
}

.piton-cdek-box .piton-shipping-host label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: "Nunito Sans", sans-serif;
    font-size: 22px;
    margin:0;
    width:90%;
}
.piton-cdek-box label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: "Nunito Sans", sans-serif;
    font-size: 22px;
    margin:0;
    width:100%;
}
.piton-city-field .hint {
  font-family: "Nunito Sans", sans-serif;
    font-size: 22px;
}
input#piton-city {
    width: 100%;
    height: 74px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    font-size: 22px;
    color: #333;
}
.open-pvz-btn {
        background: #222 !important;
    font-size: 22px !important;
    padding: 16px !important;
    font-family: "Nunito Sans", sans-serif;
    margin: 0 !important;
}
.open-pvz-btn a {
    color:#fff !important;
}
.cdek-office-info {
    margin-top:0 !important;
    font-size: 22px !important;
    padding: 9px !important;
    font-family: "Nunito Sans", sans-serif;
        background: #f6f6f6 !important; 
}
#piton-address {
    width: 100%;
    height: 74px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    font-size: 22px;
    color: #333;
}

.piton-cdek-box .amount {
  font-weight: 600;
}

/* Button to open PVZ list */
.piton-pvz-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #333;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.piton-pvz-open:hover {
  background: #111;
}

/* Loader overlay for CDEK widget */
.piton-cdek-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.piton-cdek-loader.show {
  opacity: 1;
  pointer-events: auto;
}

.piton-cdek-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #ddd;
  border-top-color: #333;
  border-radius: 50%;
  animation: pitonSpinner 0.8s linear infinite;
}

@keyframes pitonSpinner {
  to { transform: rotate(360deg); }
}

/* =========================================
   Sidebar (right column)
   ----------------------------------------- */
.piton-sticky {
  position: sticky;
  top: 24px;
}

.shadow_block {
  border: 1px solid #eaeaea;
  box-shadow: 1px 1px 6px rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 16px;
}

/* Totals rows */
.piton-card-totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.piton-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.piton-row:last-child {
  border-bottom: none;
}

/* Coupon code field */
.piton-coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom:20px;
}

.piton-coupon input {
  flex: 1;
  height: 36px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 0;
  font-size: 14px;
}

.piton-coupon button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #333;
  color: #fff;
  font-size: 0;
  cursor: pointer;
  position: relative;
}

.piton-coupon button::before {
  content: '\203a'; /* single right angle quotation mark */
  font-size: 20px;
  line-height: 32px;
  position: absolute;
  inset: 0;
  text-align: center;
}

.button.piton-place-order {
	font-family: "Romul", Sans-serif !important;
    font-weight: 400;
}

/* Consent text and order button */
.piton-consent {
  display: flex;
  align-items: flex-start;
  font-family: 'Proxima Nova', sans-serif;
  gap: 8px;
  font-size: 22px;
  line-height:29px;
  color: #222222;
  margin: 14px 0;
}

.piton-consent a {
	color: #222222;
	text-decoration: underline;
}	

.piton-consent input {
  width: 14px;
  height: 14px;
  accent-color: #333;
}

.piton-place-order {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.piton-place-order:hover {
  background: #111;
}

.piton-place-order[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hide WooCommerce default table inside order review */

.piton-order-review .woocommerce-checkout-review-order-table {
  display: none;
}


/* Force theme to display checkout elements */
#piton-checkout-host,
.woocommerce-cart .checkout,
.woocommerce-cart .woocommerce-checkout {
  display: block !important;
}

/* Reinforce grid on our custom cart container */
#piton-cart-grid {
  display: grid !important;
  grid-template-columns: 1fr 715px !important;
  gap: 32px;
}


/* Новые правки */
.woocommerce-shipping-methods input[type=radio]:checked {
    background: #222 !important;
    border-color: #222;
}
.woocommerce {
    margin:0 !important;
    padding:0 80px;
    width:100%;
    max-width: 100%;
}
.ct-container-full {
    padding-top:0;    
}
.hero-section.is-width-constrained {
    display:none;
}
.checkout-header h1 {
    font-family: "Romul", Sans-serif !important;
    margin-bottom:34px !important;
}
.woocommerce-breadcrumb {
    font-size: 18px;
        line-height: 18px;
        font-family: "Proxima", Sans-serif;
        color:#222222;
}
.woocommerce-breadcrumb a {
    color:#ABABAB;
}
.checkout-content {
    padding-top:26px;
}
.checkout-header {
    margin-top:34px;
}
.product-info-content {
    background: #f6f6f6;
    padding:16px;
    border-radius:8px;
}
.product-thumb, .product-thumb img {
    border-radius:8px;
    background:#f6f6f6;
}
.remove-from-cart {
    display:none;
}
input.qty {
    
}
div.quantity .ct-increase, div.quantity .ct-decrease {
        border: 1px solid #cdcdcd;
    border-radius: 50% !important;
    background: #fff;
        width: 42px !important;
    height: 42px !important;
    top:0 !important;
}
.cart-actions {
    display: none;
}
button.piton-place-order {
    background: #222 !important;
    border-radius: 8px !important;
        font-size: 18px !important;
        line-height:1.5;
    height: 74px;
    margin-top:37px;
}
.quantity-content {
    
}
.product_header {
    display:flex;
        align-items: flex-start;
    justify-content: space-between;
}
.product_footer {
    display:flex;
        align-items: flex-end;
    justify-content: space-between;
}
#piton-coupon-code {
    border:none;
    font-size:22px;
}
.total_card_label {
        font-family: "Romul", Sans-serif !important;
        font-size:19.2px;
        font-weight:400;
        line-height:1.5;
}
.total_label {
        font-family: "Romul", Sans-serif !important;
        font-size:22.74px;
        font-weight:400;
        line-height:26px;
}
.product-title a {
        font-family: "Romul", Sans-serif !important;
        font-size:21.8px;
        font-weight:400;
        line-height:26px;
}
.piton-order-total, .piton-order-subtotal, .piton-order-shipping {
        font-family: "Romul", Sans-serif !important;
        font-size:23px;
        font-weight:400;
        line-height:26px;
}
#piton-right {
    width:715px;
}
.piton-row.piton-payment {
    display:none;
}
#order_review {
    display:none;
}
.subtotal_block {
    display:flex;
    flex-direction:column;
    gap:45px;
    margin-bottom:20px;
}
.piton-pickup-box .shadow_block {
    font-family: "Nunito Sans", sans-serif;
    font-size: 22px;
}
.field-groups input {
    
}

@media(max-width: 1699px) {
.piton-cdek-box label, .piton-city-field .hint, input#piton-city, .cdek-office-info, .open-pvz-btn, #piton-address {
    font-size:16px !important;
}
 input#piton-city, #piton-address {
     height: 47px;
 }
 .open-pvz-btn {
     
 }
    .woocommerce {padding:0 50px;}
    .product-info {grid-template-columns: 123px 1fr;}
    .product-thumb,.product-thumb img {width: 123px;height: 145px;}
    #piton-cart-grid {grid-template-columns: 1fr 446px !important;}
    #piton-right {width:446px;}
    .checkout-header h1 {
        font-size:14.21px;
    }
    .woocommerce-breadcrumb {
        font-size:12px;
    }
    .product-title a {
        font-size: 13px;
    }
    .product-details {
    font-size: 11.25px;
}
.quantity .qty {
        font-size: 14.37px;
}
.quantity {
    height:26.25px !important;
    width:75px !important;
}
div.quantity .ct-increase, div.quantity .ct-decrease {
    height:26.25px !important;
    width:26.25px !important;
}
.product-price {
    font-size: 14.37px;
}
.piton-fieldset > legend {
    font-size:14.21px;
}
.piton-delivery-tabs .ptab {
    font-size:13.75px;
	font-family: "Nunito Sans", sans-serif;
}
.total_card_label {
    font-size:12px;
}
.piton-order-total, .piton-order-subtotal, .piton-order-shipping {
    font-size: 14.37px;
}
.total_label {
    font-size:14.21px;
}
.piton-consent {
    font-size:13.75px;
}
button.piton-place-order {
        font-size: 12px !important;
            height: 47px;
}
#piton-coupon-code {
    font-size:14px;
}
.piton-pickup-box .shadow_block {
    font-size:14px;
}
.field-name input {
    font-size:14px;
    height:47px;
}
.piton-payments__item {
    font-size:14px;
	font-family: "Nunito Sans", sans-serif;
}
.piton-payments__item span {
    font-size:14px;
}
}
@media(max-width: 768px) {
    .woocommerce {padding:0 45px;}
    #piton-cart-grid {
        display:block !important; 
    }
    .product-info {
        display:flex;
            flex-direction: column;
    }
    .product-thumb, .product-thumb img {
        width: 100%;
        height: auto;
    }
    #piton-right {
        width:100%;
    }
    .piton-payments {
            flex-direction: column;
        
    }
    .piton-pickup-map {
        height:220px;
    }
}
@media(max-width: 480px) {
    .woocommerce {padding:0 20px;}
}


.piton-city-field{position:relative}
.piton-dd{position:absolute;z-index:9999;left:0;right:0;top:75px;border:1px solid #ddd;background:#fff;max-height:200px;overflow:auto;display:none;font-size:14px}
.piton-dd div{padding:6px 8px;cursor:pointer}
.piton-dd div:hover,.piton-dd .a{background:#f2f2f2}

/* Убираем внутреннюю прокрутку у главного контейнера на мобильных */
@media (max-width: 768px) {
  .woocommerce-checkout,
  .post-11,
  .e-off-canvas__content {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
  }
  
  /* Восстанавливаем нормальную прокрутку у body */
  body,
  html {
    overflow-y: auto !important;
    overscroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Отключаем sticky внутри, чтобы не мешал */
  .piton-sticky {
    position: static !important;
  }
}