/* ========================================================= */
/* MEIN KONTO    */
/* ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body.my-account-page,
body.my-account-page .site-header {
    font-family: 'Inter', system-ui, sans-serif;
    background: transparent !important;
}

h2 {
    font-size: 24px;
}

.value {
    font-size: 24px;
}

.custom-header {
    background: transparent !important;
    box-shadow: none !important;
}
/* Фон на всю страницу */
.my-account-wrapper {
    background: url('../images/my-acc-back.webp') center/cover no-repeat fixed;
    min-height: 100vh;
    position: relative;
}
.my-account-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);

}
.my-account-wrapper > * {
    position: relative;

}

/* Напоминание о корзине */
#cart-reminder-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.6s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
#cart-reminder-notice strong { color: #ff4444; }

/* === HERO === */
.account-hero {
    text-align: center;
    padding: 120px 20px 80px;
    color: #000;
}
.status-chip {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.account-hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin: 16px 0;
    line-height: 1.2;
}
.member-since {
    font-size: 19px;
    color: #444;
    margin-bottom: 50px;
    font-weight: 400;
}

/* Кнопки в hero */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 70px;
}
.btn {
    padding: 16px 38px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn.primary {
    background: #000;
    color: #fff;
}
.btn.primary:hover {
    background: #333;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}
.btn.ghost {
    border: 2.5px solid #000;
    color: #000;
    background: transparent;
}
.btn.ghost:hover {
    background: #000;
    color: #fff;
    transform: translateY(-5px);
}

/* Метрики */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 80px;
}
.metric {
    background: #fff;
    padding: 35px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.metric:hover {
    transform: translateY(-10px);
}
.metric .value {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    color: #000;
}
.metric .label {
    font-size: 15px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Контейнер */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Дашборд */
.account-dashboard {
    background: #fff;
    margin: 0 20px 80px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.12);
}
.account-dashboard > .container {
    padding: 70px 50px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 70px;
}

/* Навигация */
.account-nav h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #000;
}
.account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.account-nav li {
    margin-bottom: 8px;
}
.account-nav a {
    display: block;
    padding: 18px 24px;
    border-radius: 14px;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}
.account-nav a:hover,
.account-nav .is-active a {
    background: #000;
    color: #fff;
    transform: translateX(6px);
}

/* Контент */
.account-content-panel {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 18px;
    min-height: 500px;
    margin-bottom: 50px;
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.03);
}

/* Доп. блоки */
.account-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.quick-actions h3,
.recent-orders h3 {
    font-size: 26px;
    margin-bottom: 25px;
    font-weight: 600;
}
.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.actions-grid a {
    background: #fff;
    padding: 28px 20px;
    border-radius: 18px;
    border: 2px solid #eee;
    text-align: center;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.35s ease;
}
.actions-grid a:hover {
    transform: translateY(-10px);
    border-color: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Последние заказы */
.recent-orders ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
}
.recent-orders li {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    border: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    transition: all 0.3s ease;
}
.recent-orders li:hover {
    border-color: #000;
    transform: translateY(-5px);
}
.order-info strong { font-size: 18px; }
.order-info span { color: #666; font-size: 14px; margin-left: 10px; }
.order-meta .price { font-size: 20px; font-weight: 700; }
.order-meta .status { display: block; font-size: 14px; color: #666; margin: 6px 0; }
.view-link {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
    font-size: 15px;
}

/* Гость – логин */
.guest-login {
    padding: 50px 0px;
}
.login-box {
    background: #fff;
    max-width: 520px;
    margin: 0 auto;
    padding: 70px 60px;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0,0,0,0.18);
}
.login-box h2 {
    font-size: 38px;
    margin-bottom: 16px;
    font-weight: 700;
}
.login-box p {
    color: #555;
    margin-bottom: 40px;
    font-size: 17px;
}
.register-prompt {
    margin-top: 35px;
    font-size: 16px;
}
.register-prompt a {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
}

/* Нижний текст */
/* Текст перед футером */
.my-account-footer-text {
    min-height: 40vh;
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    padding: 20px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.my-account-footer-text p {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #222;
    text-align: left;
    margin: 0;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .account-extras { grid-template-columns: 1fr; }
    .account-dashboard > .container { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 768px) {
    .account-hero { padding: 100px 20px 60px; }
    .account-hero h1 { font-size: 42px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-metrics { gap: 20px; padding: 0 20px; }
    .account-dashboard > .container { padding: 50px 30px; }
    .login-box { padding: 10px 10px; }
    .my-account-footer-text { font-size: 24px; padding: 80px 20px; }
}
@media (max-width: 480px) {
    .account-hero h1 { font-size: 36px; }
    .btn { padding: 14px 28px; font-size: 15px; }
    .metric .value { font-size: 38px; }
    .my-account-footer-text { font-size: 20px; }
}


/* ========================================================= */
/* BESTELLDETAILS                         */
/* ========================================================= */

.woocommerce-order-details {
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    margin: 40px 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.09);
    overflow: hidden;
}

.woocommerce-order-details__title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 40px 0;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}
.woocommerce-order-details__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #000;
    border-radius: 2px;
}

/* Таблица товаров */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 16px;
    background: transparent;
}

.woocommerce-table--order-details thead {
    background: #000;
    color: #fff;
}

.woocommerce-table--order-details thead th {
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.woocommerce-table--order-details thead .product-total {
    text-align: right;
}

/* Строки товаров */
.woocommerce-table--order-details tbody tr {
    transition: all 0.3s ease;
}

.woocommerce-table--order-details tbody tr:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.woocommerce-table--order-details tbody td {
    padding: 28px 24px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.woocommerce-table--order-details tbody td.product-name {
    font-weight: 500;
    font-size: 17px;
}
.woocommerce-table--order-details tbody td.product-name a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.woocommerce-table--order-details tbody td.product-name a:hover {
    color: #333;
}

.product-quantity {
    color: #666;
    font-size: 15px;
    margin-left: 8px;
}

/* Итоги в tfoot */
.woocommerce-table--order-details tfoot {
    font-size: 17px;
}

.woocommerce-table--order-details tfoot th {
    padding: 18px 24px;
    text-align: left;
    font-weight: 600;
    color: #000;
    background: #f9f9f9;
}

.woocommerce-table--order-details tfoot td {
    padding: 18px 24px;
    text-align: right;
    background: #f9f9f9;
    font-weight: 500;
}

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    background: #000;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 24px;
}

/* Строка "Gesamt" – самая важная */
.woocommerce-table--order-details tfoot tr:last-child .woocommerce-Price-amount {
    font-size: 28px;
    font-weight: 800;
}

/* Дополнительные стили */
.shipped_via {
    font-size: 14px;
    color: #777;
    font-style: italic;
}

.woocommerce-Price-amount {
    white-space: nowrap;
    font-weight: 600;
}
.woocommerce-Price-amount bdi {
    font-weight: inherit;
}

/* Скрываем ненужные input'ы от Mollie */
input[name*="mollie-"],
input[type="hidden"] {
    display: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .woocommerce-order-details {
        padding: 40px 20px;
        margin: 20px 0;
        border-radius: 16px;
    }
    
    .woocommerce-order-details__title {
        font-size: 28px;
    }
    
    .woocommerce-table--order-details thead {
        display: none;
    }
    
    .woocommerce-table--order-details tbody td,
    .woocommerce-table--order-details tfoot th,
    .woocommerce-table--order-details tfoot td {
        display: block;
        width: 100%;
        text-align: right !important;
        padding: 16px 20px;
    }
    
    .woocommerce-table--order-details tbody td.product-name {
        text-align: left !important;
        font-size: 18px;
        padding-bottom: 8px;
    }
    
    .woocommerce-table--order-details tbody td.product-name::before {
        content: "Produkt: ";
        font-weight: 600;
        color: #000;
    }
    
    .woocommerce-table--order-details tfoot th {
        text-align: left !important;
        background: transparent;
        padding-top: 24px;
        font-size: 18px;
    }
    
    .woocommerce-table--order-details tfoot tr:last-child th,
    .woocommerce-table--order-details tfoot tr:last-child td {
        background: #000;
        color: #fff;
        text-align: center !important;
        font-size: 22px;
    }
    
    .woocommerce-table--order-details tfoot tr:last-child .woocommerce-Price-amount {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .woocommerce-order-details__title {
        font-size: 24px;
    }
    .woocommerce-table--order-details tfoot tr:last-child .woocommerce-Price-amount {
        font-size: 28px;
    }
}



.woocommerce-customer-details {
    margin: 60px 0 0;
    padding: 0 20px;               /* просто отступы по бокам */
}

/* Контейнер — просто flex с gap */
.woocommerce-columns--addresses {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0 auto;
    max-width: 1300px;
}

/* Каждая колонка — фиксированная ширина, но не меньше 380px */
.woocommerce-column {

    min-width: 380px;
    background: #fff;
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.09);
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.woocommerce-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.14);
}

/* Чёрная полоса сверху */
.woocommerce-column::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
 
    border-radius: 20px 20px 0 0;
}

/* Заголовок */
.woocommerce-column__title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 28px;
    text-align: center;
    position: relative;
    padding-bottom: 14px;
}

.woocommerce-column__title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #000;
    border-radius: 2px;
}

/* Адрес */
.woocommerce-column address {
    font-style: normal;
    font-size: 18px;
    line-height: 1.8;
    color: #222;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

/* Email */
.woocommerce-customer-details--email {
    margin-top: 24px;
    padding: 14px 20px;
    background: #f8f8f8;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    display: block;
}

.woocommerce-customer-details--email::before {
    content: "E-Mail: ";
    opacity: 0.7;
}

/* Мобильные */
@media (max-width: 868px) {
    .woocommerce-columns--addresses {
        flex-direction: column;
        gap: 30px;
    }
    .woocommerce-column {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .woocommerce-column {
        padding: 36px 28px;
    }
    .woocommerce-column__title {
        font-size: 22px;
    }
}

/* ========================================================= */
/* ФИКС вкладок Einloggen / Registrieren на мобильных < 400px */
/* ========================================================= */

.xoo-el-tabs {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 30px !important;
}

.xoo-el-tabs li {
    flex: 1 !important;
    min-width: 0 !important;           /* ← КЛЮЧЕВОЕ! Позволяет сжаться */
    white-space: nowrap !important;
    text-align: center !important;
    padding: 14px 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease !important;
}

.xoo-el-tabs li.xoo-el-active {
    border-bottom: 3px solid #000 !important;
    color: #ffffff !important;
}

/* На совсем узких экранах (до 380px) — делаем ещё компактнее */
@media (max-width: 380px) {
    .xoo-el-tabs {
        gap: 8px !important;
        padding: 0 10px !important;
    }
    .xoo-el-tabs li {
        font-size: 14px !important;
        padding: 12px 6px !important;
    }
}

/* Если вдруг у плагина есть inline-стили — перебиваем их */
.xoo-el-tabs li[data-tab] {
    order: unset !important;
}

