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

#voucher-admin-toolbar.hide {
    display: none;
}

#voucher-admin-actions button {
    flex: 1;
}

.voucher-code-wrap {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.voucher-code,
.voucher-code svg {
    transition: .2s;
}

.voucher-code svg {
    width: .9rem;
    height: .9rem;
    flex-shrink: 0;
    fill: var(--text-secondary);
}

.voucher-code:hover,
.voucher-code:hover svg {
    color: var(--span);
    fill: var(--span);
}

.voucher-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--orange, #e6a23c);
    cursor: help;
}

.voucher-lock svg {
    width: .85rem;
    height: .85rem;
    fill: currentColor;
}

.voucher-modal__code-row {
    display: flex;
    gap: .3rem;
    align-items: center;
}

.voucher-modal__code-row input {
    flex: 1;
    min-width: 0;
}

.voucher-modal__datetime {
    position: relative;
}

.voucher-modal__datetime input[type="datetime-local"] {
    width: 100%;
    padding-right: 2.5rem;
}

.voucher-modal__datetime input::-webkit-calendar-picker-indicator {
    opacity: 0;
    pointer-events: none;
}

.voucher-modal__datetime-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    transition: .2s;
    background-color: var(--button);
    border: 1px solid var(--bottom-line-table);
}

.voucher-modal__datetime-btn:hover {
    background-color: var(--button-hover);
}

.voucher-modal__datetime-btn svg {
    width: 12px;
    height: 12px;
    fill: var(--text-custom);
}

#popupAdminVoucher #inventoryItems {
    max-height: 360px;
    overflow: auto;
}

.voucher-settings__code-preview {
    display: flex;
    align-items: center;
    border-radius: var(--br-8);
    background: var(--input-form);
    color: var(--text-custom);
    letter-spacing: .02em;
    height: var(--input-height);
    padding-inline: 1rem;
}

.voucher-settings__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
    width: 100%;
}

.voucher-settings__options .inputs-inline {
    margin: 0;
    min-width: 0;
}

.voucher-settings__options--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.voucher-activate {
    z-index: 4001;
}

.voucher-activate__head {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.voucher-activate__title {
    line-height: 1.2;
    transition: opacity .12s ease;
}

.voucher-activate__title.is-fade {
    opacity: 0;
}

.voucher-activate__admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--button);
    flex-shrink: 0;
    transition: .2s;
}

.voucher-activate__admin svg {
    width: .875rem;
    height: .875rem;
    fill: var(--text-custom);
    opacity: .55;
    transition: .2s;
}

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

.voucher-activate__admin:hover svg {
    opacity: 1;
    transform: rotate(90deg);
}

.voucher-activate__form {
    margin: 0;
}

.voucher-activate__field {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: var(--br-8);
    overflow: hidden;
    background: var(--button);
    border: 1px solid var(--transparent-5-w);
    transition: border-color .2s, box-shadow .2s;
    margin-bottom: 1px;
}

.voucher-activate__field button:disabled,
.voucher-activate__field button:disabled:hover {
    background-color: var(--button);
}

.voucher-activate__input {
    flex: 1 1 auto;
    outline: none !important;
}

.voucher-activate__input:focus,
.voucher-activate__input:focus-visible,
.voucher-activate__input:active {
    outline: none !important;
}

.voucher-activate__submit {
    flex: 0 0 auto;
}

.voucher-activate__submit:hover {
    background-color: unset;
}

.voucher-activate__submit:focus {
    border: 1px solid transparent;
}

.voucher-activate__submit.is-loading {
    pointer-events: none;
}

.voucher-activate__promo-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .85rem 0;
    color: var(--text-custom);
    text-align: center;
    white-space: nowrap;
}

.voucher-activate__promo-title::before,
.voucher-activate__promo-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--transparent-5-w);
}

.voucher-activate__promo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    height: 2.5rem;
    border-radius: 8px;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--text-default);
    text-decoration: none;
    transition: .2s;
    user-select: none;
}

.voucher-activate__promo-link:hover {
    filter: brightness(1.08);
    color: var(--text-default);
}

.voucher-activate__promo-link--vk {
    background: #1e90ff;
}

.voucher-activate__promo-link--telegram {
    background: #24a1de;
}

.voucher-activate__promo-link--discord {
    background: #7289da;
}

.voucher-activate__promo-link--youtube {
    background: #ff0000;
}

.voucher-activate__promo-link--tiktok {
    background: #ff0050;
}

.voucher-activate__switches {
    display: flex;
    gap: .4rem;
    margin-top: .75rem;
}

.voucher-activate__switch {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    height: 2.5rem;
    border-radius: 8px;
    background: var(--transparent-5-w);
    color: var(--text-custom);
    font-weight: 500;
    transition: .2s;
}

.voucher-activate__switch:hover {
    background: var(--button-hover);
    color: var(--text-default);
}

.voucher-my-codes {
    max-height: min(50vh, 22rem);
    overflow: auto;
}

.voucher-my-codes .table-responsive {
    margin: 0;
}

.voucher-my-codes table {
    width: 100%;
}

.voucher-my-codes .no-data {
    margin: .5rem 0;
}

.voucher-activate__body {
    position: relative;
    overflow: hidden;
    transition: height .2s ease;
}

.voucher-activate__view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease;
    will-change: opacity, transform;
}

.voucher-activate__view.hide {
    display: none;
}

.voucher-activate__view.is-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    pointer-events: none;
}

.voucher-activate__view.is-leave {
    opacity: 0;
    transform: translateY(-.4rem);
}

.voucher-activate__view.is-enter {
    opacity: 0;
    transform: translateY(.5rem);
}

.voucher-activate__view.is-enter-active {
    opacity: 1;
    transform: translateY(0);
}

.voucher-create-form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.voucher-create-form__hint {
    color: var(--text-secondary);
    font-size: .875rem;
}

.voucher-create-preview {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: .85rem 1rem;
    border-radius: var(--br-8);
    background: var(--transparent-5-w);
}

.voucher-create-preview__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    font-size: .9375rem;
    color: var(--text-secondary);
}

.voucher-create-preview__row strong {
    color: var(--text-default);
    font-weight: 600;
    white-space: nowrap;
}

.voucher-create-preview__row--total {
    padding-top: .35rem;
    border-top: 1px solid var(--transparent-5-w);
    color: var(--text-default);
}

.voucher-create-preview__row--total strong {
    color: var(--money);
}

.voucher-create-buttons {
    display: flex;
    gap: .4rem;
}

.voucher-create-buttons--my-codes {
    margin-top: .75rem;
}

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

.voucher-reward {
    z-index: 4002;
}

.voucher-reward__title {
    line-height: 1.2;
}

.voucher-reward__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voucher-reward__grid {
    max-height: min(60vh, 26rem);
    overflow: auto;
}

.voucher-reward__item {
    cursor: default;
}

.voucher-reward__balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--br-8);
    background: var(--money-bg);
    height: var(--input-height);
    padding-inline: 1rem;
}

.voucher-reward__balance-title,
.voucher-reward__balance-amount {
    color: var(--money);
}

.voucher-reward__balance-title {
    font-size: var(--font-size-m);
    opacity: .85;
}

.voucher-reward__balance-amount {
    font-size: var(--font-size-default);
    font-weight: 700;
    white-space: nowrap;
}

.voucher-reward__footer {
    margin-top: .85rem;
}

.voucher-reward__footer.hide {
    display: none;
}

.voucher-reward__inventory-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.voucher-log-ip {
    display: inline-block;
    filter: blur(4px);
    transition: filter .2s ease;
    cursor: default;
    user-select: none;
}

.voucher-log-ip:hover {
    filter: none;
    user-select: text;
}

.voucher-my-codes__table {
    color: var(--text-secondary);
    font-size: var(--font-size-s);
}