/**
* 
* Module voucher
* @author - HILER
* 
* @link HLMod:   https://hlmod.net/members/hiler.77403/
* @link CsDevs:  https://csdevs.net/members/hiler.52/
* @link Discord: https://discordapp.com/users/252040667361050625 / hiler / HILER#3959
* 
*/

.popup_modal_vouchers {
    z-index: 4001;
}

.popup_voucher_block {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin: 0;
}

.popup_voucher_block input {
    width: 80%;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.popup_voucher_block button {
    border-radius: 12px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.popup_voucher_btn:hover {
    background-color: var(--span);
    outline: var(--transparent);
    color: var(--text-default);
}

.popup_voucher_block input:focus {
    outline: var(--transparent);
}

#container-voucher-items-inventory {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.popup_voucher_item {
    position: relative;
    background-color: var(--button);
    border-radius: 6px;
    width: 120px;
    height: 120px;
}

.popup_voucher_item_image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.popup_voucher_item_image img {
    width: 80px;
    pointer-events: none;
    user-select: none;
}

.popup_voucher_item_info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    line-height: 13px;
}

.popup_voucher_item_name {
    font-size: 12px;
    font-weight: 500;
}

.popup_voucher_item_desc {
    font-size: 10px;
    opacity: .5;
}

.popup_voucher_head {
    display: flex;
    gap: 8px;
    align-items: center;
}

.popup_voucher_modal_button {
    background-color: var(--button);
    border-radius: 50%;
    height: 24px;
    width: 24px;
    display: flex;
    justify-content: center;
}

.popup_voucher_modal_button svg {
    fill: var(--text-custom);
    width: 14px;
    opacity: .5;
    transition: transform 0.2s ease-in-out;
}

.popup_voucher_modal_button:hover svg {
    transform: rotate(90deg);
    opacity: 1;
}

.voucher_button_modalopen_1:hover {
    filter: brightness(1.2);
}

.popup_voucher_head_name {
    margin-bottom: 2px;
}

.popup_voucher_modal_content {
    display: flex;
    gap: 20px;
}

.popup_voucher_info_message {
    margin-top: -10px;
    max-width: 420px;
}

.popup_voucher_info_message span {
    color: var(--text-custom);
}

.popup_voucher_buttons {
    display: flex;
    justify-content: space-between;
}

.popup_voucher_button {
    border-radius: 8px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: .2s;
    user-select: none;
}

.popup_voucher_button:hover {
    filter: brightness(1.2);
}

.popup_voucher_button_green {
    background-color: rgb(128 244 138 / 10%);
    color: #9bf480;
}

.popup_voucher_button_red {
    background-color: rgb(255 32 80 / 10%);
    color: #ff2050;
}

.popup_voucher_vip_info {
    color: var(--text-custom);
    font-weight: bold;
}

.popup_voucher_server_choose {
    display: flex;
    margin-bottom: 10px;
}

.popup_modal_vouchers_show {
    overflow: visible;
}

#container-voucher-items-active ul {
    list-style: none;
    padding: 0;
    color: var(--text-custom);
}

#container-voucher-items-active ul li::before {
    content: "•";
    float: left;
    padding: 0 0.5em 0 0;
}

.popup_voucher_advertising_text {
    overflow: hidden;
    text-align: center;
    margin: 12px 0;
}

.popup_voucher_advertising_text::before {
    margin-left: -100%;
    left: -14px;
}

.popup_voucher_advertising_text::after {
    margin-right: -100%;
    right: -14px;
}

.popup_voucher_advertising_text::before,
.popup_voucher_advertising_text::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 35%;
    height: 2px;
    background-color: var(--bottom-line-table);
    position: relative;
}

.popup_voucher_button_advertising {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    color: var(--text-default);
    height: 40px;
    font-weight: 500;
    font-size: 15px;
}

.popup_voucher_button_vk {
    background-color: #1E90FF;
}

.popup_voucher_button_telegram {
    background-color: #24A1DE;
}

.popup_voucher_button_discord {
    background-color: #7289da;
}

.popup_voucher_button_youtube {
    background-color: #ff0000;
}

.popup_voucher_button_tiktok {
    background-color: #ff0050;
}

.popup_voucher_button_advertising svg {
    width: 20px;
    fill: var(--text-default);
}


.popup_voucher_custom_select {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 40px;
    cursor: pointer;
    user-select: none;
}

.popup_voucher_custom_option {
    padding: 0 30px 0 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    background: var(--button);
    border-top: #222 solid 1px;
    position: absolute;
    top: 0;
    width: 100%;
    pointer-events: none;
    order: 2;
    z-index: 1;
    transition: background .2s ease-in-out;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}

.popup_voucher_custom_option:hover {
    background: var(--button-hover);
}

.popup_voucher_custom_select:focus .popup_voucher_custom_option {
    position: relative;
    pointer-events: all;
}

.popup_voucher_custom_select input {
    opacity: 0;
    position: absolute;
    left: -99999px;
}

.popup_voucher_custom_select input:checked + label {
    order: 1;
    z-index: 2;
    background: var(--button);
    border-top: none;
    position: relative;
}
  
.popup_voucher_custom_select input:checked + label:after {
    content: '';
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    position: absolute;
    right: 10px;
    top: calc(50% - 2.5px);
    pointer-events: none;
    z-index: 3;
}
  
.popup_voucher_custom_select input:checked + label:before {
    content: '';
    position: absolute;
    right: 0;
    height: 40px;
    width: 40px;
}

.popup_voucher_custom_select input:checked {
    border-radius: 8px;
}

.popup_voucher_give_rewards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
