/* shop/public/css/account.css */
.account-wrapper {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.account-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.account-tab {
    padding: .5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    background: #f0f0f0;
    border: 1px solid #ddd;
    font-size: .9rem;
    transition: all .15s;
}

.account-tab:hover {
    background: #e0e0e0;
}

.account-tab.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.account-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
}

.account-card h2 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: .85rem;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: .5rem .7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: .95rem;
}

.input-readonly {
    background: #f7f7f7;
    color: #888;
}

.account-message {
    padding: .6rem 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.account-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.account-message.error {
    background: #fdecea;
    color: #c62828;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
}

.account-table th {
    text-align: left;
    font-size: .82rem;
    color: #777;
    padding: .5rem 0;
    border-bottom: 1px solid #ddd;
}

.account-table td {
    padding: .7rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: .9rem;
}

.status-badge {
    padding: .2rem .6rem;
    border-radius: 10px;
    font-size: .78rem;
    white-space: nowrap;
    font-weight: 600;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.address-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
}

.address-type-badge {
    font-size: .8rem;
    font-weight: 600;
    display: block;
    margin-bottom: .5rem;
}

.address-card p {
    margin: 0 0 .5rem;
    font-size: .9rem;
    line-height: 1.6;
}

.btn-sm-addr {
    font-size: .78rem;
    padding: .3rem .7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
}

.btn-sm-addr:hover {
    background: #e8e8e8;
}

.btn-sm-danger {
    border-color: #e57373;
    background: #fdecea;
    color: #c62828;
}

.btn-order-detail {
    font-size: .78rem;
    padding: .3rem .7rem;
    border: 1px solid #1565c0;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.account-empty {
    color: #888;
    margin-bottom: 1rem;
}

.items-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .87rem;
    margin-top: .5rem;
}

.items-tbl th {
    font-size: .78rem;
    color: #777;
    border-bottom: 1px solid #ddd;
    padding: 4px 6px;
    text-align: left;
}

.items-tbl td {
    padding: 5px 6px;
    border-bottom: 1px solid #f0f0f0;
}

.items-tbl .r {
    text-align: right;
}

/* ── Kundennummer im Profil ── */
.account-customer-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 6px 14px;
    margin-bottom: 16px;
    font-size: .95rem;

}

.customer-number-label {
    color: #555;
}

/* ── Telefon-Item ── */
.phone-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #fafafa;
    transition: border-color 0.2s;
}

.phone-item:hover {
    border-color: #c8d8ea;
}

.phone-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.phone-type-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e8eaf6;
    color: #3949ab;
    white-space: nowrap;
}

.phone-type-badge.phone-primary {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.phone-number {
    font-size: 0.92rem;
    color: #333;
    letter-spacing: 0.3px;
    flex: 1;
}

.phone-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

/* ── Kleine Buttons ── */
.btn-sm {
    padding: 3px 9px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-sm-secondary {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
}

.btn-sm-secondary:hover {
    background: #dee2e6;
}

.btn-sm-danger {
    background: #fdecea;
    color: #c62828;
    border-color: #f5c6c8;
}

.btn-sm-danger:hover {
    background: #f9c4c3;
}

/* ── Bearbeitungsformular ── */
.phone-edit-form {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
}

/* ── Telefon-Hinzufügen-Sektion ── */
.phone-add-form h3 {
    color: #555;
    font-weight: 600;
}

/* ── Account-Nachricht ── */
.account-message.success {
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.88rem;
}

.account-message.error {
    color: #c62828;
    background: #fdecea;
    border: 1px solid #f5c6c8;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.88rem;
}

/* ── Registrierungsmodal: Telefon-Zeile ── */
#register-modal .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 480px) {
    #register-modal .form-grid.two-col {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 600px) {

    .form-row,
    .address-grid {
        grid-template-columns: 1fr;
    }
}