/**
 * Makesy — müşteri hesabı (account.php, page-auth)
 */

body.theme-makesy.page-auth .sg-account-page {
    color: var(--mk-brown, #502c1e);
}

body.theme-makesy.page-auth .sg-account-panel {
    color: var(--mk-brown, #502c1e);
}

/* Beyaz paneller — dark-theme tablo metni düzeltmesi */
body.theme-makesy.page-auth .sg-account-panel .order__info,
body.theme-makesy.page-auth .sg-account-panel .profile__info-wrapper,
body.theme-makesy.page-auth .sg-account-panel .password__form,
body.theme-makesy.page-auth .sg-account-panel .mk-order-detail,
body.theme-makesy.page-auth .sg-account-panel .kf-order-detail,
body.theme-makesy.page-auth .sg-account-panel .sg-addresses-panel,
body.theme-makesy.page-auth .sg-account-panel .sg-address-form-card,
body.theme-makesy.page-auth .sg-account-panel .sg-address-card {
    background: #fff;
    border: 1px solid var(--mk-border, #e8e0d8);
    border-radius: var(--mk-radius-lg, 12px);
    padding: 1.25rem 1.5rem;
}

html.dark-theme body.theme-makesy.page-auth .sg-account-panel .table,
html.dark-theme body.theme-makesy.page-auth .sg-account-panel .mk-account-table,
html.dark-theme body.theme-makesy.page-auth .sg-account-panel .kf-cart-table {
    --bs-table-color: var(--mk-brown, #502c1e);
    --bs-table-bg: #fff;
    --bs-table-striped-color: var(--mk-brown, #502c1e);
    --bs-table-hover-color: var(--mk-brown, #502c1e);
    color: var(--mk-brown, #502c1e) !important;
    border-color: var(--mk-border, #e8e0d8);
}

body.theme-makesy.page-auth .sg-account-panel .mk-account-table-wrap {
    overflow-x: auto;
    margin-top: 0.75rem;
    border: 1px solid var(--mk-border, #e8e0d8);
    border-radius: var(--mk-radius-lg, 12px);
}

body.theme-makesy.page-auth .sg-account-panel .mk-account-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.875rem;
}

body.theme-makesy.page-auth .sg-account-panel .mk-account-table th,
body.theme-makesy.page-auth .sg-account-panel .mk-account-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--mk-border, #e8e0d8);
    color: var(--mk-brown, #502c1e);
}

body.theme-makesy.page-auth .sg-account-panel .mk-account-table thead th {
    font-family: var(--mk-font-slider-bold);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #faf6f2;
    border-bottom: 1px solid var(--mk-border, #e8e0d8);
    white-space: nowrap;
}

body.theme-makesy.page-auth .sg-account-panel .mk-account-table tbody tr:last-child td {
    border-bottom: 0;
}

body.theme-makesy.page-auth .sg-account-panel .mk-account-table a {
    color: var(--mk-brown, #502c1e);
    font-weight: 600;
    text-decoration: none;
}

body.theme-makesy.page-auth .sg-account-panel .mk-account-table a:hover {
    color: var(--mk-link-hover, #a88275);
    text-decoration: underline;
}

/* Hesap içi butonlar — px-5 / py-3 şişkinliğini kaldır */
body.theme-makesy.page-auth .sg-account-panel .btn-ecomm {
    padding-inline: 1.25rem !important;
    padding-block: 0.5rem !important;
    min-height: var(--mk-input-height, 44px);
    line-height: 1.25;
}

body.theme-makesy.page-auth .sg-account-panel .btn-ecomm.btn-sm {
    min-height: 2.25rem;
    padding-inline: 1rem !important;
    padding-block: 0.35rem !important;
    font-size: 0.8125rem;
}

body.theme-makesy.page-auth .sg-account-panel .sg-address-card .sg-address-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
}

body.theme-makesy.page-auth .sg-account-panel .sg-address-card .sg-address-actions .btn-ecomm {
    width: auto;
    min-width: 6.5rem;
}

body.theme-makesy.page-auth .sg-account-panel .sg-addresses-panel .card-header {
    background: #faf6f2 !important;
    border-bottom: 1px solid var(--mk-border, #e8e0d8);
    padding: 1rem 1.25rem;
}

body.theme-makesy.page-auth .sg-account-panel .sg-addresses-panel .card-header .btn-ecomm {
    min-height: 2.5rem;
}

body.theme-makesy.page-auth .sg-account-panel .sg-addresses-panel > .card-body {
    padding: 1.25rem;
}

body.theme-makesy.page-auth .sg-account-panel .sg-address-section .btn-ecomm.btn-sm {
    min-height: 2.25rem;
}

/* Sipariş detayı */
body.theme-makesy.page-auth .sg-account-panel .mk-order-detail.kf-order-detail {
    padding: 1.5rem;
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mk-brown, #502c1e);
    text-decoration: none;
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-detail__back:hover {
    color: var(--mk-link-hover, #a88275);
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-detail__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mk-border, #e8e0d8);
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-detail__head .kf-account-panel__title {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 700;
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-detail__meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--mk-muted, #5c4035);
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-detail__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body.theme-makesy.page-auth .sg-account-panel .kf-account-subtitle {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-detail__side {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-info-card {
    margin: 0;
    padding: 1rem 1.15rem;
    background: #faf6f2;
    border: 1px solid var(--mk-border, #e8e0d8);
    border-radius: var(--mk-radius-lg, 12px);
    font-size: 0.875rem;
    line-height: 1.55;
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-info-card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-info-card p {
    margin: 0 0 0.35rem;
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-summary {
    max-width: 22rem;
    margin: 1.25rem 0 0 auto;
    padding: 1rem 1.15rem;
    background: #faf6f2;
    border: 1px solid var(--mk-border, #e8e0d8);
    border-radius: var(--mk-radius-lg, 12px);
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(80, 44, 30, 0.08);
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-summary__row--total {
    font-weight: 700;
    border-bottom: 0;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-detail__return-btn {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-detail__cancel {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mk-border, #e8e0d8);
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-cancel-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border: 1px solid #c41e1e;
    border-radius: var(--mk-radius-pill, 3.75rem);
    background: #fff;
    color: #c41e1e;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-cancel-bar {
    margin-top: 1rem;
    padding: 1rem;
    background: #faf6f2;
    border: 1px solid var(--mk-border, #e8e0d8);
    border-radius: var(--mk-radius-lg, 12px);
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-cancel-bar__fields {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    body.theme-makesy.page-auth .sg-account-panel .kf-order-cancel-bar__fields {
        grid-template-columns: 1fr 1fr auto;
        align-items: end;
    }
}

body.theme-makesy.page-auth .sg-account-panel .kf-order-cancel-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: var(--mk-input-height, 44px);
    padding: 0 1.25rem;
    border: 1px solid #c41e1e;
    border-radius: var(--mk-radius-pill, 3.75rem);
    background: #c41e1e;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

body.theme-makesy.page-auth .sg-account-panel .kf-status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--mk-radius-pill, 3.75rem);
    background: #faf6f2;
    border: 1px solid var(--mk-border, #e8e0d8);
    color: var(--mk-brown, #502c1e);
}

body.theme-makesy.page-auth .sg-account-panel .kf-account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

body.theme-makesy.page-auth .sg-account-panel .kf-account-tabs a {
    padding: 0.45rem 1rem;
    border: 1px solid var(--mk-border, #e8e0d8);
    border-radius: var(--mk-radius-pill, 3.75rem);
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--mk-brown, #502c1e);
    background: #fff;
}

body.theme-makesy.page-auth .sg-account-panel .kf-account-tabs a.is-active,
body.theme-makesy.page-auth .sg-account-panel .kf-account-tabs a:hover {
    background: var(--mk-btn-primary-bg, #502c1e);
    border-color: var(--mk-btn-primary-bg, #502c1e);
    color: #fff;
}

body.theme-makesy.page-auth .sg-account-panel .kf-muted,
body.theme-makesy.page-auth .sg-account-panel .os-account-hint {
    color: var(--mk-muted, #5c4035);
    font-size: 0.875rem;
}

body.theme-makesy.page-auth .sg-account-panel .kf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--mk-input-height, 44px);
    padding: 0 1.25rem;
    border-radius: var(--mk-radius-pill, 3.75rem);
    background: var(--mk-btn-primary-bg, #502c1e);
    border: 1px solid var(--mk-btn-primary-bg, #502c1e);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

body.theme-makesy.page-auth .sg-account-panel .kf-btn--ghost {
    background: #fff;
    color: var(--mk-brown, #502c1e);
    border-color: var(--mk-brown, #502c1e);
}

body.theme-makesy.page-auth .sg-account-panel .order__info {
    border: 0;
    padding: 0;
    background: transparent;
}

body.theme-makesy.page-auth .sg-account-panel .order__info-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}
