/* ОБГОРТКА ДЛЯ ІЗОЛЯЦІЇ СТИЛІВ */
#uh-personal-account-wrapper {
    all: unset; /* Скидає спадкування */
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #fcfcfc;
    padding: 20px 0;
}

#uh-personal-account-wrapper * {
    box-sizing: border-box;
}

/* КОНТЕЙНЕР */
#uh-personal-account-wrapper .uh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ЗАГОЛОВОК */
#uh-personal-account-wrapper .uh-welcome-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

/* СІТКА (LAYOUT) */
#uh-personal-account-wrapper .uh-layout {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    min-height: 500px;
}

/* САЙДБАР */
#uh-personal-account-wrapper .uh-navigation {
    width: 260px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

/* СПИСОК ВКЛАДОК - АГРЕСИВНИЙ СКИДАННЯ СТИЛІВ ТЕМИ */
#uh-personal-account-wrapper ul.uh-tabs {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

#uh-personal-account-wrapper ul.uh-tabs li.uh-tab-item {
    list-style: none !important;
    list-style-image: none !important;
    background: none !important; /* Прибирає фонові крапки */
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #eee;
}

/* Прибираємо псевдоелементи (крапки) теми */
#uh-personal-account-wrapper ul.uh-tabs li.uh-tab-item:before,
#uh-personal-account-wrapper ul.uh-tabs li.uh-tab-item:after {
    display: none !important;
    content: none !important;
}

/* ПОСИЛАННЯ В МЕНЮ */
#uh-personal-account-wrapper a.uh-ajax-tab {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none !important;
    color: #555;
    font-weight: 500;
    transition: background 0.2s;
    border: none !important;
}

#uh-personal-account-wrapper a.uh-ajax-tab:hover {
    background-color: #fff;
    color: #0073aa;
}

/* АКТИВНА ВКЛАДКА */
#uh-personal-account-wrapper li.uh-tab-item.active a.uh-ajax-tab {
    background-color: #fff;
    color: #0073aa;
    border-left: 4px solid #0073aa !important;
    font-weight: 700;
}

/* ІКОНКИ */
#uh-personal-account-wrapper .dashicons {
    margin-right: 10px;
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* КОНТЕНТ */
#uh-personal-account-wrapper .uh-content {
    flex-grow: 1;
    padding: 40px;
}

/* ФОРМА ВХОДУ / РЕЄСТРАЦІЇ */
.uh-auth-container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.uh-auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.uh-auth-tab-link {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    text-align: center; /* Вирівнювання тексту на вкладках */
}

.uh-auth-tab-link.active {
    background: #fff;
    color: #0073aa;
    border-top: 2px solid #0073aa;
    margin-bottom: -1px; /* Компенсує border-bottom контейнера */
}

.uh-auth-content { padding: 30px; }

/* КЛАСИ ДЛЯ ЛОГІКИ ПЕРЕМИКАННЯ */
.uh-auth-form-wrapper { 
    display: none; 
}
.uh-auth-form-wrapper.active { 
    display: block; 
}

.uh-form-field { margin-bottom: 15px; }
.uh-form-field label { display: block; margin-bottom: 5px; font-weight: 500; }
.uh-form-field input[type="text"], .uh-form-field input[type="password"], .uh-form-field input[type="email"] {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px;
}
.uh-submit-btn {
    width: 100%; padding: 12px; background: #0073aa; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 16px;
}
.uh-submit-btn:hover { background: #005177; }
.uh-form-message { margin-top: 15px; text-align: center; }
.uh-error { color: red; } .uh-success { color: green; }

/* ВИХІД */
.uh-logout-wrapper { padding: 15px; border-top: 1px solid #eee; background: #f8f9fa; }
.uh-logout-link { display: flex; align-items: center; justify-content: center; padding: 10px; color: #d63638; border: 1px solid #ffaeb0; background: #fff; border-radius: 5px; text-decoration: none; font-weight: bold; }
.uh-logout-link:hover { background: #d63638; color: #fff; }

@media (max-width: 768px) {
    #uh-personal-account-wrapper .uh-layout { flex-direction: column; }
    #uh-personal-account-wrapper .uh-navigation { width: 100%; }
    #uh-personal-account-wrapper ul.uh-tabs { display: flex; overflow-x: auto; }
    #uh-personal-account-wrapper li.uh-tab-item { flex: 1; text-align: center; }
    #uh-personal-account-wrapper a.uh-ajax-tab { flex-direction: column; padding: 10px; font-size: 12px; }
    #uh-personal-account-wrapper .uh-content { padding: 20px; }
}