/* ===== WILDLANDS CHECKOUT - ОБНОВЛЕННАЯ ВЕРСИЯ ===== */
:root {
  --primary: var(--wf-main-rgb);
  --primary-hover: var(--wf-main-rgb);
  --secondary: #FF6B6B;
  --accent: #4ECDC4;
  --dark: #2D3436;
  --light: #F8F9FA;
  --gray: #E9ECEF;
  --border: #DEE2E6;
  --success: #00B894;
  --warning: #FDCB6E;
  --error: #D63031;
  --border-radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}
/* Стили для страницы информации о заказе */
/* Стили для отображения скидочных цен */

.wl-discount-badge {
    margin-left: 8px;
    display: inline-block;
    line-height: 1.2;
    top: -7px;
    position: relative;
    background: #8d6e63;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    padding-bottom: 1px;
}

.wl-product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.wl-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .wl-product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .wl-discount-badge {
        margin-left: 0;
    }
}

/* Дополнительные стили для страницы заказа */
.wl-order-product .wl-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.wl-order-info .wl-discount-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff4444);
    padding: 3px 8px;
    border-radius: 14px;
    font-size: 0.85em;
}
/* Стили для кастомных цен */

.wl-price-regular {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 8px;
	font-weight: 500;
}
.wl-product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.wl-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Переопределяем стандартные стили WooCommerce */
.wl-order-product .woocommerce-Price-amount.amount,
.wl-order-product .woocommerce-Price-currencySymbol {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.wl-order-product .woocommerce-Price-amount.amount bdi {
    display: inline !important;
}

/* Скрываем стандартный HTML цен WooCommerce в нашем кастомном выводе */
.wl-order-product .woocommerce-Price-amount.amount {
    display: none;
}

.wl-order-product .wl-price-sale .woocommerce-Price-amount.amount,
.wl-order-product .wl-price-regular .woocommerce-Price-amount.amount,
.wl-order-product .wl-price-current .woocommerce-Price-amount.amount {
    display: inline !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .wl-product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .wl-discount-badge {
        margin-left: 0;
        margin-top: 4px;
    }
    
    .wl-product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* Стили для страницы информации о заказе */
.wl-order-info .wl-price-sale {
    color: #e00;
    font-weight: bold;
}



.wl-order-info .wl-discount-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff4444);
    padding: 3px 8px;
    border-radius: 14px;
    font-size: 11px;
}
.wl-order-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wl-order-products {
    margin: 20px 0;
}

.wl-order-product {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.wl-order-totals div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wl-order-total {
    font-weight: bold;
    font-size: 1.2em;
}

.wl-customer-info, .wl-payment-info {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.wl-order-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.wl-order-actions .button {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.wl-order-actions .button:hover {
    background: #005a87;
}
/* ==== БАЗОВЫЕ СТИЛИ ==== */
.wl-checkout {
  background: #fff;
  line-height: 1.5;
  color: #333;
}

.wl-checkout * {
  box-sizing: border-box;
}

/* ==== ЗАГОЛОВОК СТРАНИЦЫ ==== */
.wl-checkout-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
  padding: 20px 0;
}

/* ==== СЕТКА ОФОРМЛЕНИЯ ЗАКАЗА ==== */
.wl-checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
  position: relative;
}

/* ==== ЛЕВАЯ КОЛОНКА - ФОРМА ==== */
.wl-checkout-left {
  background: #fff;
  padding: 0;
  border-radius: 0;
  border: none;
  position: relative;
}

/* ==== ШАГИ ОФОРМЛЕНИЯ ==== */
.wl-checkout-step {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.wl-step-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.wl-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  margin-right: 15px;
  flex-shrink: 0;
}

.wl-step-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.wl-step-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ==== ПОЛЯ ФОРМЫ ==== */
.wl-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  transition: var(--transition);
}

.wl-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.woocommerce form .form-row {
  margin-bottom: 20px;
}

.woocommerce form .form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

/* ==== СПОСОБЫ ДОСТАВКИ ==== */
.wl-shipping-methods {
  margin-top: 15px;
}

#shipping_method {
  list-style: none;
  padding: 0;
  margin: 0;
}

#shipping_method li {
  margin-bottom: 12px;
  position: relative;
  cursor: pointer;
}

#shipping_method li input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

#shipping_method li label {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  position: relative;
  width: 100%;
}

#shipping_method li input[type="radio"]:checked + label {
border-color: var(--primary);
    background: linear-gradient(135deg, var(--wf-main-rgb)17 0%, var(--wf-main-rgb)0a 100%);
    box-shadow: 0 5px 20px var(--wf-main-rgb)3d;
}

#shipment_method li :hover label {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wl-shipping-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.wl-icon-truck {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238A2BE2'%3E%3Cpath d='M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.5 1.5h-3v-1.5h1.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E");
}

.wl-icon-store {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238A2BE2'%3E%3Cpath d='M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z'/%3E%3C/svg%3E");
}

.wl-icon-local {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238A2BE2'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

.shipping_method .amount {
  font-weight: 600;
  color: var(--primary);
  font-size: 16px;
  margin-left: auto;
}

.shipping_method .shipping-description {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
  display: block;
  font-weight: normal;
}

/* ==== СПОСОБЫ ОПЛАТЫ ==== */
.wl-payment-methods {
  margin-top: 15px;
}

.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wc_payment_method {
  margin-bottom: 15px;
}

.wc_payment_method label {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.wc_payment_method input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, rgba(138, 43, 226, 0.02) 100%);
}

.wc_payment_method label:hover {
  border-color: var(--primary);
}

.wc_payment_method input[type="radio"] {
  margin-right: 12px;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.payment_box {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px solid #eee;
}

/* ==== ПРАВАЯ КОЛОНКА - ДЕТАЛИ ЗАКАЗА ==== */
.wl-checkout-right {
  position: relative;
  height: 100%;
}

.wl-order-summary {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: 130px; /* Начальная позиция */
  transition: transform 0.2s ease-out;
  will-change: transform;
}

/* ==== БЛОЧНАЯ ВЕРСТКА ТОВАРОВ ==== */
.wl-order-products {
  margin-bottom: 25px;
}

.wl-order-product {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 15px;
}

.wl-order-product:last-child {
  border-bottom: none;
}

.wl-product-image img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.wl-product-content {
  flex: 1;
  min-width: 0;
}

.wl-product-name {
  font-weight: 600;
    color: #5d4037;
  font-size: 16px;
  margin-bottom: 3px;
  display: block;
}

.wl-product-meta {
  align-items: center;
  margin-bottom: 5px;
}

.wl-product-price {
  font-weight: 600;
  color: var(--wf-main-color);
  font-size: 15px;
}

.wl-product-stock {
  font-size: 13px;
  color: #00B894;
  background: rgba(0, 184, 148, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.wl-product-sku {
  font-size: 13px;
  color: #666;
}

.wl-product-quantity {
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
  align-self: center;
}

/* ==== ИТОГИ ЗАКАЗА ==== */
.wl-order-totals {
border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    background: #fefcf8;
    border: 1px solid #e8e0d4;
}

.wl-order-shipping,
.wl-order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}

/* ==== КУПОНЫ ==== */
.wl-coupon-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.wl-coupon-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.woocommerce-form-coupon-toggle {
  display: none;
}

.woocommerce-form-coupon {
  background: #fafafa;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.woocommerce-form-coupon .form-row {
  margin-bottom: 10px;
}

.woocommerce-form-coupon button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.woocommerce-form-coupon button:hover {
  background: var(--primary-hover);
}

/* ==== КНОПКА ОФОРМЛЕНИЯ ==== */
.wl-place-order {
  margin-top: 25px;
}

#place_order {
width: 100%;
    color: var(--wf-main-rgb);
    padding: 18px;
    background-color: #ed143d00;
    font-size: 16px;
    border: 1px solid var(--wf-main-rgb);
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

}

#place_order:hover {
border-color: var(--wf-main-rgb);
    background: var(--wf-main-rgb);
    color: white;
}

/* ==== АДАПТИВНОСТЬ ==== */
@media (max-width: 1024px) {
  .wl-checkout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .wl-checkout-right {
    position: static;
    height: auto;
  }
  
  .wl-order-summary {
    position: static;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .wl-checkout {
    padding: 15px;
  }
  
  .wl-checkout-title {
    font-size: 24px;
  }
  
  .wl-checkout-step {
    padding: 20px;
  }
  
  .wl-product-image img {
    width: 60px;
    height: 60px;
  }
  
  .wl-product-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  #place_order {
    font-size: 14px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .wl-checkout {
    padding: 10px;
  }
  
  .wl-checkout-step {
    padding: 15px;
  }
  
  .wl-step-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .wl-step-number {
    margin-bottom: 10px;
  }
  
  #shipping_method li label {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .shipping_method .amount {
    margin-left: 0;
  }
  
  .wl-order-product {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .wl-product-quantity {
    align-self: flex-start;
  }
  
  #place_order {
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
  }
}

/* ==== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ==== */
.woocommerce-shipping-fields {
  display: none;
}

.shipping_address {
  background: #fafafa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  margin-top: 15px;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

/* Стили для уведомлений */
.woocommerce-error,
.woocommerce-message {
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 15px 20px;
  font-size: 14px;
  line-height: 1.5;
}

.woocommerce-error {
  background-color: rgba(214, 48, 49, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

.woocommerce-message {
  background-color: rgba(0, 184, 148, 0.1);
  border: 1px solid var(--success);
  color: #1d7d74;
}
       .wl-order-info {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: sticky;
    top: 130px;
    transition: transform 0.2s ease-out;
    will-change: transform;
        }
        
        .wl-order-info h1 {
            color: #2E7D32;
            font-size: 32px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .wl-order-info h2 {
            color: #333;
            font-size: 24px;
            font-weight: 600;
            margin: 30px 0 20px 0;
        }
        
        .wl-order-info h3 {
            color: #555;
            font-size: 18px;
            font-weight: 600;
            margin: 25px 0 15px 0;
        }
        
        .wl-order-status {
            background: var(--wf-main-rgb);
            color: white;
            padding: 12px 20px;
            border-radius: 12px;
            font-weight: 500;
            margin-bottom: 25px;
            text-align: center;
        }
        
        .wl-order-totals {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 16px;
            padding: 25px;
            margin: 25px 0;
        }
        
        .wl-order-shipping, .wl-order-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .wl-order-total {
            border-bottom: none;
            font-size: 18px;
            font-weight: 700;
            color: var(--success);
        }
        
        .wl-order-shipping {
            color: var(--wf-main-rgb);
            font-size: 16px;
        }
        
        .wl-customer-info, .wl-payment-info {
            background: white;
            border-radius: 16px;
            padding: 25px;
            margin: 25px 0;
            border: 1px solid #f0f0f0;
        }
        
        .wl-customer-info p, .wl-payment-info p {
            margin: 8px 0;
            color: #555;
            font-size: 15px;
            line-height: 1.5;
        }
        
        .wl-order-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 40px;
            padding-top: 30px;
            border-top: 2px solid #f0f0f0;
        }
        
        .wl-order-actions .button {
            color: var(--wf-main-rgb);
            padding: 15px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 16px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .wl-order-actions .button:first-child {
                border: 1px solid var(--wf-main-rgb);
        background-color: var(--wf-main-rgb)00;
        }
        
        .wl-order-actions .button:first-child:hover {
border: 1px solid var(--wf-main-rgb);
    color: white;
	background-color: var(--wf-main-rgb);
        }
        
        /* Адаптивность */
        @media (max-width: 768px) {
            .wl-order-info {
                margin: 20px;
                padding: 20px;
            }
            
            .wl-order-product {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
            
            .wl-order-actions {
                flex-direction: column;
                align-items: center;
            }
            
            .wl-order-actions .button {
                width: 100%;
                max-width: 300px;
            }
        }
        
        /* Анимации */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .wl-order-info > * {
            animation: fadeIn 0.6s ease forwards;
        }
        
        .wl-order-info h1 { animation-delay: 0.1s; }
        .wl-order-status { animation-delay: 0.2s; }
        .wl-order-products { animation-delay: 0.3s; }
        .wl-order-totals { animation-delay: 0.4s; }
        .wl-customer-info { animation-delay: 0.5s; }
        .wl-payment-info { animation-delay: 0.6s; }
        .wl-order-actions { animation-delay: 0.7s; }
		
/* ✅ Убираем точки у способов оплаты */
.wl-payment-methods ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.wl-payment-methods li {
    list-style: none !important;
}

.wl-payment-methods .wc_payment_method {
    list-style-type: none !important;
}

/* Убираем стандартные маркеры списка */
#payment .wc_payment_methods {
    list-style: none;
    padding-left: 0;
}

#payment .wc_payment_methods li {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

/* Убираем псевдоэлементы */
#payment .wc_payment_methods li::before {
    content: none !important;
    display: none !important;
}
.wl-payment-methods .payment_box {
    display: none !important;
}