/* тело */
.tippy-box .tippy-content {
    padding: .5em;
}

/* кнопки */
.tippy-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tippy-btn {
    display: flex;
    align-items: center;
    width: 100%;
    color: #3c6690;
    padding: .2rem;
    border-radius: .1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.tippy-btn:hover {
    color: #2b4763;
    background-color: #3c669022;
    text-decoration: none;
}
.catalog-image-wrapper {
    margin: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    gap: 1em;

    & .image-width,
    & .image-height { 
        position: relative;
        border: .5px solid lightgray;
        &::after {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: .8em;
            color: var(--secondary);
            display: block;
            padding: 0 .25em;
            background: #f8f9fa;
            white-space: nowrap;
        }
    }
    & .image-width {
        grid-area: 1 / 2 / 2 / 3;
        width: 100%;
        &::after {
            content: attr(data-width)
        }
    }
    & .image-height {
        grid-area: 2 / 1 / 3 / 2;
        height: 100%;
        &::after {
            content: attr(data-height);
            transform: translate(-50%, -50%) rotate(-90deg);
        }
    }
    & .popup-main-image { grid-area: 2 / 2 / 3 / 3; }
}

.image-size {
    padding: 1em;
    border-top: 1px solid var(--secondary);
    border-left: 1px solid var(--secondary);
    position: relative;
    font-size: .8em;
    color: var(--secondary);
    min-width: 3em;
    min-height: 3em;
    &::after {
        content: attr(data-width);
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
        background-color: white;
        padding: .25em;
        white-space: nowrap;
    }
    &::before {
        content: attr(data-height);
        position: absolute;
        top: 50%;
        left: 0;
        transform: translate(-50%, -50%) rotate(270deg);
        display: block;
        background-color: white;
        padding: .25em;
        white-space: nowrap;
    }
}
.catalog-banknote-wrapper {
    font-size: 16px;
    line-height: 1.25;

    background-color: white;
    border: 1px solid rgba(0, 0, 0, .125);
    padding: 0.75em;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1em;
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}
.banknote-gallery {

}
.banknote-header {
}
.banknote-title-wrapper {
    border-bottom: 1px dashed rgb(207, 207, 207);
    padding-bottom: 0.75em;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.banknote-discription {
    padding: 0.75em;
}
.banknote-title h1 {
    font-size: 1.2em;
    margin: 0;
}
.banknote-actions {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: .5em;
    > * {
        cursor: pointer;
    }
}
.banknote-subtitle {
    font-size: .8em;
    color: var(--secondary);
    padding: .5em .5em 1em;
}
label.current-radio-styles {
    border: 1px solid lightgray;
    padding: .5em;
    border-radius: .25em;
    cursor: pointer;
    margin-bottom: 0;
    &:hover {
        box-shadow: 0 0 7px 0px #abc
    }
    input {
        display: none;
    }
    &:has(input:checked) {
        background: var(--accent-color);
        color: white;
    }
}

@media (max-width: 768px) {
    .banknote-body {
        display: contents;
    }
    .banknote-header {
        order: -1;
    }
}

.vue-tabs__content {
    position: relative;
}

/* база */
.slide-left-enter-active,
.slide-left-leave-active,
.slide-right-enter-active,
.slide-right-leave-active {
    transition: transform 0.3s ease;
    position: absolute;
    width: 100%;
}

/* slide влево */
.slide-left-enter-from {
    transform: translateX(100%);
}
.slide-left-enter-to {
    transform: translateX(0);
}
.slide-left-leave-from {
    transform: translateX(0);
}
.slide-left-leave-to {
    transform: translateX(-100%);
}

/* slide вправо */
.slide-right-enter-from {
    transform: translateX(-100%);
}
.slide-right-enter-to {
    transform: translateX(0);
}
.slide-right-leave-from {
    transform: translateX(0);
}
.slide-right-leave-to {
    transform: translateX(100%);
}


.vs__search, .vs__search:focus {
    font-size: 16px;
    height: 1.625em;
}
.vs__dropdown-toggle {
    min-width: 90px;
}
.vs__dropdown-option {
    display: block;
    width: 100%;
    padding: .25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}
.vs__dropdown-option--highlight {
    cursor: pointer;
    color: white;
    background: var(--accent-color);
}

.vue-dropdown.custom-vue-dropdown {
    font-size: 16px;
    .dropdown-head {
        display: flex;
        align-items: center;
        padding: 0 1em;
        min-height: 2.25em;
        height: 2.25em;
        color: var(--accent-color);
        border-radius: .25em;
        font-size: 1em;
        &:hover {
            text-decoration: none;
            box-shadow: 0 0 5px 0 #3c669077;
        }
        &:after {
            right: 1em;
            top: 50%;
            transform: translate(0, -40%) rotate(-135deg);
        }
        &.open:after {
            transform: translate(0, -10%) rotate(45deg);
        }
    }
    .dropdown-element {
        padding: .25em .5em;
        display: flex;
        align-items: center;
        border-radius: .25em;
        transition: all .25s, ease-in-out;
        &.selected {
            background: var(--accent-color);
            color: white;
        }
    }
    .dropdown-body {
        border-radius: .25em;
    }
    .dropdown-input {
        max-height: 2.5em;
    }
}
.user-collections-list {
    .user-collection {
        border: 1px solid lightgray;
        padding: .25em .5em;
        margin-top: -1px;
        display: flex;
        align-items: center;
        transition: all .3s ease-in-out;
        min-height: 44px;
    }
}

.hovered-item {
    background-color: white;
    transition: all .25s ease-in-out;
    .hovered-actions {
        display: flex;
        align-self: center;
        justify-content: flex-end;
        opacity: 0;
        z-index: -1;
        transition: all .25s ease-in-out;
        &:has([data-tippy-root]) {
            opacity: 1;
            z-index: 2;
        }
    }
}
@media (hover:hover) {
    .hovered-item:hover {
        background-color: #3c669022;
        .hovered-actions {
            opacity: 1;
            z-index: 1;
        }
    }
}
@media (max-width: 768px) {
    .hovered-item {
        .hovered-actions {
            opacity: 1;
            z-index: 1;
        }
    }
    .user-collections-list {
        .user-collection {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            gap: .5em;
            padding: .5em;
            > div {
                &:first-child {
                    grid-column: span 2;
                }
                &:nth-child(2) {
                    justify-self: end;
                }
            }
        }
    }
}

input#collection-item-price + div .vs__dropdown-toggle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.banknote-description small {
    display: block;
    line-height: 1.25;
    margin-bottom: .25em;
}
.banknote-description td {
    padding: .75em;
}
legend.legend {
    font-size: 1.1em;
}
.row-content {
    display: grid;
    grid-template-columns: 3fr 1fr auto;
    align-items: center;
    gap: .5rem;
    padding: .25rem .5rem;
    border: 1px solid #dee2e6;
    margin: -1px;
    &.is-other {
        padding: .8em;
    }
}

.catalog-bon-wrapper {
    background-color : #f7f7f7;
}
.catalog-connected-bon-wrapper {
    background-color: #dedede;
}
.border-solid-left {
    border-left: 1px solid rgba(0, 0, 0, 0.125);
}
.store-news a.border-solid-left {
    background-color: initial;
}

a.color-gray:hover {
    color: gray;
    text-decoration: none;
}

@media(max-width: 411px) {
    /* col-12 analog for mobile devices */
    .col-12-mobile {
        width: 100%!important;
        flex: 0 0 100%;
        max-width: 100%;
    }
}
.style-radio {
    display: block;
    position: relative;
    padding-left: 30px;
    transition: all .3s ease-in-out;
    input {
        display: none;
    }
    &::before {
        display: block;
        content: '';
        width: 18px;
        height: 18px;
        border: 2px solid #ccc;
        border-radius: 50%;
        margin-right: 10px;
        position: absolute;
        top: 50%;
        transform: translate(0, -50%);
        left: 0;
        cursor: pointer;
    }
    &:has(input:checked) {
        color: var(--accent-color);
        font-weight: 600;
    }
    &:has(input:checked)::before {
        background-color: #3c6690;
        border-color: #3c6690;
        z-index: 0;
    }
    &::after {
        content: '';
        width: 14px;
        height: 14px;
        border: 2.5px solid white;
        position: absolute;
        border-radius: 50%;
        left: 2px;
        top: 50%;
        transform: translate(0, -50%);
        z-index: 1;
        cursor: pointer;
    }
    &:hover:before {
        border-color: #3c6690;
    }
    span {
        text-transform: capitalize;
    }
}
.new-collection-text p {
    font-size: .66rem;
    margin-bottom: .75rem;
    line-height: 1.5;
}
.form-control.form-control-sm:not(textarea) {
    max-height: 1.5rem !important;
}

.air-datepicker-global-container {
    z-index: 100000;
}
.catalog-block__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
    padding: .5rem 0;
    h3 {
        font-size: initial;
    }
}

.connected-items {
    font-size: 16px;
    line-height: 1.25;
}
.connected-items__list-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
}

.connected-items__item-wrapepr {
    border: 1px solid lightgray;
    background: white;
    display: flex;
    flex-direction: column;
}

.connected-items__images {
    padding: 1em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5em;
    align-items: center;
    justify-items: center;
    img {
        object-fit: contain;
    }
}
.connected-items__title {
    display: flex;
    gap: .5em;
    justify-content: space-between;
    h3 {
        font-size: 1.1em;
        font-weight: 500;
        margin: 0;
    }
}
.connected-items__description {
    display: flex;
    flex-direction: column;
    padding: 1em;
    border-bottom: 1px solid lightgray;
    gap: .25em;
    position: relative;
    .hovered-actions {
        position: absolute;
        top: .5em;
        right: .5em;
    }
}
.v-lightbox, #popup-gallery {
    & .preview {
        flex-direction: column;
        align-items: center;
    }
    .catalog-image {
        border: 1px solid lightgray;
        border-radius: .25em;
        padding: 1em;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        width: 100%;
        min-height: 351px;
    }
    .thumbnails-wrapper {
        order: unset;
        max-width: unset;
        max-height: 60px;
        overflow-y: unset;
        overflow-y: auto;
        justify-content: center;
    }
    .thumbnails {
        flex-direction: row;
        
    }
}
.connected-type-marker {
    border: 1px solid lightgray;
    background-color: white;
    min-width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -.25em 1em -.25em 0;
}
legend.legend {
    font-size: .9em;
    color: #808080;
}
.connected-items__info {
    margin-top: .5rem;
    margin-bottom: 0;
    padding-left: .6rem;
}