.gift_card{
    cursor: pointer;
}
.giftcard_wrap{
    width: 100%;
}

/* head title */
.reward-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(45deg, #1037b9, #2575fc);
    color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.reward-title {
    font-size: 24px;
    font-weight: bold;
}

.reward-points {
    font-size: 20px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

/* end of head title */

/* button */
.button_wrap.earn_reward{
    flex-direction: column-reverse;
    gap: 30px;
}

.button_wrap.update_delete{
    gap: 15px;
}
/* end of button */

/* context content */
.gift_context_wrap{
    margin-left: 15px;
}
/* end of context content */

/* progress bar */

progress{
    width: 100%;
    max-width: 250px;
    height: 10px;
    border-radius: 8px;
    appearance: none;
    overflow:  hidden;
}

progress::-webkit-progress-bar{
    background: #ddd;
    border-radius: 8px;
}

progress::-webkit-progress-value{
    background: linear-gradient(90deg, #fff1f1, #61d4f7);
    transition: width 0.5s ease-in-out;
}

progress::-moz-progress-bar{
    background: linear-gradient(90deg, #fff1f1, #61d4f7);
    border-radius: 8px;
}

/* end of progress bar */

/* image */
.giftcard_image.wrap {
    width: 80px;  /* Giới hạn khuôn hình */
    height: 76px;
    overflow: hidden; /* Ẩn phần ảnh thừa */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.giftcard_image.content img {
    width: auto;
    height: 100%;
    object-fit: cover; /* Giữ khung ảnh nhưng không méo ảnh */
}

.reward-header h1{
    margin-bottom: unset !important;
}

.earn_reward{
    cursor: pointer;
}

.earn_reward:disabled{
    background: gray;
    border: gray;
    opacity: 1;
}

@media (max-width:480px) {
    .giftcard_wrap{
        flex-direction: column;
    }
    .context{
        flex-direction: column;
        margin-left: unset !important;
    }
    .button_wrap{
        flex-direction: row;
        justify-content: center;
        margin-top: 10px;
    }

    .giftcard_image{
        overflow: hidden;
    }

    .giftcard_image.wrap{
        width: 245px;
        height: 180px;
        overflow: hidden;
    }
    
    .reward-header{
        flex-direction: column;
        text-align: center;
    }
    .gift_name, .condition_point{
        text-align: center;
    }
}