/* =========================================
   DOWNLOAD SLIDER
========================================= */

#slider2 {
    position: relative;

    width: 100%;
    height: 60px;

    background: #f5f5f5;

    border: 1px solid #e7e7e7;

    border-radius: 999px;

    overflow: hidden;

    user-select: none;

    box-sizing: border-box;

    touch-action: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}


/* =========================================
   SLIDE TEXT
========================================= */

#slider2 .slide-text {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 65px;

    box-sizing: border-box;

    color: #777;

    font-size: 14px;

    font-weight: 500;

    white-space: nowrap;

    pointer-events: none;

    transition:
        opacity 0.25s ease;
}


/* =========================================
   SLIDE BUTTON
========================================= */

#slideButton2 {
    position: absolute;

    top: 5px;
    left: 5px;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    border: none;

    background: #111;

    color: #fff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 18px;

    cursor: grab;

    touch-action: none;

    z-index: 2;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

#slideButton2:active {
    cursor: grabbing;
}


/* =========================================
   HOVER
========================================= */

#slideButton2:hover {
    background: #222;
}


/* =========================================
   COMPLETED
========================================= */

#slider2.completed {
    background: #f1f7f2;

    border-color: #d9ebdc;
}

#slider2.completed #slideButton2 {
    background: #198754;

    cursor: default;
}

#slider2.completed .slide-text {
    color: #198754;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    #slider2 {
        height: 58px;
    }

    #slideButton2 {
        width: 48px;
        height: 48px;

        top: 4px;
        left: 5px;
    }

    #slider2 .slide-text {
        font-size: 13px;
    }
}



/* =========================================================
   DOWNLOAD POPUP
========================================================= */

.download-pop {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-sizing: border-box;
}


/* =========================================================
   CARD
========================================================= */

.download-card {

    position: relative;

    width: min(430px, 100%);

    padding: 34px 28px 28px;

    background: #fff;

    border: 1px solid #e8e8e8;

    border-radius: 26px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.15);

    text-align: center;

    animation: downloadPopupIn 0.3s ease;

    box-sizing: border-box;
}


@keyframes downloadPopupIn {

    from {

        opacity: 0;

        transform:
            translateY(12px)
            scale(0.96);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.download-close {

    position: absolute;

    top: 14px;
    right: 14px;

    width: 32px;
    height: 32px;

    border: none;

    border-radius: 50%;

    background: #f4f4f4;

    color: #666;

    font-size: 21px;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: 0.2s ease;
}


.download-close:hover {

    background: #eaeaea;

    color: #111;

}


.download-close:active {

    transform: scale(0.9);

}


/* =========================================================
   ICON
========================================================= */

.download-icon {

    width: 62px;
    height: 62px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f5f5f5;

    color: #111;

    font-size: 24px;
}


/* =========================================================
   HEADING
========================================================= */

.download-card h2 {

    margin: 0;

    color: #111;

    font-size: 27px;

    font-weight: 650;

    letter-spacing: -0.6px;

}


.download-subtitle {

    margin: 9px 0 25px;

    color: #777;

    font-size: 14px;

    line-height: 1.5;

}


/* =========================================================
   INPUT SECTION
========================================================= */

.code-input-wrap {

    text-align: left;

}


.code-input-wrap label {

    display: block;

    margin-bottom: 8px;

    font-size: 12px;

    font-weight: 600;

    color: #555;

}


/* =========================================================
   INPUT BOX
========================================================= */

.code-input-box {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    box-sizing: border-box;

}


#receiveCode {

    width: 100%;

    height: 56px;

    padding: 0 48px 0 17px;

    border: 1px solid #dedede;

    border-radius: 15px;

    outline: none;

    background: #fafafa;

    color: #111;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 18px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-align: center;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;

}


#receiveCode::placeholder {

    color: #aaa;

    font-weight: 500;

}


#receiveCode:focus {

    background: #fff;

    border-color: #111;

    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.05);

}


/* =========================================================
   CLEAR
========================================================= */

.clear-code {

    position: absolute;

    right: 12px;

    width: 30px;
    height: 30px;

    border: none;

    border-radius: 50%;

    background: #ededed;

    color: #666;

    font-size: 19px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}


.clear-code:hover {

    background: #e2e2e2;

    color: #111;

}


/* =========================================================
   ERROR
========================================================= */

.code-error {

    display: none;

    margin-top: 8px;

    color: #c0392b;

    font-size: 12px;

}


.code-input-box.error #receiveCode {

    border-color: #d9534f;

    background: #fffafa;

}


.code-input-box.error {

    animation: inputShake 0.25s ease;

}


.code-error.show {

    display: block;

}


@keyframes inputShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }

}


/* =========================================================
   FIND BUTTON
========================================================= */

.find-transfer-btn {

    width: 100%;

    height: 54px;

    margin-top: 18px;

    border: none;

    border-radius: 15px;

    background: #111;

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.find-transfer-btn:hover {

    background: #222;

}


.find-transfer-btn:active {

    transform: scale(0.98);

}


.find-transfer-btn:disabled {

    opacity: 0.65;

    cursor: not-allowed;

}


.find-transfer-btn.loading i {

    animation: arrowSpin 0.7s linear infinite;

}


@keyframes arrowSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   HINT
========================================================= */

.download-hint {

    margin: 15px 0 0;

    color: #999;

    font-size: 11px;

    line-height: 1.4;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .download-pop {

        align-items: flex-end;

        padding: 0;

    }


    .download-card {

        width: 100%;

        padding: 30px 20px 24px;

        border-radius:
            26px 26px 0 0;

        animation:
            downloadSheetIn 0.3s ease;

    }


    @keyframes downloadSheetIn {

        from {

            opacity: 0;

            transform:
                translateY(100%);

        }

        to {

            opacity: 1;

            transform:
                translateY(0);

        }

    }


    .download-card h2 {

        font-size: 25px;

    }


    #receiveCode {

        font-size: 17px;

    }

}