/* ═══════════════════════════════════════════════════════════════════
 * My Account — Bubblos
 * ═══════════════════════════════════════════════════════════════════ */
.woocommerce:before {
    content: none;
    display: none !important;
}
.woocommerce-account .woocommerce {
    max-width: var(--wp--style--global--wide-size) !important;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.woocommerce-account .wp-block-post-title, .woocommerce-account main .woocommerce, .woocommerce-cart .wp-block-post-title, .woocommerce-cart main .woocommerce, .woocommerce-checkout .wp-block-post-title, .woocommerce-checkout main .woocommerce {
    max-width: 1340px;
}

/* Account-leht: 2-veerg layout (nav | content) */
body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation,
body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    box-sizing: border-box;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin-bottom: 2rem;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    body.logged-in.woocommerce-account .woocommerce {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 2rem;
        align-items: start;
    }
    body.logged-in.woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 0;
    }
}

/* ─── Navigation ─── */
.bubblos-myaccount__nav-list {
    list-style: none;
    margin: 0;
    padding: 1rem;
    background: var(--wp--preset--color--cream);
    border: 2px solid var(--bubblos-border);
    border-radius: var(--bubblos-radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bubblos-myaccount__nav-item {
    margin: 0;
}

.bubblos-myaccount__nav-link {
    display: block;
    padding: 0.7rem 1rem;
    background: var(--wp--preset--color--white);
    border: 2px solid transparent;
    border-radius: var(--bubblos-radius-sm, 6px);
    color: var(--wp--preset--color--deep-charcoal);
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.15s ease;
}

.bubblos-myaccount__nav-link:hover {
    border-color: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--carnival-orange-dark);
}

.bubblos-myaccount__nav-item.is-active .bubblos-myaccount__nav-link {
    background: var(--wp--preset--color--carnival-orange);
    border-color: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
}

/* ─── Dashboard ─── */
.bubblos-myaccount__greeting {
    margin-bottom: 2rem;
}

.bubblos-myaccount__eyebrow {
    font-family: var(--wp--preset--font-family--posada);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--wp--preset--color--brass-gold);
    margin: 0 0 0.5rem;
}

.bubblos-myaccount__greeting-title {
    font-family: var(--wp--preset--font-family--posada);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--wp--preset--color--deep-charcoal);
    margin: 0 0 0.75rem;
    line-height: 1.1;
}

.bubblos-myaccount__greeting-title em {
    font-style: italic;
    color: var(--wp--preset--color--carnival-orange);
}

.bubblos-myaccount__greeting-text {
    font-family: var(--wp--preset--font-family--roboto);
    font-size: 1rem;
    color: var(--wp--preset--color--body-text-light);
    margin: 0;
    max-width: 60ch;
}

/* Quick-actions grid */
.logged-in .bubblos-myaccount__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.bubblos-myaccount__action {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--wp--preset--color--cream);
    border: 2px solid var(--bubblos-border);
    border-radius: var(--bubblos-radius-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.bubblos-myaccount__action:hover {
    border-color: var(--wp--preset--color--carnival-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.bubblos-myaccount__action-title {
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1.15rem;
    color: var(--wp--preset--color--deep-charcoal);
    margin: 0;
}

.bubblos-myaccount__action-desc {
    font-family: var(--wp--preset--font-family--roboto);
    font-size: 0.9rem;
    color: var(--wp--preset--color--body-text-light);
    margin: 0;
    flex-grow: 1;
}

.bubblos-myaccount__action-cta {
    font-family: var(--wp--preset--font-family--posada);
    font-size: 0.95rem;
    color: var(--wp--preset--color--carnival-orange-dark);
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* ─── Default WC sisu stiliseerimine (tellimused, aadressid, andmed) ─── */
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-family: var(--wp--preset--font-family--posada);
    color: var(--wp--preset--color--deep-charcoal);
}

/* Tellimuste tabel */
.woocommerce-account .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--bubblos-border);
    text-align: left;
    font-family: var(--wp--preset--font-family--roboto);
}

.woocommerce-account .woocommerce-orders-table th {
    background: var(--wp--preset--color--cream);
    font-family: var(--wp--preset--font-family--posada);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

/* Formide inputid (edit-account, edit-address) — sama stiil mis checkoutil */
.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--bubblos-border);
    border-radius: var(--bubblos-radius-md);
    background: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--roboto);
    font-size: 1rem;
    color: var(--wp--preset--color--deep-charcoal);
    width: 100%;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content input:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--carnival-orange);
}

.woocommerce-account .woocommerce-MyAccount-content label {
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1rem;
    color: var(--wp--preset--color--deep-charcoal);
    display: block;
    margin-bottom: 0.4rem;
}

/* Button stiilid */
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
    padding: 0.85rem 1.75rem;
    background: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
    border: 2px solid transparent;
    border-radius: var(--bubblos-radius-md);
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover {
    background: var(--wp--preset--color--carnival-orange-dark);
    transform: translateY(-1px);
}

/* "Telli uuesti" nupp tellimuste loendis — väärtuslik MVP-feature */
.woocommerce-account .woocommerce-orders-table .order-actions .button.order-again {
    background: var(--wp--preset--color--sage-green);
}

.woocommerce-account .woocommerce-orders-table .order-actions .button.order-again:hover {
    background: var(--wp--preset--color--sage-green); /* kohenda kui sul on darker variant */
    filter: brightness(0.9);
}

/* ═══════════════════════════════════════════════════════════════════
 * Auth — login, register, lost-password split-layout
 * ═══════════════════════════════════════════════════════════════════ */

.bubblos-auth {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 2rem auto 4rem;
    border-radius: var(--bubblos-radius-md);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

@media (min-width: 840px) {
    .bubblos-auth {
        grid-template-columns: 5fr 7fr;
    }
}

/* ─── Vasak: bränding-paneel ─── */
.bubblos-auth__brand {
    position: relative;
    background: var(--wp--preset--color--deep-charcoal);
    color: var(--wp--preset--color--white);
    padding: 3rem 2.5rem;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.bubblos-auth__brand-inner {
    position: relative;
    z-index: 2;
}

.bubblos-auth__eyebrow {
    font-family: var(--wp--preset--font-family--posada);
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wp--preset--color--brass-gold);
    margin: 0 0 1rem;
}

.bubblos-auth__brand-title {
    font-family: var(--wp--preset--font-family--posada);
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    color: var(--wp--preset--color--white);
}

.bubblos-auth__brand-text {
    font-family: var(--wp--preset--font-family--roboto);
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 36ch;
}

/* Mullid taustal */
.bubblos-auth__bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bubblos-auth__bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bubblos-auth__bubble--1 {
    width: 220px;
    height: 220px;
    top: -60px;
    right: -40px;
}

.bubblos-auth__bubble--2 {
    width: 140px;
    height: 140px;
    bottom: -30px;
    left: -30px;
}

.bubblos-auth__bubble--3 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 20%;
}

.bubblos-auth__bubble--4 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 40%;
}

/* ─── Parem: forms ─── */
.bubblos-auth__forms {
    background: var(--wp--preset--color--white);
    padding: 2.5rem;
}

@media (min-width: 840px) {
    .bubblos-auth__forms {
        padding: 3rem;
    }
}

/* Tabs */
.bubblos-auth__tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--bubblos-border);
}

.bubblos-auth__tab {
    flex: 1;
    padding: 0.85rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--wp--preset--color--body-text-light);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: -2px;
}

.bubblos-auth__tab:hover {
    color: var(--wp--preset--color--deep-charcoal);
}

.bubblos-auth__tab.is-active {
    color: var(--wp--preset--color--carnival-orange-dark);
    border-bottom-color: var(--wp--preset--color--carnival-orange);
}

/* Paneelid */
.bubblos-auth__panel {
    display: none;
}

.bubblos-auth__panel.is-active {
    display: block;
}

/* Formide inputid — sama mis muu account */
.bubblos-auth__forms .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.bubblos-auth__forms label {
    font-family: var(--wp--preset--font-family--posada);
    font-size: 0.95rem;
    color: var(--wp--preset--color--deep-charcoal);
    margin-bottom: 0.4rem;
}

.bubblos-auth__forms input[type="text"],
.bubblos-auth__forms input[type="email"],
.bubblos-auth__forms input[type="password"] {
    padding: 0.85rem 1rem;
    border: 2px solid var(--bubblos-border);
    border-radius: var(--bubblos-radius-md);
    background: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--roboto);
    font-size: 1rem;
    color: var(--wp--preset--color--deep-charcoal);
    width: 100%;
    box-sizing: border-box;
}

.bubblos-auth__forms input:focus {
    outline: none;
    border-color: var(--wp--preset--color--carnival-orange);
}

/* Form-actions: nupp + "jäta meelde" */
.bubblos-auth__form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.bubblos-auth__forms .button,
.bubblos-auth__forms button[type="submit"] {
    padding: 0.9rem 2rem;
    background: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
    border: 2px solid transparent;
    border-radius: var(--bubblos-radius-md);
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bubblos-auth__forms .button:hover,
.bubblos-auth__forms button[type="submit"]:hover {
    background: var(--wp--preset--color--carnival-orange-dark);
    transform: translateY(-1px);
}

.bubblos-auth__forms .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--wp--preset--font-family--roboto);
    font-size: 0.95rem;
    color: var(--wp--preset--color--body-text-light);
    cursor: pointer;
}

.bubblos-auth__forms .woocommerce-form-login__rememberme input {
    width: auto;
}

.bubblos-auth__lost-link {
    margin: 1.5rem 0 0;
    font-family: var(--wp--preset--font-family--roboto);
    font-size: 0.95rem;
}

.bubblos-auth__lost-link a {
    color: var(--wp--preset--color--carnival-orange-dark);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

.bubblos-auth__lost-link a:hover {
    color: var(--wp--preset--color--deep-charcoal);
}

.bubblos-auth__privacy {
    font-family: var(--wp--preset--font-family--roboto);
    font-size: 0.85rem;
    color: var(--wp--preset--color--body-text-light);
    margin: 1rem 0 1.5rem;
    line-height: 1.5;
}

/* Single-mode (lost password) — pole tabe vaja */
.bubblos-auth--single .bubblos-auth__panel {
    display: block;
}

/* ─── Peida WC default "Logi sisse" / "Registreeru" pealkirjad ─── */
.woocommerce-account:not(.logged-in) .woocommerce > h2,
.woocommerce-account .woocommerce > .u-columns > .col-1 > h2,
.woocommerce-account .woocommerce > .u-columns > .col-2 > h2 {
    display: none;
}

/* Peida default page-title "Minu konto", kui pole sisse logitud */
.woocommerce-account:not(.logged-in) .entry-title,
.woocommerce-account:not(.logged-in) .wp-block-post-title {
    display: none;
}

.bubblos-myaccount__welcome-banner {
    position: relative;
    background: var(--wp--preset--color--deep-charcoal);
    color: var(--wp--preset--color--white);
    padding: 2rem 2.25rem;
    border-radius: var(--bubblos-radius-md);
    margin-bottom: 2rem;
    overflow: hidden;
}

.bubblos-myaccount__welcome-banner::before,
.bubblos-myaccount__welcome-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.bubblos-myaccount__welcome-banner::before {
    width: 180px;
    height: 180px;
    top: -50px;
    right: -30px;
}

.bubblos-myaccount__welcome-banner::after {
    width: 100px;
    height: 100px;
    bottom: -20px;
    right: 20%;
}

.bubblos-myaccount__welcome-title {
    position: relative;
    font-family: var(--wp--preset--font-family--posada);
    font-size: 1.75rem;
    margin: 0 0 0.75rem;
    color: var(--wp--preset--color--white);
}

.bubblos-myaccount__welcome-text {
    position: relative;
    font-family: var(--wp--preset--font-family--roboto);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.25rem;
    max-width: 50ch;
}

.bubblos-myaccount__welcome-cta {
    position: relative;
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: var(--wp--preset--color--carnival-orange);
    color: var(--wp--preset--color--white);
    border-radius: var(--bubblos-radius-md);
    font-family: var(--wp--preset--font-family--posada);
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bubblos-myaccount__welcome-cta:hover {
    background: var(--wp--preset--color--carnival-orange-dark);
    transform: translateY(-1px);
}

.bubblos-myaccount__welcome-banner .bubblos-myaccount__eyebrow {
    position: relative;
    color: var(--wp--preset--color--brass-gold);
}