:root {
    --colums: 1;
}
@media (min-width: 601px) {
    :root {
        --colums: 2;
    }
}
@media (min-width: 1024px) {
    :root {
        --colums: 3;
    }
}
.affiliatetool-form {
    position: relative;
}
.affiliate-tool-error {
    color: red;
    display: none;
}
.affiliate-tool-input-wrap {
    position: relative;
    font-size: 15px;
    margin-bottom: 15px;
}
.affiliate-tool-input-wrap input {
    width: 100%;
    padding: 15px 85px 15px 15px;
    border: 1px solid #ccc;
    outline: 0;
    color: #797979;
    appearance: none;
    box-sizing: border-box;
    background-color: transparent;
}
.affiliate-tool-input-wrap button {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    color: #797979;
    height: 35px;
    padding: 8px 10px;
    border-radius: 4px;
    background-color: transparent;
}
.affiliate-tool-input-wrap button svg {
    fill: #797979;
    margin-right: 2%;
}
.affiliate-tool-input-wrap button:last-child {
    display: none;
}
.affiliatetool-form .open_app {
    display: none;
}

.coupon-list-card {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.coupon-card {
    padding: 0.5rem;
    width: calc(100% / var(--colums));
    box-sizing: border-box;
}
.coupon-info-wrapper {
    padding: 0 1rem 1rem;
    background-color: #eee;
    border-radius: 8px;
}

.coupon-info {
    display: flex;
    padding: 1rem .5rem;
}

.coupon-name {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #0a3d62;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 0;
    cursor: pointer;
}
.coupon-name > p{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
            line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 20px;
}

.coupon-content {
    margin-top: auto;
    position: relative;
    border-top: 3px dashed #fff;
    padding: 1rem .5rem 0;
}

.coupon-image {
    margin-right: 0.5rem;
    border-radius: 50%;
    border: 1px solid #d0d5dd;
    width: 60px;
    height: 60px;
}
.coupon-image img {
    margin: 5px;
    width: 50px;
    height: 50px;
    max-width: initial;
    object-fit: contain;
    border-radius: 50%;
}

.coupon-card-circle {
    background-color: #fff;
    width: 15px;
    height: 25px;
    position: absolute;
}

.coupon-card-circle-right {
    top: -15px;
    left: -20px;
    border-radius: 0 100% 100% 0;
}

.coupon-card-circle-left {
    top: -15px;
    right: -20px;
    border-radius: 100% 0 0 100%;
}

.coupon-progress {
    display: flex;
    align-items: center;
    padding: .5rem 0 0;
    justify-content: space-between;
    font-size: 14px;
    color: #616161;
}

.coupon-content>p {
    color: #616161;
    font-size: 14px;
    margin-bottom: .2rem;
}

.coupon-expired p {
    font-size: 13px;
    margin-bottom: .5rem;
}

.coupon-expired p:last-child b {
    color: #ef6820;
}
.coupon-action {
    display: flex;
    justify-content: space-between;

    padding: 0 .5rem;
}
.coupon-action a:last-child {
    background-color: #ef6820;
    padding: .2rem 2rem;
    color: #fff;
    text-decoration: none;
    border-radius: 4pt;
    margin-left: 15px;
    text-align: center;
}

.coupon-action a {
    width: 100%;
}
.coupon-pagination {
    display: flex;
    justify-content: flex-end;
}
/* pagination */
.affiliate-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.affiliate-pagination a,
.affiliate-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.affiliate-pagination a:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.affiliate-pagination .active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.affiliate-pagination .pagination-dots {
    background: none;
    border: none;
    color: #64748b;
}

.affiliate-pagination .pagination-prev,
.affiliate-pagination .pagination-next {
    padding: 0 8px;
}

.affiliate-pagination .pagination-prev svg,
.affiliate-pagination .pagination-next svg {
    width: 16px;
    height: 16px;
}

.affiliate-pagination .pagination-prev:hover,
.affiliate-pagination .pagination-next:hover {
    background: #f8fafc;
}

@media (max-width: 640px) {
    .affiliate-pagination {
        gap: 4px;
    }
    
    .affiliate-pagination a,
    .affiliate-pagination span {
        padding: 0 2px;
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .affiliate-pagination .pagination-prev, .affiliate-pagination .pagination-next {
        padding: 0 4px;
    }
}
/* voucher mostbrand */
.voucher-mostbrand {
    background-color: #eee;
    padding: 16px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0px 0px 1px 1px rgba(61, 63, 64, 0.05);
    margin-bottom: 16px;
}

.voucher-mostbrand>.title {
    font-size: 14px;
    color: #3D3F40;
    font-weight: bold;
    margin-bottom: 14px;
    display: block;
}

.listbrand-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 100%;
}

.listbrand-item .item-brand {
    margin-right: 16px;
    cursor: pointer;
}

.listbrand-item .item-brand img {
    height: 100px;
    width: 100px;
    object-fit: contain;
    max-width: initial;
}

.listbrand-item .item-brand p {
    background: transparent;
    border-radius: 0px;
    padding: 2px;
    margin-top: 4px;
    margin-bottom: 0px !important;
    font-size: 12px;
    line-height: 18px;
    color: #899296;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    -webkit-box-flex: 1;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.listbrand-item .item-brand p.coupons_count {
    padding: 0;
    margin: 0;
    text-align: center;
    font-weight: bold;
}

.listbrand-item .item-brand:last-child {
    margin-right: 0;
}

.listbrand-item .item-brand span {
    background: transparent;
    border-radius: 8px;
    padding: 2px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 18px;
    color: #899296;
    text-align: center;

    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.listbrand-item .item-brand:hover p,
.listbrand-item .item-brand.active p {
    background: #6C5CE7;
    color: #fff;
}
.voucher-dealcoupon {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0px 0px 1px 1px rgba(61, 63, 64, 0.05);
}
.title-tabs {
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-bottom: 1px solid #E5EBED;
    padding: 9px 16px 8px;
}

.title-tabs .title-total {
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.title-tabs .title-total .title {
    color: #3D3F40;
    font-size: 14px;
    font-weight: bold;
    margin-left: 8px;
    text-transform: uppercase;
    line-height: 20px;
}