.asw-account {
    --asw-account-accent: #315c49;
    --asw-account-muted: #737b75;
    position: relative;
    display: inline-flex;
    max-width: 100%;
    direction: inherit;
    color: #243129;
    font: inherit;
}

.asw-account *,
.asw-account *::before,
.asw-account *::after {
    box-sizing: border-box;
}

.asw-account button,
.asw-account a {
    font: inherit;
}

.asw-account__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 46px;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid rgba(36, 49, 41, .14);
    border-radius: 14px;
    color: #243129;
    background: #fff;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.asw-account__trigger:hover,
.asw-account--open .asw-account__trigger {
    color: #fff;
    background: #315c49;
}

.asw-account__trigger:focus-visible,
.asw-account__close:focus-visible,
.asw-account__menu a:focus-visible,
.asw-account__logout:focus-visible,
.asw-account__action:focus-visible {
    outline: 2px solid var(--asw-account-accent);
    outline-offset: 3px;
}

.asw-account__trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
}

.asw-account__trigger-icon svg,
.asw-account__trigger-icon i {
    width: 100%;
    height: 100%;
    font-size: 21px;
}

.asw-account__trigger-icon svg {
    fill: currentColor;
}

.asw-account__avatar {
    display: inline-flex;
    width: 21px;
    height: 21px;
    overflow: hidden;
    border-radius: 50%;
}

.asw-account__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.asw-account--hide-trigger-label .asw-account__trigger-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.asw-account__surface {
    position: fixed;
    z-index: 100021;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 20px;
    border: 0;
    background: rgba(10, 16, 12, .48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.asw-account--open .asw-account__surface {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.asw-account__surface[popover] {
    color: inherit;
}

.asw-account__surface[popover]::backdrop {
    background: transparent;
}

.asw-account__dialog {
    --asw-account-panel-width: 380px;
    position: relative;
    width: min(var(--asw-account-panel-width), 100%);
    max-height: min(82vh, 720px);
    overflow: auto;
    padding: 24px;
    border: 1px solid rgba(36, 49, 41, .12);
    border-radius: 22px;
    color: inherit;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 25, 18, .22);
    opacity: 0;
    transform: translateY(14px) scale(.985);
    transition: transform .24s ease, opacity .24s ease;
}

.asw-account--open .asw-account__dialog {
    opacity: 1;
    transform: none;
}

.asw-account__close {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: var(--asw-account-muted);
    background: rgba(36, 49, 41, .06);
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.asw-account__close:hover {
    color: #c33b3b;
    background: rgba(195, 59, 59, .09);
}

.asw-account__close svg,
.asw-account__menu svg,
.asw-account__logout svg,
.asw-account__guest-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asw-account__close svg {
    width: 16px;
    height: 16px;
}

.asw-account__profile {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 2px 42px 18px 0;
    border-bottom: 1px solid rgba(36, 49, 41, .11);
}

[dir="rtl"] .asw-account__profile {
    padding-right: 0;
    padding-left: 42px;
}

.asw-account__profile-avatar {
    display: block;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 17px;
    background: rgba(36, 49, 41, .06);
}

.asw-account__profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.asw-account__profile > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.asw-account__profile strong {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asw-account__profile span:last-child {
    overflow: hidden;
    color: var(--asw-account-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asw-account__menu {
    display: grid;
    gap: 4px;
    padding: 14px 0;
}

.asw-account__menu a,
.asw-account__logout {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 45px;
    padding: 9px 10px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.asw-account__menu a:hover {
    color: var(--asw-account-accent);
    background: color-mix(in srgb, var(--asw-account-accent) 7%, transparent);
}

.asw-account__menu a > svg:first-child,
.asw-account__logout svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.asw-account__menu a > span {
    flex: 1 1 auto;
}

.asw-account__arrow {
    width: 16px;
    height: 16px;
    color: var(--asw-account-muted);
}

[dir="rtl"] .asw-account__arrow {
    transform: scaleX(-1);
}

.asw-account__logout {
    border-top: 1px solid rgba(36, 49, 41, .11);
    border-radius: 0;
    color: #b83b3b;
}

.asw-account__logout:hover {
    color: #982d2d;
}

.asw-account__guest-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 18px auto 18px;
    border-radius: 23px;
    color: var(--asw-account-accent);
    background: color-mix(in srgb, var(--asw-account-accent) 9%, transparent);
}

.asw-account__guest-icon svg {
    width: 31px;
    height: 31px;
}

.asw-account__guest-title {
    margin: 0 0 8px;
    color: inherit;
    text-align: center;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.5;
}

.asw-account__guest-description {
    margin: 0 auto 20px;
    max-width: 310px;
    color: var(--asw-account-muted);
    text-align: center;
    font-size: 13px;
    line-height: 1.85;
}

.asw-account__guest-actions {
    display: grid;
    gap: 10px;
}

.asw-account__action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 700;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.asw-account__action--primary {
    color: #fff;
    background: var(--asw-account-accent);
}

.asw-account__action--primary:hover {
    color: #fff;
    filter: brightness(.94);
}

.asw-account__action--secondary {
    color: var(--asw-account-accent);
    border-color: color-mix(in srgb, var(--asw-account-accent) 22%, transparent);
    background: transparent;
}

.asw-account__action--secondary:hover {
    color: var(--asw-account-accent);
    background: color-mix(in srgb, var(--asw-account-accent) 7%, transparent);
}

.asw-account[data-effective-mode="dropdown"] .asw-account__surface {
    position: fixed;
    inset: auto;
    top: var(--asw-dropdown-top, 0px);
    left: var(--asw-dropdown-left, 12px);
    width: var(--asw-dropdown-width, min(var(--asw-account-panel-width), calc(100vw - 24px)));
    max-width: calc(100vw - 24px);
    height: auto;
    padding: 0;
    background: transparent !important;
    align-items: flex-start;
    justify-content: flex-start;
}

.asw-account[data-effective-mode="dropdown"] .asw-account__dialog {
    width: 100%;
    max-height: min(var(--asw-dropdown-max-height, 72dvh), 650px);
    transform: translateY(-8px) scale(.99);
    transform-origin: top center;
}

.asw-account[data-effective-mode="dropdown"].asw-account--open .asw-account__dialog {
    transform: none;
}

.asw-account[data-effective-mode="drawer_end"] .asw-account__surface,
.asw-account[data-effective-mode="drawer_start"] .asw-account__surface {
    padding: 0;
    align-items: stretch;
}

.asw-account[data-effective-mode="drawer_end"] .asw-account__surface {
    justify-content: flex-end;
}

.asw-account[data-effective-mode="drawer_start"] .asw-account__surface {
    justify-content: flex-start;
}

.asw-account[data-effective-mode="drawer_end"] .asw-account__dialog,
.asw-account[data-effective-mode="drawer_start"] .asw-account__dialog {
    width: min(var(--asw-account-panel-width), 100%);
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    transform: translateX(100%);
}

[dir="rtl"] .asw-account[data-effective-mode="drawer_end"] .asw-account__dialog,
[dir="ltr"] .asw-account[data-effective-mode="drawer_start"] .asw-account__dialog {
    transform: translateX(-100%);
}

.asw-account[data-effective-mode="drawer_end"].asw-account--open .asw-account__dialog,
.asw-account[data-effective-mode="drawer_start"].asw-account--open .asw-account__dialog {
    transform: none;
}

.asw-account[data-effective-mode="fullscreen"] .asw-account__surface {
    padding: 0;
}

.asw-account[data-effective-mode="fullscreen"] .asw-account__dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding-top: 50px;
}

.asw-account[data-effective-mode="drawer_bottom"] .asw-account__surface {
    padding: 0;
    align-items: flex-end;
}

.asw-account[data-effective-mode="drawer_bottom"] .asw-account__dialog {
    width: 100%;
    max-height: min(84vh, 680px);
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
}

.asw-account[data-effective-mode="drawer_bottom"].asw-account--open .asw-account__dialog {
    transform: none;
}

html.asw-account-page-locked,
html.asw-account-page-locked body {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .asw-account__surface {
        padding: 10px;
    }

    .asw-account__dialog {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asw-account__surface,
    .asw-account__dialog,
    .asw-account__trigger,
    .asw-account__menu a,
    .asw-account__action {
        transition: none !important;
    }
}


/* Asa Rad Shop Widgets 2.3.0 — configurable account menu */
.asw-account__menu-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}
.asw-account__menu-icon svg,
.asw-account__menu-icon i {
    width: 20px;
    height: 20px;
    font-size: 20px;
}
.asw-account__menu a > .asw-account__menu-icon + span {
    flex: 1 1 auto;
}
