/* ===== ОФОРМЛЕНИЕ ЗАКАЗА ===== */
.checkout-page { padding: 32px 0 64px; }
.checkout-title { font-size: 28px; font-weight: 700; margin-bottom: 32px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-form-col { display: flex; flex-direction: column; gap: 20px; }
.checkout-field label { display: block; font-size: 14px; font-weight: 600; color: var(--color-dark); margin-bottom: 6px; }
.checkout-field input, .checkout-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 15px; outline: none; transition: border-color var(--transition-fast);
    background: var(--color-white);
}
.checkout-field input:focus, .checkout-field textarea:focus { border-color: var(--color-primary); }
.checkout-field textarea { resize: vertical; }

.delivery-cities { display: flex; flex-direction: column; gap: 4px; }
.delivery-city-option {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    border: 2px solid var(--color-border); border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--transition-fast); background: var(--color-white);
}
.delivery-city-option:hover { border-color: var(--color-primary); }
.delivery-city-option:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-light); }
.delivery-city-option input { width: auto; accent-color: var(--color-primary); }
.city-option-name { flex: 1; font-size: 14px; font-weight: 500; }
.city-option-price { font-size: 14px; font-weight: 700; color: var(--color-primary); }

.checkout-consent { display: flex; flex-direction: column; gap: 8px; }

/* Правая колонка */
.checkout-order-box { background: var(--color-white); padding: 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); position: sticky; top: 140px; }
.checkout-order-box h3 { font-size: 18px; margin-bottom: 16px; }

.checkout-items { border-bottom: 1px solid var(--color-border); margin-bottom: 16px; padding-bottom: 12px; }
.checkout-consent { margin-top: 8px; }
.checkout-consent .filter-check { font-size: 13px; color: var(--color-gray); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkout-consent .filter-check input { width: 16px; height: 16px; accent-color: var(--color-primary); }
.checkout-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; }
.checkout-item-name { flex: 1; color: var(--color-dark); }
.checkout-item-qty { font-size: 12px; color: var(--color-gray-light); }
.checkout-item-price { font-weight: 600; color: var(--color-dark); white-space: nowrap; }

.checkout-totals { margin-bottom: 16px; }
.checkout-total-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-gray); margin-bottom: 6px; }
.checkout-total-main { font-size: 20px; font-weight: 700; color: var(--color-dark); margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--color-border); }

.checkout-payment-info { font-size: 13px; color: var(--color-gray); margin-bottom: 16px; }
.checkout-submit { width: 100%; }

/* Страница "Спасибо" */
.page-template-page-thankyou .thankyou-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: linear-gradient(170deg, #FFF5F5 0%, #FFEEF2 40%, #FDE8EC 100%); }
.page-template-page-thankyou .thankyou-hero { width: 100%; padding: 80px 0; position: relative; z-index: 2; }
.page-template-page-thankyou .thankyou-content { text-align: center; max-width: 500px; margin: 0 auto; }
.page-template-page-thankyou .thankyou-icon { font-size: 64px; display: block; margin-bottom: 16px; animation: thankYouBounce 1s ease infinite; }
@keyframes thankYouBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.page-template-page-thankyou .thankyou-title { font-size: clamp(28px, 5vw, 42px); font-weight: 700; margin-bottom: 12px; }
.page-template-page-thankyou .thankyou-subtitle { font-size: 16px; color: var(--color-gray); margin-bottom: 32px; }
.page-template-page-thankyou .thankyou-details { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.page-template-page-thankyou .thankyou-detail { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 14px; color: var(--color-dark); }
.page-template-page-thankyou .thankyou-detail .ph { color: var(--color-primary); font-size: 20px; }
.page-template-page-thankyou .thankyou-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Плавающие цветы */
.thankyou-flowers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.floating-flower { position: absolute; font-size: 24px; opacity: 0.4; animation: floatAround 8s ease-in-out infinite; }
.f1 { top: 10%; left: 10%; animation-delay: 0s; }
.f2 { top: 20%; right: 15%; animation-delay: 1s; font-size: 20px; }
.f3 { top: 60%; left: 5%; animation-delay: 2s; font-size: 28px; }
.f4 { bottom: 20%; left: 20%; animation-delay: 0.5s; font-size: 22px; }
.f5 { top: 15%; left: 40%; animation-delay: 1.5s; }
.f6 { bottom: 30%; right: 10%; animation-delay: 3s; font-size: 18px; }
.f7 { top: 50%; right: 20%; animation-delay: 2.5s; font-size: 26px; }
.f8 { bottom: 10%; left: 50%; animation-delay: 4s; }
@keyframes floatAround { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-20px) rotate(5deg); } 50% { transform: translateY(-10px) rotate(-5deg); } 75% { transform: translateY(-25px) rotate(3deg); } }

.thankyou-order-box {
    background: var(--color-white); border-radius: var(--radius-md); padding: 20px;
    margin-bottom: 24px; text-align: left; box-shadow: var(--shadow-sm);
}
.thankyou-order-header {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 16px; font-weight: 700; margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.thankyou-order-status {
    font-size: 12px; font-weight: 600; color: var(--color-green);
    background: #F0F9F0; padding: 4px 12px; border-radius: var(--radius-full);
}
.thankyou-order-items { margin-bottom: 12px; }
.thankyou-order-item {
    display: flex; justify-content: space-between; font-size: 13px;
    color: var(--color-gray); padding: 4px 0;
}
.thankyou-order-total {
    display: flex; justify-content: space-between; font-size: 16px; font-weight: 700;
    color: var(--color-dark); padding-top: 8px; border-top: 1px solid var(--color-border);
    margin-bottom: 12px;
}
.thankyou-order-info { font-size: 13px; color: var(--color-gray); }
.thankyou-order-info p { margin-bottom: 2px; }