/* -----------------------------------------------
 * # ASSETS/CSS/MY-ACCOUNT.CSS
 * Mein Konto: Kacheln + Bestelltabelle (siehe includes/my-account.php)
 * ----------------------------------------------- */

/* ============================================================
   BEGRÜSSUNG (über Navigation + Inhalt, volle Breite)
   ============================================================ */
.lh-account {
    display: flex !important;
    align-items: start !important;
}

.lh-account-head {
    margin-bottom: 30px;
}

.lh-account-greeting {
    margin: 0;
    text-transform: capitalize !important;
}

.lh-account-my-account {
	display: inline-block;
    color:var(--accent, #EB1E26);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	margin-bottom: 1lh;
}

.lh-account-body {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 3fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

.lh-account-body > .woocommerce-MyAccount-content {
    min-width: 0;
}

@media (max-width: 989px) {
    .lh-account-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================================
   KACHELN
   ============================================================ */

.lh-account-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 0 40px;
}

.lh-account-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: #e6e6e6;
}

.lh-account-tile--contact {
    background: var(--light-sage, #8E9F87);
}

.lh-account-tile__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
	margin-bottom: 1lh;
}

.lh-account-tile__value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.lh-account-tile__value--empty {
    font-size: 16px;
    font-weight: 400;
}

.lh-account-tile__note {
    font-size: 14px;
    color: inherit;
}

.lh-account-tile:first-child .lh-account-tile__value {
	font-size: 48px;
}

/* Telefon/Mail: schwarz statt Theme-Linkfarbe (beißt sich mit Sage) */
.lh-account-tile a.lh-account-tile__note,
.lh-account-tile a.lh-account-tile__note:visited,
.lh-account-tile a.lh-account-tile__note:hover,
.lh-account-tile a.lh-account-tile__note:focus {
    color: var(--contrast, #000) !important;
    text-decoration-color: currentColor !important;
}

@media (max-width: 989px) {
    .lh-account-tiles {
	    margin-top: 30px;
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   LETZTE BESTELLUNGEN
   ============================================================ */

.lh-account-orders__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.lh-account-orders__title {
    margin: 0;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.lh-account.woocommerce nav.woocommerce-MyAccount-navigation {
	display: block;
	background: none;
	width: 100%;
	padding: 0;
}

.lh-account.woocommerce nav.woocommerce-MyAccount-navigation ul {
	display: block;
	padding: 0;
	width: 100%;
}

.lh-account.woocommerce nav.woocommerce-MyAccount-navigation ul li.is-active {
	border-top: 1px solid #000;
}

.lh-account.woocommerce nav.woocommerce-MyAccount-navigation ul li a {
	position: relative;
	padding: 15px 0;
}

.lh-account.woocommerce nav.woocommerce-MyAccount-navigation ul li.is-active a:after {
	content: "";
	position: absolute;
	display: inline-block;
	width: 5px;
	height: 5px;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 5px;
	background: var(--accent, #EB1E26);
}

/* ============================================================
   BESTELLTABELLE
   ============================================================ */

.woocommerce table.shop_table.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
	border-top: 1px solid var(--contrast, #000);
}

.woocommerce table.shop_table.woocommerce-orders-table th,
.woocommerce table.shop_table.woocommerce-orders-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #e6e6e6;
    text-align: left;
    vertical-align: middle;
	background: none;
}

.woocommerce table.shop_table.woocommerce-orders-table thead th {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
	background: none;
}

.woocommerce table.shop_table.woocommerce-orders-table th.woocommerce-orders-table__cell-order-number a {
	color: var(--contrast, #000);
	font-weight: 600;
}

.woocommerce table.shop_table.woocommerce-orders-table th.woocommerce-orders-table__header-order-total,
.woocommerce table.shop_table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-total {
	text-align: right;
}

.woocommerce table.shop_table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
	text-align: right;
}

.woocommerce table.shop_table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a {
	padding-right: 0;
}

.woocommerce-orders-table__cell-order-total {
    font-weight: 700;
}

.woocommerce-orders-table__cell-order-actions .button {
    text-decoration: underline;
    background: none;
    color: inherit;
    padding: 0;
}

@media (min-width: 990px) {
	.woocommerce table.shop_table.woocommerce-orders-table th.woocommerce-orders-table__cell-order-number,
	.woocommerce table.shop_table.woocommerce-orders-table th.woocommerce-orders-table__header-order-number {
		padding-left: 0;
	}

	.woocommerce table.shop_table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
		padding-right: 0;
	}
}

/* Status mit Farbpunkt (Klasse je Status aus includes/my-account.php) */
.lh-order-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lh-order-status::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--l-h-gray, #B5B9B7);
}

.lh-order-status--processing::before {
    background: var(--beige, #EFD6A7);
}

/* In Vorbereitung */
.lh-order-status--on-hold::before {
    background: var(--accent, #EB1E26);
}

/* Zahlung ausstehend */
.lh-order-status--completed::before {
    background: var(--sage, #8E9F87);
}

/* Geliefert */
.lh-order-status--cancelled::before {
    background: var(--contrast-3, #a5a5ae);
}

/* Storniert */
.lh-order-status--refunded::before {
    background: var(--contrast-2, #545c69);
}

/* Erstattet */

/* Mobil: Zeilen als Blöcke mit Spaltenname (data-title kommt von WooCommerce) */
@media (max-width: 989px) {
    .woocommerce-orders-table thead {
        display: none;
    }

    .woocommerce-orders-table tr {
        display: block;
        border-bottom: 1px solid #000;
    }

    .woocommerce-orders-table th,
    .woocommerce-orders-table td {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        border: 0;
    }

    .woocommerce-orders-table [data-title]::before {
        content: attr(data-title);
        font-weight: 600;
    }

    .woocommerce-orders-table__cell-order-actions {
        justify-content: flex-end !important;
    }
}