/*
 * EASYLOOT STEP 13.6.1
 * Мои объявления / редактирование
 */

.marketIntroActions {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    justify-content: flex-end;
    gap: 10px;
}

.marketIntroActions .createListingButton {
    margin-left: 0 !important;
}

.myListingsToggle {
    position: relative;

    width: 50px;
    min-width: 50px;
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(211, 75, 55, .68);

    background:
        linear-gradient(
            145deg,
            #c34434,
            #8f2d25
        );

    color: #fff;

    box-shadow: none;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.myListingsToggle:hover,
.myListingsToggle:focus-visible {
    border-color:
        rgba(240, 100, 78, .95);

    background:
        linear-gradient(
            145deg,
            #d45342,
            #a33429
        );

    box-shadow:
        0 9px 24px
        rgba(118, 29, 21, .28);

    outline: none;
}

.myListingsToggle:active {
    transform: translateY(1px);
}

.myListingsToggle.isActive {
    border-color:
        rgba(255, 119, 93, 1);

    background:
        linear-gradient(
            145deg,
            #e05a45,
            #a92f24
        );

    box-shadow:
        0 0 0 2px
        rgba(211, 75, 55, .16),
        0 10px 25px
        rgba(118, 29, 21, .34);
}

.myListingsToggle.isActive::after {
    content: "";

    position: absolute;
    top: 5px;
    right: 5px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 0 8px
        rgba(255, 255, 255, .8);
}

.myListingsToggle svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: square;
    stroke-linejoin: miter;

    pointer-events: none;
}

.myListingsTooltip {
    position: absolute;
    z-index: 500;

    top: calc(100% + 11px);
    right: 0;

    width: max-content;
    max-width: 240px;

    padding: 10px 12px;

    border:
        1px solid
        rgba(211, 75, 55, .46);

    background:
        rgba(24, 23, 20, .98);

    color: #f5f1e8;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, .42);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);

    pointer-events: none;

    transition:
        opacity .15s ease,
        visibility .15s ease,
        transform .15s ease;
}

.myListingsTooltip::before {
    content: "";

    position: absolute;
    right: 17px;
    bottom: 100%;

    border-right: 6px solid transparent;
    border-bottom: 7px solid rgba(24, 23, 20, .98);
    border-left: 6px solid transparent;
}

.myListingsToggle:hover .myListingsTooltip,
.myListingsToggle:focus-visible .myListingsTooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.listingAction.easylootOwnEditButton {
    border-color:
        rgba(211, 75, 55, .62) !important;

    background:
        linear-gradient(
            145deg,
            #b84031,
            #813027
        ) !important;

    color: #fff !important;

    cursor: pointer !important;
}

.listingAction.easylootOwnEditButton:hover {
    border-color:
        rgba(239, 104, 82, .9) !important;

    background:
        linear-gradient(
            145deg,
            #ca4a39,
            #94362b
        ) !important;
}

.easylootDeleteListingButton {
    margin-right: auto !important;

    border-color:
        rgba(211, 75, 55, .64) !important;

    background:
        rgba(137, 43, 34, .18) !important;

    color:
        #ef7967 !important;
}

.easylootDeleteListingButton:hover {
    border-color:
        rgba(239, 104, 82, .9) !important;

    background:
        rgba(173, 50, 39, .28) !important;

    color:
        #fff !important;
}

.easylootMyToast {
    min-width: 260px;
    max-width: 430px;

    margin-top: 10px;
    padding: 14px 16px;

    border:
        1px solid
        rgba(120, 145, 63, .5);

    background:
        rgba(31, 31, 27, .98);

    color: #f5f1e8;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, .42);

    animation:
        easylootMyToastIn
        .18s ease both;
}

.easylootMyToast.isError {
    border-color:
        rgba(211, 75, 55, .62);

    color: #ff9a88;
}

@keyframes easylootMyToastIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .marketIntroActions {
        width: 100%;
    }

    .marketIntroActions .createListingButton {
        width: auto !important;
        flex: 1 1 auto;
    }

    .myListingsToggle {
        flex: 0 0 50px;
    }

    .myListingsTooltip {
        right: 0;
        white-space: normal;
    }
}
