@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.page-heading {
    font-size: 20px;
    font-weight: 700;
    color: #fff;

    margin-bottom: 36px;
} 

.sticker-tabs-wrapper {
    background-color: #1f1d1d;
    padding: 16px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    /* margin-bottom: 18px; */
    border-bottom: 1px solid #ffffff2e;
}

.sticker-shop-wrapper {
    background-color: #292929;
    border-radius: 8px;
    border: 1px solid #ffffff1a;
    margin-bottom: 36px;
}

.sticker-tabs {
    display: flex;
    flex-direction: row;
    gap: 12px;
}
 
.sticker-tabs-item.active {
    color: #fff;
    /* border-bottom: 1px solid #71aaeb; */
    /* padding-bottom: 13px; */
    background: #e1e3e6;
    color: #222222;
    /* padding: 4px 8px; */
}

.sticker-tabs-item:hover {
    background: #e1e3e6;
    color: #222222;
}

.sticker-tabs-item {
    color: #939393;
    padding: 4px 8px;
    border-radius: 8px;

    transition: 0.3s all;

    cursor: pointer;
}

/* .sticker-tabs {
    margin-bottom: 18px;
} */

.sticker-packs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    row-gap: 24px;

    font-family: "Montserrat", sans-serif;

    padding: 32px 16px;
    /* margin-bottom: 32px; */
}

.sticker-pack {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    /* border: 1px solid #ffffff30; */
    background: #1f1d1d;
    /* height: 230px;    */

    position: relative;
    transition: transform 0.2s ease;

    cursor: pointer;
}

.sticker-pack:hover {
    text-decoration: none;
    transform: translateY(-6px);
}

.sticker-pack-cover {
    height: 188px;
}

.sticker-pack-count {
    color: #828282;
    font-size: 12.5px;
}

.sticker-pack-bottom {
    display: flex;
    justify-content: space-between;
    /* height: fit-content; */
    /* margin: 0px; */
    /* padding: 0px; */
    padding: 8px 8px;
    border-left: 1px solid #50505073;
    border-right: 1px solid #50505073;
    border-bottom: 1px solid #50505073;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    align-items: center;
}

.sticker-pack-cover img {
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0px 0px;
}

.sticker-buy-btn {
    background-color: #e1e3e6;
    height: 32px;
    padding: 0 16px;
    font-weight: 500;
    font-size: 14px;
    color: #222222;
    border-radius: 8px;
    border: 1px solid #222222;

    transition: 0.2s all;

    cursor: pointer;

    min-width: 90px;
}

.sticker-buy-gift-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;

    height: 32px;
    padding: 0 16px;
    font-weight: 500;
    font-size: 14px;

    color: #fff;

    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);

    transition: 0.2s all;
    cursor: pointer;
}

.modal-pack-info {
    padding: 24px;

    display: flex;

    font-family: "Montserrat", sans-serif;
}

.modal-pack-info-cover-wrapper, .modal-pack-info-cover-wrapper img {
    width: 124px;
    height: 124px;
    border-radius: 8px;
}

.modal-pack-info-bottom {
    gap: 16px;
    display: flex;
    justify-content: flex-end;
    padding: 24px;
}

.sticker-pack-name, .pack-name {
    -webkit-font-smoothing: antialiased;
    font-weight: 700;
    color: #fff;
}

.sticker-pack-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-pack-stickers {
    /* box-shadow: var(--vkui--elevation3, 0 2px 24px 0 rgba(0, 0, 0, .08), 0 0 2px 0 rgba(0, 0, 0, .08)); */

    height: 300px;
    background-color: rgb(50, 50, 50);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 32px;
    overflow-y: auto; /* изменено с 'scroll' на 'auto' */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 20px;
    
    /* Скрываем полосу прокрутки для WebKit (Chrome, Safari, новые версии Edge) */
    &::-webkit-scrollbar {
        display: none;
    }
    
    /* Для Firefox */
    scrollbar-width: none;
    
    /* Для IE и Edge */
    -ms-overflow-style: none;
}

.modal-pack-stickers img {
    width: 100%;
    height: 100%;
}

.modal .modal-content {
    background-color: rgb(34, 34, 34);
    border-radius: 16px;
}

.modal-pack-info-name_and_desc {
    margin-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pack-name {
    font-size: 20px;
    color: #f3f3f3bd;
}

.modal-gift-pack-cover-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0px;
}

.modal-gift-pack-cover-wrapper img {
    width: 128px;
    height: 128px;
    border-radius: 16px;
}

.modal-gift-pack-top-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #363738;
}

.sticker-pack-gift-info {
    display: flex;
    flex-direction: column;
    /* gap: 4px; */
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.gift-sticker-pack-name {
    font-size: 20px;
    font-weight: 700;
    color: #dbd8d8;
    margin-bottom: 2px;
}

.modal-gift-pack-wrapper {
    font-family: "Montserrat", sans-serif;
}

.gift-sticker-pack-receivers {
    padding: 12px 24px;
    border-bottom: 1px solid #363738;
}

.gift-sticker-pack-receivers textarea, .gift-sticker-pack-receivers input {
    background-color: #292929;
    border-color: rgb(225 227 230 / 12%);
}

.gift-sticker-pack-receivers textarea {
    height: 196px;
}

.gift-sticker-pack-bottom {
    display: flex;
    justify-content: flex-end;

    padding: 12px 24px;
}

.gift-pack-price {
    font-weight: 500;
    color: #fff;
}       

.user-balance {
    /* font-weight: 700; */
}

.gift-sticker-pack-about {
    width: 400px;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 8px;
}

@media(max-width: 599px) {
    .modal-pack-stickers {
        grid-template-columns: repeat(2, 1fr);
    }

    .sticker-packs {
        grid-template-columns: repeat(1, 1fr);
    }
}

.search-container {
	position: relative;
	margin-bottom: 20px;
}

.input-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	min-height: 32px;
	padding: 5px;
	border: 1px solid rgb(225 227 230 / 12%);
	border-radius: 8px;
	background-color: #292929;
	cursor: text;
}
        
        /* .input-wrapper:focus-within {
            border-color: #4a90e2;
            box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
        } */
        
.search-input {
	flex: 1;
	min-width: 150px;
	padding: 8px;
	border: none;
	font-size: 16px;
	outline: none;
	background: transparent;
	color: #fff;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    background-color: #151618;
    border-radius: 16px;
    padding: 4px 8px;
    margin: 3px;
    max-width: 200px;
    overflow: hidden;
    color: #fff;
}

.user-badge img {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	margin-right: 5px;
	object-fit: cover;
	background-color: #c0d6e9;
}

.user-badge span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.badge-remove {
	margin-left: 5px;
	cursor: pointer;
	color: #666;
	font-size: 14px;
	font-weight: bold;
	transition: color 0.2s;
}

.badge-remove:hover {
	color: #e74c3c;
}

.users-dropdown {
	position: absolute;
	width: 100%;
	max-height: 300px;
	overflow-y: auto;
	background-color: #363738;
	border: 1px solid #363738;
	border-radius: 4px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	display: none;
	color: #fff;
	z-index: 100;
    margin-top: 8px;
}

.user-item {
	padding: 10px 12px;
	cursor: pointer;
	transition: background-color 0.2s;
	display: flex;
	align-items: center;
}

.user-item:hover {
	background-color: #292a2b;
}

.user-item img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	margin-right: 10px;
	object-fit: cover;
	/* background-color: #e0e0e0; */
}

.user-info {
	flex-grow: 1;
}

.user-name {
	font-weight: bold;
	margin-bottom: 2px;
}

.user-login {
	font-size: 14px;
	color: #b4aeae;
}

.selected-users {
	margin-top: 20px;
}

.selected-user {
	display: inline-flex;
	align-items: center;
	background-color: #e9f0f8;
	border-radius: 20px;
	padding: 5px 10px 5px 5px;
	margin: 0 10px 10px 0;
}

.selected-user img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	margin-right: 8px;
	object-fit: cover;
	background-color: #c0d6e9;
}

.remove-user {
	margin-left: 8px;
	cursor: pointer;
	color: #666;
	font-size: 18px;
	font-weight: bold;
	transition: color 0.2s;
}

.remove-user:hover {
	color: #e74c3c;
}

.loading {
	text-align: center;
	padding: 10px;
	color: #fff;
}

.no-results {
	padding: 15px;
	text-align: center;
	color: #fff;
}
        
        /* Стили для индикатора загрузки */
.spinner {
	width: 24px;
	height: 24px;
	border: 3px solid rgba(74, 144, 226, 0.3);
	border-radius: 50%;
	border-top-color: #4a90e2;
	animation: spin-user-search 1s ease-in-out infinite;
	margin: 0 auto;
}

@keyframes spin-user-search {
	to {
		transform: rotate(360deg);
	}
}
