/* Shared account dropdown used by the site header on hotel, villa and blog layouts. */
.Modal-myaccount-wrapper {
    position: relative;
    display: inline-block;
}

.account-dropdown-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.account-dropdown-btn__label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-dropdown-btn__arrow {
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.25s ease;
    margin-top: -2px;
}

.account-dropdown-btn.is-open .account-dropdown-btn__arrow {
    transform: rotate(135deg);
}

.Modal-myaccount-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(17.5rem, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    overflow: hidden;
}

.Modal-myaccount-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.Modal-myaccount-list {
    padding: 0.35rem 0.5rem 0.5rem;
    direction: rtl;
}

.Modal-myaccount-item + .Modal-myaccount-item {
    margin-top: 0.15rem;
}

.Modal-myaccount-link {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 0.75rem;
    font-size: var(--fs-md, 1rem);
    font-weight: 500;
    line-height: 1.4;
    color: #27272a;
    text-align: right;
    text-decoration: none;
    background: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.Modal-myaccount-link__icon {
    display: flex;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #71717a;
}

.Modal-myaccount-link__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.Modal-myaccount-link__text {
    flex: 1;
    min-width: 0;
}

.Modal-myaccount-link:hover,
.Modal-myaccount-link:focus-visible {
    background: #f6f7f9;
    color: #18181b;
    outline: none;
}

.Modal-myaccount-link-danger {
    color: #b91c1c;
}

.Modal-myaccount-link-danger .Modal-myaccount-link__icon {
    color: currentColor;
}

.Modal-myaccount-link-danger:hover,
.Modal-myaccount-link-danger:focus-visible {
    background: rgba(185, 28, 28, 0.08);
    color: #991b1b;
}

@media (max-width: 768px) {
    .Modal-myaccount-dropdown {
        display: none;
    }
}
