/* Extra small devices (phones, 50px and up) */
@media (min-width: 50px) {
    /* CSS rules for extra small devices */

    #withdraw-modal-container {
        display: none; /* Hidden by default */
        /* Stay in place */
        position: fixed; 
        left: 0;
        top: 0;
        z-index: 1; /* Sit on top */
        width: 100%; 
        height: 100%;
        padding: 0 0.8rem;
        /* Enable scroll if needed */
        /* overflow: auto;   */
        background-color: var(--modal-background);
    }
    
    .withdraw-modal-bg {
        margin-top: 1rem;
        display: flex;
        width: 100%; 
        width: 100%; 
        height: 8.8rem; 
        background-image: url('../image/ppx7_status_modal_mobile_bg.webp');
        justify-content: center;
        align-items: center;
    }
    
    #withdraw-modal-close-button {
        height: 0.6rem;
        width: 0.6rem;
        float: right;
        position: absolute;
        top: 1.4rem;
        right: 1.8rem;
        background-image: url("../image/ppx7_close_icon.webp");
    }
    
    .withdraw-modal-content-container {
        /* centered */
        margin: 0 auto; 
        height: 8.5rem;
        width: 7rem;
        padding: 0.2rem;
    }
    
    .withdraw-modal-top-content-container {
        height: 30%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding:0 0.6rem;
    }
    
    .withdraw-modal-body-content-container {
        height: 50%;
        width: 100%;
        padding: 0.1rem;
    }
    
    .withdraw-modal-body-text {
        text-align: center;
        color: var(--text-yellow);
        font-size: var(--small-font-size);
        font-weight: var(--light-font-weight);
        line-height: 1.5; /* Adjust this value to add space between lines */
    }
    
    .withdraw-modal-body-amount-container {
        display: flex;
        flex: 1;
        flex-direction: row;
        padding: 0.2rem 0;
        justify-content: center;
        align-items: center;
        gap: 0.2rem;
        margin-bottom: 0.2rem;
    }

    .amount-text {
        font-size: var(--great-medium-font-size);
        color: var(--text-yellow);
        font-weight: var(--bold-font-weight);
    }
    
    .withdraw-modal-steps-container {
        display: flex;
        justify-content: space-evenly;
        flex-direction: column;
        height: 2rem;
        padding: 0.1rem;
        background-color: var(--black-transparent-color);
        border-radius: 0.2rem;
    }
    
    .step {
        display: flex;
        flex-direction: row;
        height: 33.33%;
        position: relative;
        gap: 0.1rem;
        padding: 0 0.05rem;
    }
    
    /* .step:last-child {
        border-left: 2px solid transparent;
    } */
    
    .step-header {
        display: flex;
        align-items: center;
        cursor: pointer;
    }
    
    .step-number {
        background-color: #ddd;
        border-radius: 50%;
        width: 0.4rem;
        height: 0.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0.05rem;
        position: relative;
        flex-shrink: 0;
    }
    
    .step-content {
        padding: 0.2rem 0.05rem;
        display: flex;
        align-items: center;
    }

    .step-2-content {
        display: flex;
        flex-direction: row;
        gap: 0.05rem;
        /* Prevents text from wrapping to the next line */
        white-space: nowrap; 
    }
    
    .step-content-text {
        color: var(--text-grey);
        font-size: var(--small-font-size);
        font-weight: var(--light-font-weight);
    }

    .withdraw-currency-symbol {
        font-size: var(--small-font-size);
        font-weight: var(--bold-font-weight);
        color: var(--text-yellow);
    }

    .step-content-amount-text {
        color: var(--text-yellow);
        font-size: var(--small-font-size);
        font-weight: var(--bold-font-weight);
    }
    
    .step.active .step-number {
        background-color: #1890ff;
        color: #fff;
    }
    
    /* .step.active .step-content {
        display: block;
    } */
    
    .step.completed .step-number {
        background: url("../image/ppx7_tick.webp") no-repeat center center;
        background-size: contain;
        color: transparent; /* Hide the text number */
    }
    
    .complete-step {
        background-color: red;
    }
    
    .withdraw-modal-bottom-content-container {
        height: 20%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #withdraw-share-button {
        height: 1rem;
        width: 100%;
        background-color: rgb(19,73,53);
        border-radius: 0.3rem;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        border: 0.01rem solid var(--text-grey)
    }
    
    .withdraw-modal-title-text {
        text-align: center;
        color: var(--text-white);
        font-size: var(--great-medium-font-size);
        font-weight: var(--bold-font-weight);
    }
}

/* Medium devices (small laptops, 768px and up) */
@media (min-width: 768px) {
    /* CSS rules for medium devices */

    .withdraw-modal-bg {
        display: flex;
        align-self: center;
        width: 100%; 
        height: 4rem; 
        background-image: url('../image/ppx7_status_modal_desktop_bg.webp');
        justify-content: center;
        align-items: center;
    }

    #withdraw-modal-close-button {
        height: 0.2rem;
        width: 0.2rem;
        float: none;
        position: absolute;
        top: 1.15rem;
        right: 3rem;
        z-index: 2;
        background-image: url("../image/ppx7_close_icon.webp");
    }

    .withdraw-modal-content-container {
        height: 100%;
        width: 44%;
        padding: 0.05rem;
    }

    .withdraw-modal-top-content-container {
        height: 20%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding:0 0.1rem;
    }

    .withdraw-modal-title-text {
        text-align: center;
        color: var(--text-white);
        font-size: var(--extra-small-font-size);
        font-weight: var(--bold-font-weight);
    }

    .withdraw-modal-body-content-container {
        height: 60%;
        width: 100%;
        padding: 0.1rem;
    }

    .withdraw-modal-body-text {
        text-align: center;
        color: var(--text-yellow);
        font-size: var(--great-mini-font-size);
        font-weight: var(--light-font-weight);
        line-height: 1; /* Adjust this value to add space between lines */
    }

    .withdraw-modal-body-amount-container {
        display: flex;
        flex: 1;
        flex-direction: row;
        padding: 0.1rem 0;
        justify-content: center;
        align-items: center;
        gap: 0.1rem;
        margin-bottom: 0.1rem;
    }

    .amount-text {
        font-size: var(--small-font-size);
        color: var(--text-yellow);
        font-weight: var(--bold-font-weight);
    }

    .withdraw-modal-steps-container {
        display: flex;
        justify-content: space-evenly;
        flex-direction: column;
        height: 1.3rem;
        padding: 0.05rem;
        background-color: var(--black-transparent-color);
        border-radius: 0.1rem;
    }

    .step {
        padding: 0 0.05rem;
    }

    .step-number {
        background-color: #ddd;
        border-radius: 50%;
        width: 0.15rem;
        height: 0.15rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0.02rem;
        position: relative;
        flex-shrink: 0;
        font-size: var(--mini-font-size);
    }

    .step-content {
        padding: 0.1rem 0.02rem;
        display: flex;
        align-items: center;
    }

    .step-2-content {
        display: flex;
        flex-direction: row;
        gap: 0.05rem;
    }
    
    .step-content-text {
        color: var(--text-grey);
        font-size: var(--great-mini-font-size);
        font-weight: var(--light-font-weight);
    }

    .withdraw-currency-symbol {
        color: var(--text-yellow);
        font-size: var(--great-mini-font-size);
        font-weight: var(--bold-font-weight);
    }

    .step-content-amount-text {
        color: var(--text-yellow);
        font-size: var(--great-mini-font-size);
        font-weight: var(--bold-font-weight);
    }

    .withdraw-modal-bottom-content-container {
        height: 20%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #withdraw-share-button {
        height: 80%;
        border-radius: 0.1rem;
    }
}