/* Customer Account — Amora gold, overridable via --am-account-accent */

:root {
    --am-account-accent: #fcb800;
}

.am-account {
    padding: 32px 0 64px;
    background: #f5f5f5;
}

.am-account.bb-customer-page {
    margin-top: 0;
    min-height: auto;
    background: #f5f5f5;
}

.am-account__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.am-account__sidebar {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    position: sticky;
    top: 16px;
}

.am-account__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    background: #111;
    color: #fff;
}

.am-account__profile--drawer {
    margin-bottom: 16px;
    border-radius: 4px;
}

.am-account__avatar {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.am-account__avatar--sm {
    width: 40px;
    height: 40px;
}

.am-account__avatar-img,
.am-account__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--am-account-accent);
    display: block;
}

.am-account__profile-meta {
    min-width: 0;
}

.am-account__profile-meta strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-account__profile-meta span,
.am-account__profile-meta em {
    display: block;
    font-size: 12px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-account-nav {
    padding: 8px 0 12px;
}

.am-account-nav__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 12px 10px;
    padding: 8px 10px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    background: #fafafa;
}

.am-account-nav__search svg,
.am-account-nav__search i {
    width: 16px;
    height: 16px;
    color: #888;
    flex-shrink: 0;
}

.am-account-nav__search input {
    border: 0;
    background: transparent;
    width: 100%;
    font-size: 13px;
    outline: none;
}

.am-account-nav__label {
    margin: 14px 18px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9e9e9e;
}

.am-account-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.am-account-nav__list--logout {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eaeaea;
}

.am-account-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    line-height: 1.3;
    transition: background 0.2s ease, color 0.2s ease;
}

.am-account-nav__link svg,
.am-account-nav__link i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #666;
}

.am-account-nav__link span {
    flex: 1;
    min-width: 0;
}

.am-account-nav__badge {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.am-account-nav__link:hover {
    background: #fafafa;
    color: #111;
}

.am-account-nav__link.is-active {
    background: var(--am-account-accent, #fcb800) !important;
    color: #111 !important;
    font-weight: 600;
}

.am-account-nav__link.is-active svg,
.am-account-nav__link.is-active i {
    color: #111;
}

.am-account-nav__link.is-active .am-account-nav__badge {
    background: #111;
    color: #fff;
}

.am-account-nav__link--logout {
    color: #ec0101;
}

.am-account-nav__link--logout svg,
.am-account-nav__link--logout i {
    color: #ec0101;
}

.am-account__main {
    min-width: 0;
}

.am-account__header {
    margin-bottom: 16px;
}

.am-account__header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #111;
    line-height: 1.25;
}

.am-account__content {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 24px;
    min-height: 280px;
}

.am-account .bb-profile-content,
.am-account .bb-profile-header,
.am-account .bb-profile-main,
.am-account .bb-customer-content-wrapper {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
}

.am-account .bb-profile-header-title {
    display: none;
}

.am-account-alert {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.am-account-alert--success {
    background: #e8f8ee;
    color: #146c2e;
}

.am-account-alert--error {
    background: #fdecec;
    color: #b42318;
}

.am-account__mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.am-account__mobile-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.am-account__mobile-user strong {
    display: block;
    font-size: 14px;
    color: #111;
    line-height: 1.2;
}

.am-account__mobile-user span {
    display: block;
    font-size: 12px;
    color: #666;
}

.am-account__menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 4px;
    background: var(--am-account-accent);
    color: #111;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
}

.am-account-drawer {
    position: fixed;
    top: var(--am-account-top, 0px);
    left: 0;
    bottom: var(--am-account-bottom, 0px);
    width: min(86vw, 360px);
    z-index: 10050;
    pointer-events: none;
}

.am-account-drawer:not([hidden]) {
    pointer-events: auto;
}

.am-account-drawer__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
}

.am-account-drawer.is-open .am-account-drawer__panel {
    transform: translateX(0);
}

.am-account-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eaeaea;
    background: #fff;
    flex-shrink: 0;
}

.am-account-drawer__head strong {
    font-size: 16px;
}

.am-account-drawer__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    background: var(--am-account-accent, #fcb800);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.am-account-drawer__body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 20px;
    flex: 1;
}

.am-account-drawer__backdrop {
    position: fixed;
    top: var(--am-account-top, 0px);
    left: 0;
    right: 0;
    bottom: var(--am-account-bottom, 0px);
    background: rgba(17, 17, 17, 0.45);
    z-index: 10040;
}

body.am-account-drawer-open {
    overflow: hidden;
}

.am-dash-welcome {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    margin: -24px -24px 24px;
    background: #111;
    color: #fff;
    border-radius: 4px 4px 0 0;
}

.am-dash-welcome__avatar {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.am-dash-welcome__copy {
    flex: 1 1 180px;
    min-width: 0;
}

.am-dash-welcome__copy h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.am-dash-welcome__copy p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.am-dash-welcome__camera {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.am-dash-welcome__avatar:hover .am-dash-welcome__camera {
    opacity: 1;
}

.am-dash-welcome__camera input {
    display: none;
}

.am-dash-welcome__camera label {
    cursor: pointer;
    color: #fff;
    margin: 0;
}

.am-dash-wallet {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    background: var(--am-account-accent);
    color: #111;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 4px;
    min-width: 140px;
}

.am-dash-wallet span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.am-dash-wallet strong {
    font-size: 18px;
    line-height: 1.2;
}

.am-dash-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.am-dash-stat {
    display: block;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 14px 12px;
    text-decoration: none;
    color: #111;
    background: #fafafa;
}

.am-dash-stat strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.am-dash-stat span {
    font-size: 12px;
    color: #666;
}

.am-dash-tips {
    border: 1px solid #f1e3a8;
    background: #fffbeb;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.am-dash-tips strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.am-dash-tips ul {
    margin: 0;
    padding-left: 18px;
}

.am-dash-tips a {
    color: #111;
    font-size: 13px;
}

.am-dash-track {
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.am-dash-track label {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
}

.am-dash-track p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
}

.am-dash-track__row {
    display: flex;
    gap: 8px;
}

.am-dash-track input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
}

.am-dash-track .ps-btn {
    padding: 10px 18px;
    font-size: 14px;
    white-space: nowrap;
}

.am-dash-track__error {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #ec0101;
    font-style: normal;
}

.am-dash-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.am-dash-action {
    display: block;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 20px 18px 16px;
    text-decoration: none;
    color: #111;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.am-dash-action:hover {
    border-color: var(--am-account-accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    color: #111;
}

.am-dash-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--am-account-accent, #fcb800) !important;
    color: #111 !important;
    margin-bottom: 12px;
}

.am-dash-action h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.am-dash-action p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.45;
}

.am-dash-action__go {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.am-dash-orders {
    border: 1px solid #eaeaea;
    border-radius: 4px;
}

.am-dash-orders__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eaeaea;
}

.am-dash-orders__head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.am-dash-orders__head a {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.am-dash-orders__head a:hover {
    color: var(--am-account-accent);
}

.am-dash-orders ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.am-dash-orders li + li {
    border-top: 1px solid #f0f0f0;
}

.am-dash-orders li a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #111;
}

.am-dash-orders li a:hover {
    background: #fafafa;
}

.am-dash-orders__code {
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.am-dash-copy {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.am-dash-copy svg,
.am-dash-copy i {
    width: 14px;
    height: 14px;
}

.am-dash-orders__meta {
    grid-column: 1;
    font-size: 12px;
    color: #666;
}

.am-dash-orders__status {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.am-dash-empty {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    border: 1px dashed #d1d1d1;
    border-radius: 4px;
    background: #fafafa;
}

.am-dash-empty svg,
.am-dash-empty i {
    width: 36px;
    height: 36px;
    color: #111;
}

.am-dash-empty h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.am-dash-empty p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.am-dash-empty .ps-btn {
    margin-left: auto;
    padding: 10px 22px;
    font-size: 14px;
}

.am-account .form-control,
.am-account input[type="text"],
.am-account input[type="email"],
.am-account input[type="password"],
.am-account input[type="tel"],
.am-account select,
.am-account textarea {
    border-radius: 4px;
}

.am-account .btn-primary,
.am-account .ps-btn {
    border-radius: 4px;
}

.am-account table {
    width: 100%;
}

.am-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.am-services-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #111;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 18px 12px 14px;
    min-height: 140px;
}

.am-services-card:hover {
    border-color: var(--am-account-accent, #fcb800);
    color: #111;
}

.am-services-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--am-account-accent, #fcb800);
    color: #111;
    margin-bottom: 10px;
}

.am-services-card h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}

.am-services-card p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

#customer-nav-mobile.am-account-panel.ps-panel--sidebar {
    display: block !important;
    z-index: 10002;
}

body.am-account-menu-open {
    overflow: hidden;
}

body.am-account-menu-open .ps-site-overlay {
    z-index: 10001;
}

.am-account-panel.ps-panel--sidebar {
    z-index: 10002;
}

.am-account-panel .ps-panel__greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.am-account-panel .ps-panel__greeting a {
    color: #111;
    font-weight: 600;
}

.am-account-panel__avatar,
.am-account-panel__avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.am-account-panel .am-account-nav {
    padding-top: 0;
}

@media (min-width: 992px) {
    .am-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .am-account {
        padding: 12px 0 24px;
        box-sizing: border-box;
    }

    .am-account .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .am-account__layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .am-account__sidebar {
        display: none;
    }

    .am-account__header {
        margin-bottom: 12px;
    }

    .am-account__header h1 {
        font-size: 20px;
    }

    .am-account__content {
        padding: 14px;
        min-height: 0;
    }

    .am-dash-welcome {
        margin: -14px -14px 14px;
        padding: 14px;
        gap: 12px;
    }

    .am-dash-welcome__avatar {
        width: 56px;
        height: 56px;
    }

    .am-dash-welcome__copy h2 {
        font-size: 16px;
    }

    .am-dash-welcome__copy p {
        display: none;
    }

    .am-dash-wallet {
        width: 100%;
        align-items: flex-start;
        margin-left: 0;
    }

    .am-dash-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 14px;
    }

    .am-dash-stat {
        padding: 10px;
    }

    .am-dash-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 16px;
    }

    .am-dash-action {
        padding: 14px 12px 12px;
    }

    .am-dash-action h3 {
        font-size: 14px;
    }

    .am-dash-action p,
    .am-dash-action__go {
        display: none;
    }

    .am-dash-track {
        padding: 12px;
        margin-bottom: 14px;
    }

    .am-dash-track__row {
        flex-direction: column;
    }

    .am-dash-empty .ps-btn {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
}
