:root {
  --color-bg: #FAF7F2;        /* основной фон (теплый, не серый) */
  --color-surface: #FFFFFF;   /* карточки */
  --color-primary: #8B5A2B;   /* основной (мясной / коричневый) */
  --color-primary-hover: #6F451F;

  --color-accent: #E8A96B;    /* вкусный акцент (лакомства) */
  --color-accent-soft: #F3D2B3;

  --color-text: #2B2B2B;
  --color-text-light: #6B6B6B;

  --color-border: #E5DED5;
}



.checkout-page{
    display:grid;
    grid-template-columns:1fr 420px;
    gap:30px;
    margin-top:30px;
}

.checkout-card,
.checkout-summary{
    background:#fff;
    border-radius:20px;
    padding:25px;
    margin-bottom:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.checkout-card h2,
.checkout-summary h2{
    margin-bottom:20px;
}

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.form-group input,
textarea{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:12px;
    font-size:15px;
}

.delivery-methods,
.payment-methods{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.delivery-card,
.payment-card{
    border:1px solid #ddd;
    border-radius:14px;
    padding:15px;
    cursor:pointer;
    min-width:120px;
}

.delivery-box{
    margin-top:20px;
}

.radio-item{
    display:block;
    margin-bottom:10px;
}

.selected-delivery-box{
    margin-top:15px;
    background:#f5f5f5;
    padding:15px;
    border-radius:12px;
}

.checkout-items{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.checkout-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.checkout-item-info{
    display:flex;
    gap:12px;
    align-items:center;
}

.checkout-item img{
    width:60px;
    height:60px;
    border-radius:12px;
    object-fit:cover;
}

.checkout-total{
    margin-top:25px;
    padding-top:20px;
    border-top:1px solid #eee;
    display:flex;
    justify-content:space-between;
    font-size:20px;
}

.checkout-submit{
    width:100%;
    margin-top:20px;
    border:none;
    background:#111;
    color:#fff;
    padding:16px;
    border-radius:14px;
    font-size:16px;
    cursor:pointer;
}

.checkout-submit:hover{
    opacity:.9;
}

.empty-address{
    margin-top:20px;
}

.btn-add-address{
    display:inline-block;
    padding:12px 18px;
    background:#111;
    color:#fff;
    border-radius:10px;
    text-decoration:none;
}

@media(max-width:992px){

    .checkout-page{
        grid-template-columns:1fr;
    }

}



.delivery-box--service {
    padding: 18px;
    border: 1px solid #ead8c4;
    border-radius: 18px;
    background: #fffaf5;
}

.delivery-service-head {
    margin-bottom: 16px;
}

.delivery-service-head h4 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #222;
}

.delivery-service-head p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.delivery-address-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.delivery-address-row input,
.delivery-address-row textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #ddd2c6;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.delivery-address-row textarea {
    min-height: 86px;
    resize: vertical;
}

.delivery-address-row input:focus,
.delivery-address-row textarea:focus {
    border-color: #9c642d;
}

.delivery-map-btn {
    min-width: 170px;
    border: none;
    border-radius: 14px;
    background: #9c642d;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    padding: 0 16px;
}

.delivery-map-btn:hover {
    background: #7f4f22;
}

@media (max-width: 640px) {
    .delivery-address-row {
        flex-direction: column;
    }

    .delivery-map-btn {
        width: 100%;
        height: 46px;
    }
}

.add-address-btn {
    margin-top: 14px;
    padding: 12px 18px;
    border: none;
    border-radius: 14px;
    background: #f3eadf;
    color: #7f4f22;
    font-weight: 800;
    cursor: pointer;
}

.address-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.address-modal.is-active {
    display: block;
}

.address-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.address-modal__content {
    position: relative;
    z-index: 2;
    width: min(560px, calc(100% - 24px));
    margin: 50px auto;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
}

.address-modal__head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.address-modal__head button {
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3eadf;
    cursor: pointer;
}

#addressAjaxForm {
    display: grid;
    gap: 12px;
}

#addressAjaxForm input,
#addressAjaxForm textarea {
    width: 100%;
    border: 1px solid #ddd2c6;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
}

#addressAjaxForm textarea {
    min-height: 90px;
    resize: vertical;
}

.address-modal__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

#addressAjaxForm button[type="submit"] {
    height: 48px;
    border: none;
    border-radius: 16px;
    background: #9c642d;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 520px) {
    .address-modal__grid {
        grid-template-columns: 1fr;
    }
}

.checkout-addresses {
    display: grid;
    gap: 12px;
}

.checkout-address-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid #ead8c4;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.checkout-address-card input {
    margin-top: 4px;
}

.checkout-address-card strong {
    display: block;
    margin-bottom: 4px;
}

.checkout-address-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}