/* =======================================================================
   Bushman Music — Professional My Account page
   Loads on is_account_page(). Theme combo: white cards, dark text #1c1c1e,
   amber #ffb700. Scoped to body.my-account so nothing else is affected.
   ======================================================================= */

body.my-account {
    --ma-dark: #1c1c1e;
    --ma-text: #3a3a3e;
    --ma-muted: #8a8a91;
    --ma-line: #e7e7ec;
    --ma-accent: #ffb700;
    --ma-accent-dark: #e6a500;
    --ma-accent-soft: #fff7e3;
    --ma-panel: #fbfbfc;
    --ma-radius: 12px;
    --ma-radius-sm: 8px;
}

/* ---- Page title ---- */
body.my-account .entry-title,
body.my-account h1.entry-title,
body.my-account .page-title {
    font-family: "Oswald", "Heebo", sans-serif !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    letter-spacing: .3px;
    color: var(--ma-dark) !important;
    margin: 0 0 26px !important;
}

/* =====================================================================
   LOGGED-IN: two-column dashboard (sidebar nav + content card)
   ===================================================================== */
body.my-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* ---- Sidebar navigation ---- */
body.my-account .woocommerce-MyAccount-navigation {
    flex: 0 0 250px;
    margin: 0 !important;
    padding: 10px !important;
    background: #fff;
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius);
    box-shadow: 0 6px 20px rgba(20, 20, 30, .05);
}
body.my-account .woocommerce-MyAccount-navigation ul {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: 0 !important;
}
body.my-account .woocommerce-MyAccount-navigation li {
    margin: 0 0 2px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}
body.my-account .woocommerce-MyAccount-navigation li:last-child { margin-bottom: 0 !important; }

body.my-account .woocommerce-MyAccount-navigation li a {
    display: flex !important;
    align-items: center;
    gap: 11px;
    padding: 12px 15px !important;
    border-radius: var(--ma-radius-sm) !important;
    background: transparent !important;
    color: var(--ma-text) !important;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease;
}
body.my-account .woocommerce-MyAccount-navigation li a::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--ma-ico) no-repeat center / contain;
    mask: var(--ma-ico) no-repeat center / contain;
    opacity: .85;
}
body.my-account .woocommerce-MyAccount-navigation li a:hover {
    background: var(--ma-panel) !important;
    color: var(--ma-dark) !important;
}
body.my-account .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--ma-dark) !important;
    color: #fff !important;
}
body.my-account .woocommerce-MyAccount-navigation li.is-active a::before { opacity: 1; }

/* per-link icons (feather-style, drawn via mask so they recolor) */
body.my-account .woocommerce-MyAccount-navigation-link--dashboard a {
    --ma-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}
body.my-account .woocommerce-MyAccount-navigation-link--orders a {
    --ma-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}
body.my-account .woocommerce-MyAccount-navigation-link--downloads a {
    --ma-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}
body.my-account .woocommerce-MyAccount-navigation-link--edit-address a {
    --ma-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
body.my-account .woocommerce-MyAccount-navigation-link--payment-methods a {
    --ma-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}
body.my-account .woocommerce-MyAccount-navigation-link--edit-account a {
    --ma-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
body.my-account .woocommerce-MyAccount-navigation-link--customer-logout a {
    --ma-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}
/* wishlist (plugin) — match common modifier names */
body.my-account .woocommerce-MyAccount-navigation-link--wishlist a,
body.my-account li[class*="wishlist"] a {
    --ma-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1.1 1L12 21l7.7-7.6 1.1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
}

/* ---- Content card ---- */
body.my-account .woocommerce-MyAccount-content {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding: 30px 32px !important;
    background: #fff;
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius);
    box-shadow: 0 6px 20px rgba(20, 20, 30, .05);
    color: var(--ma-text);
    font-size: 15px;
    line-height: 1.7;
}
body.my-account .woocommerce-MyAccount-content > p { margin: 0 0 16px; }
body.my-account .woocommerce-MyAccount-content a:not(.button) {
    color: var(--ma-accent-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.my-account .woocommerce-MyAccount-content a:not(.button):hover { color: var(--ma-dark); }
body.my-account .woocommerce-MyAccount-content h2,
body.my-account .woocommerce-MyAccount-content h3 {
    font-family: "Oswald", "Heebo", sans-serif;
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ma-dark);
    margin: 4px 0 16px;
}

/* =====================================================================
   Tables (orders / downloads / addresses overview)
   ===================================================================== */
body.my-account .woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border: 1px solid var(--ma-line) !important;
    border-radius: var(--ma-radius-sm);
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    margin: 0 0 18px;
}
body.my-account .woocommerce-MyAccount-content table.shop_table thead th {
    background: var(--ma-panel);
    padding: 13px 16px !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ma-dark);
    border-bottom: 1px solid var(--ma-line) !important;
    text-align: left;
}
body.my-account .woocommerce-MyAccount-content table.shop_table tbody td {
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ma-line) !important;
    font-size: 14px;
    vertical-align: middle;
}
body.my-account .woocommerce-MyAccount-content table.shop_table tbody tr:last-child td { border-bottom: 0 !important; }
body.my-account .woocommerce-MyAccount-content table.shop_table tbody tr:hover td { background: #faf7ee; }

/* =====================================================================
   Forms (account details / addresses / login / register)
   ===================================================================== */
body.my-account .woocommerce form .form-row label,
body.my-account form label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ma-dark);
}
body.my-account input[type="text"],
body.my-account input[type="email"],
body.my-account input[type="password"],
body.my-account input[type="tel"],
body.my-account input[type="number"],
body.my-account select,
body.my-account textarea,
body.my-account .woocommerce-Input.input-text {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px !important;
    border: 1px solid var(--ma-line) !important;
    border-radius: var(--ma-radius-sm) !important;
    background: #fff !important;
    font-size: 14px;
    color: var(--ma-dark) !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
body.my-account input:focus,
body.my-account select:focus,
body.my-account textarea:focus {
    outline: none !important;
    border-color: var(--ma-accent) !important;
    box-shadow: 0 0 0 3px rgba(255, 183, 0, .18) !important;
}
body.my-account .woocommerce form .form-row { margin: 0 0 16px; padding: 0; }

/* ---- Buttons ---- */
body.my-account .button,
body.my-account button[type="submit"],
body.my-account .woocommerce-Button,
body.my-account input[type="submit"] {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 12px 26px !important;
    font-family: "Oswald", "Heebo", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.2;
    color: #000 !important;
    background: linear-gradient(180deg, #ffc733, var(--ma-accent)) !important;
    border: 1.5px solid var(--ma-accent) !important;
    border-radius: var(--ma-radius-sm) !important;
    box-shadow: 0 4px 12px rgba(255, 183, 0, .28);
    text-decoration: none !important;
    cursor: pointer;
    transition: all .2s ease;
}
body.my-account .button:hover,
body.my-account button[type="submit"]:hover,
body.my-account .woocommerce-Button:hover,
body.my-account input[type="submit"]:hover {
    background: var(--ma-dark) !important;
    color: #fff !important;
    border-color: var(--ma-dark) !important;
}
/* secondary / outline buttons (e.g. "View" order, address edit) */
body.my-account .woocommerce-MyAccount-content td .button,
body.my-account .button.view {
    background: #fff !important;
    color: var(--ma-dark) !important;
    border: 1.5px solid var(--ma-dark) !important;
    box-shadow: none;
    padding: 8px 18px !important;
}
body.my-account .woocommerce-MyAccount-content td .button:hover,
body.my-account .button.view:hover {
    background: var(--ma-dark) !important;
    color: #fff !important;
}

/* =====================================================================
   LOGGED-OUT: login + register as two cards
   ===================================================================== */
body.my-account .u-columns.col2-set,
body.my-account .woocommerce-account .col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
    width: 100%;
    margin: 0;
}
body.my-account .col2-set .col-1,
body.my-account .col2-set .col-2 {
    flex: 1 1 calc(50% - 15px);
    min-width: 280px;
    max-width: none;
    margin: 0 !important;
    padding: 28px 30px !important;
    background: #fff;
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius);
    box-shadow: 0 6px 20px rgba(20, 20, 30, .05);
}
body.my-account .col2-set .col-1 h2,
body.my-account .col2-set .col-2 h2,
body.my-account .woocommerce-form-login h2,
body.my-account .woocommerce-form-register h2 {
    font-family: "Oswald", "Heebo", sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--ma-dark);
    margin: 0 0 6px;
    padding: 0 0 14px;
    border-bottom: 2px solid var(--ma-accent);
}
body.my-account .woocommerce-form-login__rememberme,
body.my-account .woocommerce-form-register .woocommerce-privacy-policy-text {
    font-size: 13px;
    color: var(--ma-muted);
}
body.my-account .woocommerce-form-login__submit,
body.my-account .woocommerce-form-register__submit { width: 100% !important; text-align: center; }
body.my-account .woocommerce-LostPassword a {
    font-size: 13px;
    color: var(--ma-accent-dark);
    font-weight: 600;
}

/* =====================================================================
   Notices
   ===================================================================== */
body.my-account .woocommerce-message,
body.my-account .woocommerce-info,
body.my-account .woocommerce-error {
    border-top: 0 !important;
    border-radius: var(--ma-radius-sm) !important;
    padding: 14px 18px 14px 46px !important;
    font-size: 14px;
    margin: 0 0 22px !important;
}
body.my-account .woocommerce-message::before,
body.my-account .woocommerce-info::before { color: var(--ma-accent-dark) !important; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 860px) {
    body.my-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
        flex-direction: column;
        gap: 22px;
    }
    body.my-account .woocommerce-MyAccount-navigation { flex: 1 1 auto; width: 100%; }
    body.my-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px;
    }
    body.my-account .woocommerce-MyAccount-navigation li { margin: 0 !important; }
    body.my-account .woocommerce-MyAccount-content { width: 100%; padding: 22px 18px !important; }
    body.my-account .col2-set .col-1,
    body.my-account .col2-set .col-2 { flex: 1 1 100%; }
}
