/* =========================================================
   HEADER RECEIVE BLOCK
   ========================================================= */

#header .hitek-receive-block {
    margin-right: 9px;
    padding: 7px 10px;
    border: 1px solid var(--hr-header-border-dark);
    border-radius: 15px;
}

#headerfixed .hitek-receive-block {
    margin-right: 9px;
    padding: 11px;
    border: 1px solid var(--hr-header-border-light);
    border-radius: 15px;
}

.hitek-receive {
    margin: 0;
    padding: 0;
}

.hitek-receive__wrap {
    display: flex;
    align-items: flex-start;
    gap: 6px;

    line-height: 1.1;
    white-space: nowrap;

    cursor: pointer;
}

#mobileheader .hitek-receive__wrap {
    align-items: center;
}

/* Icon */

.hitek-receive__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 19px;
    width: 20px;
    height: 20px;

    color: var(--hr-accent);
}


/* Content */

.hitek-receive .hitek-receive__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hitek-receive .hitek-receive__label {
    margin: 0;

    color: var(--hr-header-muted);

    font-size: 11px;
    font-weight: 500;
    line-height: 13px;
}

.hitek-receive .hitek-receive__value {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding-right: 0;

    color: var(--hr-header-text);

    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: .5px;

    white-space: nowrap;
}

.hitek-receive__value:hover {
    color: var(--hr-accent);
}


/* Arrow */

.hitek-receive__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 8px;
    height: 8px;

    margin-top: 1px;

    color: currentColor;
}


/* SVG */

.hitek-receive svg {
    display: block;
}

.hitek-receive svg path,
.hitek-receive svg circle,
.hitek-receive svg rect {
    stroke: currentColor;
}


/* =========================================================
   HEADER LOADER
   ========================================================= */

.hitek-receive__loader {
    display: none;
    align-items: center;
    justify-content: center;

    min-width: 127px;
    height: 31px;
}

.hitek-receive__loader img {
    display: block;

    width: 22px;
    height: 22px;

    object-fit: contain;

    animation: hitekReceiveLogoSpin 1.2s linear infinite;
    transform-origin: center center;
}

.hitek-receive__wrap.is-loading .hitek-receive__icon,
.hitek-receive__wrap.is-loading .hitek-receive__content {
    display: none;
}

.hitek-receive__wrap.is-loading .hitek-receive__loader {
    display: inline-flex;
}

@keyframes hitekReceiveLogoSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   MODAL
   ========================================================= */

.hitek-receive-modal {
    display: none;
}

.hitek-receive-modal.is-open {
    display: block;
}

body.hitek-modal-open {
    overflow: hidden;
}


/* Overlay */

.hitek-receive-modal__overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;

    background: var(--hr-overlay);
}


/* Box */

.hitek-receive-modal__box {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;

    display: flex;
    flex-direction: column;

    width: 498px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 80px);

    padding: 28px;

    overflow: hidden;

    transform: translate(-50%, -50%);

    background: var(--hr-surface);
    border-radius: 18px;

    box-shadow: var(--hr-shadow-modal);
}


/* Close */

.hitek-receive-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;

    padding: 0;

    border: 0;
    background: transparent;

    color: var(--hr-text-muted);

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition: color .15s ease;
}

.hitek-receive-modal__close:hover {
    color: var(--hr-text);
}


/* Title */

.hitek-receive-modal__title {
    margin-bottom: 8px;

    color: var(--hr-text);

    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}


/* Subtitle */

.hitek-receive-modal__subtitle {
    margin-bottom: 20px;

    color: var(--hr-text-secondary);

    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   MODAL SCREENS
   ========================================================= */

.hitek-receive-modal__screen {
    display: none;
    min-height: 0;
}

.hitek-receive-modal__screen.is-active {
    display: flex;
    flex-direction: column;
    min-height: 0;
}


/* =========================================================
   METHOD ITEMS
   ========================================================= */

.hitek-receive-modal__items {
    display: grid;
    gap: 12px;
}

.hitek-receive-modal__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    width: 100%;

    padding: 16px;

    border: 1px solid var(--hr-border-soft);
    border-radius: 14px;

    background: var(--hr-surface);

    text-align: left;

    cursor: pointer;

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

.hitek-receive-modal__item:hover {
    border-color: var(--hr-accent);
}

.hitek-receive-modal__item.active {
    border-color: rgba(201, 174, 78, .72);
    background: var(--hr-accent-soft);
    box-shadow: none;
}

.hitek-receive-modal__item:hover {
    border-color: rgba(201, 174, 78, .55);
    background: rgba(201, 174, 78, .035);
}

.hitek-receive-modal__item.active:hover {
    border-color: var(--hr-accent);
    background: var(--hr-accent-soft);
}

/* Method icon */

.hitek-receive-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    color: var(--hr-accent);
}

.hitek-receive-modal__icon svg {
    display: block;
}


/* Method content */

.hitek-receive-modal__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hitek-receive-modal__name {
    color: var(--hr-text);

    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.hitek-receive-modal__text {
    color: var(--hr-text-secondary);

    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   MODAL BACK
   ========================================================= */

.hitek-receive-modal__back {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;

    width: fit-content;

    margin: 0 0 18px;
    padding: 0;

    border: 0;
    background: transparent;

    color: var(--hr-text-muted);

    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0;

    cursor: pointer;

    transition: color .15s ease;
}

.hitek-receive-modal__back:hover {
    color: var(--hr-text);
}

.hitek-receive-modal__back-text {
    margin-bottom: 2px;
}

.hitek-receive-modal__back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 15px;

    width: 15px;
    height: 12px;

    color: var(--hr-text-muted);

    transition:
        color .15s ease,
        transform .15s ease;
}

.hitek-receive-modal__back-icon svg {
    display: block;

    width: 15px;
    height: 12px;
}

.hitek-receive-modal__back-icon path {
    fill: currentColor;
    stroke: none;
}

.hitek-receive-modal__back:hover .hitek-receive-modal__back-icon {
    color: var(--hr-text);
    transform: translateX(-2px);
}


/* =========================================================
   SUBMIT
   ========================================================= */

.hitek-receive-modal__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 8px 14px;

    border: unset !important;
    border-radius: 10px;

    background: var(--hr-surface-soft) !important;
    color: var(--hr-text-secondary) !important;

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease,
        transform .15s ease;
}

.hitek-receive-modal__submit:hover {
    background: var(--hr-surface-soft-hover) !important;
    color: var(--hr-text) !important;
}


/* =========================================================
   STORES LIST
   ========================================================= */

.hitek-receive-modal__stores {
    display: grid;
    gap: 10px;

    margin-top: 4px;
    padding-right: 6px;

    max-height: min(420px, calc(100vh - 280px));

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: var(--hr-scrollbar) transparent;
}


/* WebKit scrollbar */

.hitek-receive-modal__stores::-webkit-scrollbar {
    width: 7px;
}

.hitek-receive-modal__stores::-webkit-scrollbar-track {
    background: transparent;
}

.hitek-receive-modal__stores::-webkit-scrollbar-thumb {
    background: var(--hr-scrollbar);
    border-radius: 10px;
}

.hitek-receive-modal__stores::-webkit-scrollbar-thumb:hover {
    background: var(--hr-scrollbar-hover);
}


/* =========================================================
   STORE
   ========================================================= */

.hitek-receive-modal__store {
    display: block;

    width: 100%;

    padding: 14px;

    border: 1px solid var(--hr-border);
    border-radius: 12px;

    background: var(--hr-surface);

    text-align: left;

    cursor: pointer;

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

.hitek-receive-modal__store:hover {
    border-color: rgba(201, 174, 78, .55);
    background: rgba(201, 174, 78, .035);
}


/* Store title */

.hitek-receive-modal__store-title {
    display: block;

    color: var(--hr-text);

    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}


/* Store address */

.hitek-receive-modal__store-address {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    margin-top: 4px;

    color: var(--hr-text-secondary);

    font-size: 13px;
    line-height: 1.35;
}


/* Store schedule */

.hitek-receive-modal__store-schedule {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    margin-top: 3px;

    color: var(--hr-text-secondary);

    font-size: 12px;
    line-height: 1.35;
}


/* Store meta icons */

.hitek-receive-modal__store-address-icon,
.hitek-receive-modal__store-schedule-icon {
    flex: 0 0 14px;

    margin-top: 1px;

    color: var(--hr-accent);
}

.hitek-receive-modal__store-address-icon svg,
.hitek-receive-modal__store-schedule-icon svg {
    display: block;

    width: 15px;
    height: 15px;
}


/* =========================================================
   STORES DIVIDER
   ========================================================= */

.hitek-receive-modal__stores-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 12px 0 8px;

    color: var(--hr-text-muted);
}

.hitek-receive-modal__stores-divider-line {
    flex: 1 1 auto;

    height: 1px;

    background: var(--hr-border);
}

.hitek-receive-modal__stores-divider-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    flex: 0 0 auto;

    color: var(--hr-text-muted);

    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;

    white-space: nowrap;
}

.hitek-receive-modal__stores-divider-icon {
    display: inline-flex;

    color: var(--hr-text-muted);
}

.hitek-receive-modal__stores-divider-icon svg {
    display: block;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .hitek-receive-modal__box {
        width: calc(100vw - 24px);

        padding: 24px 18px;

        border-radius: 16px;
    }

    .hitek-receive-modal__title {
        font-size: 20px;
    }

    .hitek-receive-modal__stores {
        padding-right: 4px;

        max-height: min(420px, calc(100vh - 250px));
    }

    .hitek-receive-modal__store {
        padding: 13px;
    }
}