

.card-giftcode{
    padding: 15px 20px 30px 20px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 10px;
}

.card-giftcode .card-body{
    padding:40px;
}

.card-giftcode .gift-icon{
    width:70px;
    height:70px;
    margin-right:20px;
    font-size:52px;
    color:#3b8f3f;
}

.card-giftcode .gift-title{
    line-height: 40px;
    display: flex;
    gap: 10px;
}
.card-giftcode .gift-title::before{
    display: inline-block;
    content: "";
    background: url("../imgs/icon-giftcode.png") center center no-repeat;
    background-repeat: cover;
    width: 40px;
    height: 40px;
}
.card-giftcode .form-label-flex{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.card-giftcode .form-label{
    color: #f7872c;
    font-size: 20px;
    gap: 10px;
    margin-bottom: 12px;
}

.card-giftcode .text{
    margin-right: 10px;
}

.card-giftcode .select-all-giftcode{
    display: inline-block;  
    color: #f8fafc;
    background: #0d6efd;
    border: 1px solid #065cdb;
    padding-left: 30px;
    padding-right: 30px;
    text-decoration: none;
    border-radius: 6px;
}

.card-giftcode .select-all-giftcode:hover, .card-giftcode .select-all-giftcode:active {
    background: #065cdb;
    border: 1px solid #0245aa;
}

.card-giftcode .history-giftcode{
    display: inline-block;  
    color: #f8fafc;
    background: #666;
    border: 1px solid #373737;
    padding-left: 30px;
    padding-right: 30px;
    text-decoration: none;
    border-radius: 6px;
}

.card-giftcode .history-giftcode:hover, .card-giftcode .history-giftcode:active {
    background: #373737;
    border: 1px solid #000000;
}

.card-giftcode .clear-giftcode{
    display: inline-block;  
    margin-left: 10px;
    color: #f8fafc;
    background: #f7872c;
    border: 1px solid #d76305;
    padding-left: 30px;
    padding-right: 30px;
}

.card-giftcode .clear-giftcode:hover, .card-giftcode .clear-giftcode:active {
    background: #d76305;
    border: 1px solid #974400;
}

.card-giftcode textarea{
    min-height:170px;
    resize:vertical;
    border-radius:10px !important;
    font-size:18px;
    padding:15px;
    box-shadow:none !important;
    
    background: #f8fafc;
    border: 2px solid #d6dde6;
}

.card-giftcode textarea:focus{
    border-color:#f7872c !important;
}

.card-giftcode .giftcode-title{
    margin-top: 15px;
}

.card-giftcode .giftcode-list{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

.card-giftcode .giftcode-item{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    min-width: 120px;      /* Có thể bỏ nếu không cần */
    max-width: 100%;
    padding: 12px 20px;

    white-space: nowrap;   /* Luôn 1 dòng */
    border-radius: 6px;

    background: #f8fafc;
    border: 1px solid #d6dde6;
    transition:.25s;

    color:#283547;
    font-size: 16px;
    cursor: pointer;
}

.card-giftcode .giftcode-item:hover:not(.disabled){
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(112, 109, 108, 0.25);
}

.card-giftcode .giftcode-item.disabled{
    pointer-events:none;
    background:#e3e3e3;
    color:#6f6f6f;
    border-color:#ddd;
    opacity:.7;
    text-decoration:line-through;
}

.character-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.character-card {
    position: relative;
    min-height: 72px;
    padding: 15px 48px 15px 16px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #d6dde6;
    border-radius: 8px;
    transition: border-color .2s, background .2s, transform .2s;
}
.character-card strong {
    display: block;
    margin-bottom: 7px;
    color: #283547;
    font: 700 14px "Be Vietnam Pro", sans-serif;
}
.character-card span {
    color: #748194;
    font-size: 16px;
}
.character-card i {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 18px;
    height: 18px;
    border: 1px solid #9ba7b5;
    border-radius: 50%;
    transform: translateY(-50%);
}
.character-card.selected {
    border-color: #b4873d;
    background: linear-gradient(90deg, rgba(180, 135, 61, .1), #fff);
    box-shadow: inset 3px 0 #b4873d;
}
.character-card.selected i {
    background: #b4873d;
    border: 5px solid #fff;
    box-shadow: 0 0 0 1px #b4873d;
}


@media screen and (max-width: 576px) {
    .card-giftcode{
        padding: 15px 15px 20px 15px;
    }
    .card-giftcode .card-body{
        padding: 0;
    }
    .character-list {
        grid-template-columns: 1fr;
    }
    .card-giftcode textarea{
        padding: 10px;
    }
    .card-giftcode .giftcode-item{
        width: 100%;
    }
    
}

#btnSubmit{
    padding-left: 30px;
    padding-right: 30px;
}

