.customer-menu {
    width: auto;
    position: fixed;
    top: 14px;
    right: 14px;
    left: auto;
    z-index: 1200;
}

.customer-menu-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(31, 91, 84, 0.18);
    border-radius: 16px;
    width: 58px;
    height: 46px;
    cursor: pointer;
    color: #1f5b54;
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 237, 221, 0.96));
    box-shadow: 0 16px 26px rgba(31, 91, 84, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.customer-menu-toggle:hover,
.customer-menu-toggle:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(31, 91, 84, 0.2);
    outline: none;
}

.customer-menu-toggle-icon {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.customer-menu-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    border: 1.5px solid #fff;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.customer-menu-panel {
    position: fixed;
    top: 62px;
    left: auto;
    right: 14px;
    max-height: calc(100vh - 74px);
    overflow: auto;
    min-width: 214px;
    max-width: min(244px, calc(100vw - 18px));
    padding: 10px;
    border: 1px solid rgba(218, 198, 183, 0.92);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 28px rgba(42, 22, 11, 0.14);
    backdrop-filter: blur(12px);
    display: grid;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
}

.customer-menu.open .customer-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.customer-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    border-radius: 14px;
    padding: 12px 14px;
    color: #1f5b54;
    font-family: "Sora", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    background: #fffaf5;
    border: 1px solid rgba(233, 218, 205, 0.82);
    transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}

button.customer-menu-item {
    appearance: none;
    cursor: pointer;
    font-family: "Sora", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    color: #1f5b54;
    text-align: left;
}

.customer-menu-item-label {
    display: inline-flex;
    align-items: center;
    font: inherit;
    color: inherit;
}

.customer-menu-item:hover,
.customer-menu-item:focus-visible {
    transform: translateY(-1px);
    background: #fffdf9;
    border-color: rgba(214, 189, 170, 0.92);
    box-shadow: 0 8px 14px rgba(42, 22, 11, 0.08);
    outline: none;
}

.customer-menu-item.active {
    background: #fff2e4;
    color: #1f5b54;
    border-color: rgba(214, 180, 152, 0.95);
}

.customer-menu-item-count {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

@media (max-width: 700px) {
    .customer-menu {
        top: 10px;
        right: 10px;
    }

    .customer-menu-toggle {
        width: 54px;
        height: 44px;
        border-radius: 15px;
    }

    .customer-menu-panel {
        right: 10px;
        min-width: 198px;
        max-width: min(226px, calc(100vw - 16px));
        max-height: calc(100vh - 66px);
    }
}

@media (max-width: 520px) {
    .customer-menu-panel {
        right: 10px;
        min-width: 188px;
        max-width: min(214px, calc(100vw - 16px));
        padding: 8px;
        border-radius: 18px;
    }

    .customer-menu-item {
        padding: 11px 12px;
        border-radius: 13px;
    }
}

@media (max-width: 380px) {
    .customer-menu {
        top: 8px;
        right: 8px;
    }

    .customer-menu-panel {
        right: 8px;
        min-width: 178px;
        max-width: min(202px, calc(100vw - 14px));
    }
}
