/**
 * WooPlus DS — My-Account Chrome (v2.24.0)
 *
 * Modern header + footer wrapping the my-account page. Inspired by
 * Modern Minimalist (clean spacing, neutral surface) + Tech Innovation
 * (indigo gradient accent) themes.
 *
 * Structure rendered by WooPlus_MyAccount_Chrome:
 *   <header.wpu-ma-chrome-header>      ← top bar (logo + greeting + actions)
 *   ...WC my-account markup (skinned by my-account.css)...
 *   <footer.wpu-ma-chrome-footer>      ← bottom strip (copyright + links)
 *
 * Theme tokens:
 *   --wpu-ma-chrome-bg        surface
 *   --wpu-ma-chrome-fg        text
 *   --wpu-ma-chrome-mute      secondary text
 *   --wpu-ma-chrome-accent    primary brand
 *   --wpu-ma-chrome-gradient  brand gradient
 *   --wpu-ma-chrome-border    divider
 */

body.wooplus-myaccount-skin {
    --wpu-ma-chrome-bg:        #ffffff;
    --wpu-ma-chrome-fg:        #0f172a;
    --wpu-ma-chrome-mute:      #64748b;
    --wpu-ma-chrome-accent:    #157a41;
    --wpu-ma-chrome-gradient:  linear-gradient(135deg, #157a41 0%, #157a41 50%, #3730a3 100%);
    --wpu-ma-chrome-border:    #eef0f5;
}

/* ===================================================================
   Header
   =================================================================== */
body.wooplus-myaccount-skin .wpu-ma-chrome-header {
    background: var(--wpu-ma-chrome-bg);
    border-bottom: 1px solid var(--wpu-ma-chrome-border);
    margin-bottom: var(--wooplus-space-5, 20px);
    border-radius: var(--wooplus-radius-lg, 14px);
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, .04);
    overflow: hidden;
    position: relative;
}

/* Gradient accent strip across the top of the header */
body.wooplus-myaccount-skin .wpu-ma-chrome-header::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--wpu-ma-chrome-gradient);
}

body.wooplus-myaccount-skin .wpu-ma-chrome-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wooplus-space-4, 16px);
    padding: 14px 22px;
    flex-wrap: wrap;
}

/* Brand */
body.wooplus-myaccount-skin .wpu-ma-chrome-brand {
    flex: 0 0 auto;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-brand__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-brand__logo img {
    max-height: 36px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-brand__text {
    font-size: 18px;
    font-weight: 800;
    color: var(--wpu-ma-chrome-accent);
    text-decoration: none;
    background: var(--wpu-ma-chrome-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.01em;
}

/* Greeting */
body.wooplus-myaccount-skin .wpu-ma-chrome-greet {
    flex: 1 1 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--wpu-ma-chrome-fg);
    font-weight: 600;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-greet__hello {
    color: var(--wpu-ma-chrome-mute);
    font-weight: 500;
    font-size: 14px;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-greet__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--wpu-ma-chrome-fg);
}

body.wooplus-myaccount-skin .wpu-ma-chrome-greet__emoji {
    font-size: 18px;
}

/* Actions */
body.wooplus-myaccount-skin .wpu-ma-chrome-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
    border: 1px solid transparent;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-action--ghost {
    color: var(--wpu-ma-chrome-fg);
    background: transparent;
    border-color: var(--wpu-ma-chrome-border);
}

body.wooplus-myaccount-skin .wpu-ma-chrome-action--ghost:hover {
    background: #fafbfc;
    border-color: var(--wpu-ma-chrome-accent);
    color: var(--wpu-ma-chrome-accent);
}

body.wooplus-myaccount-skin .wpu-ma-chrome-action__label {
    display: inline;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-action i {
    font-size: 15px;
}

/* ===================================================================
   Footer
   =================================================================== */
body.wooplus-myaccount-skin .wpu-ma-chrome-footer {
    background: var(--wpu-ma-chrome-bg);
    border: 1px solid var(--wpu-ma-chrome-border);
    margin-top: var(--wooplus-space-5, 20px);
    border-radius: var(--wooplus-radius-lg, 14px);
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, .04);
    overflow: hidden;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wooplus-space-4, 16px);
    padding: 14px 22px;
    flex-wrap: wrap;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-footer__copy {
    flex: 1 1 auto;
    color: var(--wpu-ma-chrome-mute);
    font-size: 13px;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-footer__links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-footer__links a {
    color: var(--wpu-ma-chrome-mute);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease;
}

body.wooplus-myaccount-skin .wpu-ma-chrome-footer__links a:hover {
    color: var(--wpu-ma-chrome-accent);
}

body.wooplus-myaccount-skin .wpu-ma-chrome-footer__powered {
    color: var(--wpu-ma-chrome-mute);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(79, 70, 229, .08));
    border-radius: 8px;
}

/* ===================================================================
   Mobile / Tablet
   =================================================================== */
@media (max-width: 768px) {
    body.wooplus-myaccount-skin .wpu-ma-chrome-header__inner {
        padding: 12px 16px;
        gap: 10px;
    }
    body.wooplus-myaccount-skin .wpu-ma-chrome-greet {
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid var(--wpu-ma-chrome-border);
    }
    body.wooplus-myaccount-skin .wpu-ma-chrome-action__label {
        display: none;
    }
    body.wooplus-myaccount-skin .wpu-ma-chrome-action {
        padding: 8px 10px;
    }

    body.wooplus-myaccount-skin .wpu-ma-chrome-footer__inner {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===================================================================
   Dark mode (matches DS dark token)
   =================================================================== */
[data-wooplus-theme="dark"] body.wooplus-myaccount-skin {
    --wpu-ma-chrome-bg:     var(--wooplus-surface, #1e293b);
    --wpu-ma-chrome-fg:     var(--wooplus-text, #f1f5f9);
    --wpu-ma-chrome-mute:   var(--wooplus-text-mute, #94a3b8);
    --wpu-ma-chrome-border: var(--wooplus-border, #334155);
}
