
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(122, 74, 18, 0.15);
}

/* HEADER */
.header {
    background-color: #7A4A12;
    color: #ffffff;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 2px 2px 0 0;
}

/* PHONE BAR */
.phone-number {
    background-color: #FCEDE6;
    padding: 16px 24px;
    border-bottom: 1px solid #E6D5B8;
    font-size: 16px;
    font-weight: 500;
}

/* SECTIONS */
.section {
    padding: 20px 24px;
    border-bottom: 1px solid #E6D5B8;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #5C370C;
}

/* ADDRESS CARD */
.address-card {
    background-color: #ffffff;
    border: 1px solid #E6D5B8;
    border-radius: 2px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
}

.address-card.selected {
    border-color: #F5BA5E;
    background-color: #FFF4DB;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.address-name {
    font-weight: 500;
    font-size: 16px;
    color: #7A4A12;
}

.edit-btn {
    color: #7A4A12;
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

.address-details {
    color: #5C370C;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* DELIVER BUTTON */
.deliver-btn {
    background-color: #F5BA5E;
    color: #5C370C;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    display: none;
}

.deliver-btn.visible {
    display: block;
}

/* PRICE DETAILS */
.price-details {
    padding: 20px 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #5C370C;
}

.price-total {
    font-weight: 600;
    font-size: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #D6C4A8;
}

/* SAVINGS */
.savings {
    color: #2ECC71;
    font-weight: 500;
    margin-top: 16px;
    padding: 12px;
    background-color: #EAF7EE;
    border-radius: 2px;
    text-align: center;
}

/* BENEFITS */
.benefits {
    margin-top: 24px;
    padding: 16px;
    background-color: #FCEDE6;
    border-radius: 2px;
    font-size: 13px;
    color: #8A7A6A;
}

/* TERMS */
.terms {
    margin-top: 20px;
    font-size: 12px;
    color: #8A7A6A;
    line-height: 1.5;
}

.terms a {
    color: #7A4A12;
    text-decoration: none;
}

/* ADD ADDRESS */
.add-address {
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid #E6D5B8;
}

.add-address-btn {
    color: #7A4A12;
    background: none;
    border: 1px dashed #7A4A12;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    width: 100%;
}

/* MODAL OVERLAY */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(92, 55, 12, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 2px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #E6D5B8;
    font-size: 18px;
    font-weight: 500;
    color: #7A4A12;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #E6D5B8;
}

/* FORMS */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #5C370C;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E6D5B8;
    border-radius: 2px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #7A4A12;
}

/* FORM BUTTONS */
.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.cancel-btn {
    background-color: #FCEDE6;
    color: #5C370C;
    border: 1px solid #E6D5B8;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    flex: 1;
}

.save-btn {
    background-color: #7A4A12;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    flex: 1;
}

/* ADDRESS TYPE */
.address-type {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.address-type-option {
    display: flex;
    align-items: center;
}

.address-type-option input {
    margin-right: 8px;
}

/* HOME BADGE */
.home-badge {
    background-color: #FCEDE6;
    color: #7A4A12;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    margin-left: 8px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .section,
    .price-details,
    .add-address {
        padding: 16px;
    }

    .header {
        padding: 16px;
    }

    .phone-number {
        padding: 16px;
    }

    .modal-content {
        width: 95%;
    }
}
