
.phone-order-page {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 40px;
    color: #292936;
}

.phone-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 25px;
}

.phone-order-header h1 {
    margin: 0 0 7px;
    font-size: 27px;
    font-weight: 700;
}

.phone-order-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.back-orders-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}

.back-orders-button:hover {
    background: #f7f7f7;
}

.phone-order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.phone-order-card {
    padding: 25px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035);
}

.phone-order-section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
}

.section-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: #f8edf1;
    color: #700f2d;
    font-size: 17px;
}

.phone-order-section-heading h2 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
}

.phone-order-section-heading p {
    margin: 0;
    color: #888;
    font-size: 13px;
}

.phone-order-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.phone-order-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.phone-order-field.full-width {
    grid-column: 1 / -1;
}

.phone-order-field label {
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

.phone-order-field label span {
    color: #c62828;
}

.phone-order-field input,
.phone-order-field select,
.phone-order-field textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fff;
    color: #292936;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-order-field input:focus,
.phone-order-field select:focus,
.phone-order-field textarea:focus {
    border-color: #700f2d;
    box-shadow: 0 0 0 3px rgba(112, 15, 45, 0.09);
}

.phone-order-field textarea {
    resize: vertical;
}

.phone-order-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.phone-order-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px 42px;
    align-items: end;
    gap: 12px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 9px;
    background: #fafafa;
}

.remove-phone-order-item {
    width: 42px;
    height: 42px;
    border: 1px solid #f0d5d5;
    border-radius: 7px;
    background: #fff;
    color: #b42318;
    cursor: pointer;
}

.remove-phone-order-item:hover:not(:disabled) {
    background: #fff1f0;
}

.remove-phone-order-item:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.add-phone-order-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    padding: 10px 14px;
    border: 1px dashed #700f2d;
    border-radius: 7px;
    background: #fff;
    color: #700f2d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.add-phone-order-item:hover {
    background: #fcf5f7;
}

.payment-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 13px 15px;
    border-radius: 8px;
    background: #f5f7fb;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.payment-notice i {
    margin-top: 3px;
    color: #526a9a;
}

.phone-order-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.cancel-phone-order,
.save-phone-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 19px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.cancel-phone-order {
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
}

.save-phone-order {
    border: 0;
    background: #700f2d;
    color: #fff;
}

.save-phone-order:hover {
    background: #48091d;
}

[hidden] {
    display: none !important;
}

@media (max-width: 650px) {
    .phone-order-header {
        align-items: stretch;
    }

    .back-orders-button {
        justify-content: center;
    }

    .phone-order-card {
        padding: 18px;
    }

    .phone-order-fields {
        grid-template-columns: 1fr;
    }

    .phone-order-field.full-width {
        grid-column: auto;
    }

    .phone-order-item-row {
        grid-template-columns: minmax(0, 1fr) 90px 38px;
        gap: 8px;
        padding: 10px;
    }

    .remove-phone-order-item {
        width: 38px;
        height: 42px;
    }

    .phone-order-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .cancel-phone-order,
    .save-phone-order {
        width: 100%;
    }
}
