.apply-coupon {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px dashed rgba(var(--coupon-light-text), 1);
    background-color: rgba(var(--coupon-box-bg), 1);
    border-radius: 10px;
}

.apply-coupon .coupon-code {
    color: rgba(var(--coupon-success-color), 1);
    padding-top: 5px;
}

.apply-coupon i {
    color: rgba(var(--coupon-light-text), 1);
    font-size: 20px;
}


/*=====================
    voucher CSS start
==========================*/

.coupon-box {
    position: relative;
    display: flex;
    height: 100%;
    overflow: hidden;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.06);
}

.coupon-box .coupon-left {
    position: absolute;
    left: 0;
    top: 50%;
    height: 111%;
    transform: translateY(-50%);
}

[dir=rtl] .coupon-box .coupon-left {
    left: unset;
    right: -1px;
    transform: translateY(-50%) scaleX(-1);
}

.coupon-box .coupon-right {
    position: absolute;
    right: 0;
    top: 50%;
    height: 111%;
    transform: translateY(-50%);
}

[dir=rtl] .coupon-box .coupon-right {
    right: unset;
    left: -1px;
    transform: translateY(-50%) scaleX(-1);
}

.coupon-box .coupon-discount {
    position: relative;
    writing-mode: vertical-rl;
    text-align: center;
    padding: calc(15px + 5 * (100vw - 320px) / 1600);
    color: rgb(255, 255, 255);
    font-size: calc(14px + 2 * (100vw - 320px) / 1600);
}

.coupon-box .coupon-discount::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -7px;
    width: 15px;
    height: 15px;
    border-radius: 100%;
    background-color: rgba(var(--coupon-white), 1);
    transform: translateY(-50%);
}

[dir=rtl] .coupon-box .coupon-discount::after {
    left: -7px;
    right: unset;
}

.coupon-box .coupon-discount.color-1 {
    background-color: rgba(var(--coupon-light-text), 1);
}

.coupon-box .coupon-discount.color-2 {
    background-color: rgb(30, 60, 110);
}

.coupon-box .coupon-discount.color-3 {
    background-color: rgb(173, 110, 51);
}

.coupon-box .coupon-discount.color-4 {
    background-color: rgb(123, 51, 157);
}

.coupon-box .coupon-details {
    width: calc(100% - 53px);
    padding: 0 calc(20px + 5 * (100vw - 320px) / 1600) 0 calc(15px + 10 * (100vw - 320px) / 1600);
}

.coupon-box .coupon-details .coupon-content {
    padding: calc(10px + 10 * (100vw - 320px) / 1600) 0 0;
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.coupon-box .coupon-details .coupon-content .coupon-name {
    display: flex;
    gap: 10px;
}

.coupon-box .coupon-details .coupon-content .coupon-name .coupon-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    padding: 7px;
    background-color: rgba(var(--coupon-box-bg), 1);
    border-radius: 8px;
}

.coupon-box .coupon-details p {
    margin: 0;
    padding: 0;
    color: rgba(var(--coupon-light-text), 1);
    padding: 10px 0;
    border-bottom: 1px dashed rgba(var(--coupon-dashed-line), 1);
}

.coupon-box .coupon-details p span {
    color: rgba(var(--coupon-dark-text), 1);
    font-weight: 500;
}

.coupon-box .coupon-details .coupon-apply {
    padding: calc(10px + 10 * (100vw - 320px) / 1600) 0;
    display: flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-box .coupon-details .coupon-apply .unlock {
    width: 65%;
    color: rgba(var(--coupon-dark-text), 1);
}

.voucher-box {
    position: relative;
    background: rgba(var(--coupon-white), 1);
    border: 1px solid rgba(var(--coupon-black), 0.05);
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.voucher-box::after {
    content: "";
    position: absolute;
    width: 21px;
    height: 21px;
    border-radius: 100%;
    background: rgba(var(--coupon-white), 1);
    left: -12px;
    bottom: 25%;
    box-shadow: inset 0px 2px 12px 0px rgb(217, 217, 217);
    z-index: 1;
    display: block;
}

[dir=rtl] .voucher-box::after {
    right: -12px;
    left: unset;
}

.voucher-box::before {
    content: "";
    position: absolute;
    width: 21px;
    height: 21px;
    border-radius: 100%;
    background: rgba(var(--coupon-white), 1);
    right: -12px;
    bottom: 25%;
    box-shadow: inset 0px 2px 12px 0px rgb(217, 217, 217);
    z-index: 1;
    display: block;
}

[dir=rtl] .voucher-box::before {
    left: -12px;
    right: unset;
}

.voucher-box .l-vector {
    position: absolute;
    left: -5px;
    bottom: 60px;
    height: 20px;
    width: 20px;
    z-index: 1;
}

[dir=rtl] .voucher-box .l-vector {
    left: unset;
    right: -5px;
}

.voucher-box .r-vector {
    position: absolute;
    height: 20px;
    width: 20px;
    right: -5px;
    bottom: 60px;
    z-index: 1;
    transform: rotate(180deg);
}

[dir=rtl] .voucher-box .r-vector {
    left: -5px;
    right: unset;
}

.voucher-box .voucher-img {
    text-align: center;
    padding-top: 12px;
}

.voucher-box .voucher-img .voucher-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.voucher-box .voucher-content {
    padding: calc(10px + 2 * (100vw - 320px) / 1600);
}

.voucher-box .voucher-content h5 {
    font-weight: 600;
    color: rgba(var(--coupon-dark-text), 1);
    margin-top: 12px;
}

.voucher-box .voucher-content p {
    color: rgba(var(--coupon-light-text), 1);
    margin-top: 4px;
    padding: 0;
    margin: 0;
}

.voucher-box .voucher-discount {
    position: relative;
    width: 100%;
    height: 70px;
    background: rgb(53, 121, 42);
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 8px 8px;
}

.voucher-box .voucher-discount.color-1 {
    background-color: rgb(37, 131, 125);
}

.voucher-box .voucher-discount.color-2 {
    background-color: rgb(30, 60, 110);
}

.voucher-box .voucher-discount.color-3 {
    background-color: rgb(173, 110, 51);
}

.voucher-box .voucher-discount.color-4 {
    background-color: rgb(123, 51, 157);
}

.voucher-box .voucher-discount.color-5 {
    background-color: rgb(53, 121, 42);
}

.voucher-box .voucher-discount .top-vector {
    position: absolute;
    width: 90%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.voucher-box .voucher-discount h2 {
    color: rgb(225, 225, 225);
    font-size: calc(16px + 2 * (100vw - 320px) / 1600);
}

.expired-box {
    position: relative;
}

.expired-box .expired-tag {
    position: absolute;
    background-color: rgba(var(--coupon-theme-color), 0.6);
    backdrop-filter: blur(3px);
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 1;
    height: 34px;
}

.expired-box .expired-tag p {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    padding: 0;
    color: rgba(var(--coupon-dark-text), 1);
}

.expired-box .expired-voucher {
    position: relative;
    filter: grayscale(100%);
}