.cart-discount th {
    text-transform: uppercase !important;
}
.thaitoan-coupon .mfp-content {
    background: #fff;
}
.thaitoan-coupon .inner-padding {
    padding: 10px;
    margin-bottom: 40px;
}
.hover-popup {
    cursor: pointer;
}
.remain-items {
    padding: 1em 0;
    width: 100%;
    margin-top: 1em;
}
.remain-items .button.is-outline {
    border: 1px solid;
    line-height: 2.35em;
}
.coupon-code-wrap:after,
.coupon-code-wrap:before {
    content: "";
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-width: 1px;
    border-style: solid;
    border-color: transparent #ddd #ddd transparent;
    border-image: initial;
    position: absolute;
    border-radius: 50%;
    left: calc(100% - 15px / 2);
}

.coupon-code-wrap:before {
    top: -8px;
    transform: rotate(45deg);
}

.coupon-code-wrap::after {
    bottom: -8px;
    transform: rotate(-135deg);
}

.thaitoan-coupon-item {
    position: relative;
    margin-top: 15px;
    width: 100%;
    height: 120px;
    padding: 0;
    display: block;
}
.mfp-content .thaitoan-coupon-item:first-child {
    margin-top: 30px;
}
.mfp-content .thaitoan-coupon-item:last-child {
    margin-bottom: 60px;
}
.popup-coupon-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    box-shadow: none;
    border-radius: 8px;
    background-color: #fff;
}

.coupon-code-wrap {
    min-width: 120px;
    width: 120px;
    height: 120px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    align-self: center;
    -webkit-box-pack: center;
    justify-content: center;
    position: relative;
    border-right: 2px dashed #fff;
    text-align: center;
    background: #FCAF17;
    color: #fff;
    border-radius: 8px;
}
.coupon-code {
    text-transform: uppercase;
    font-weight: 600;
}
.coupon-code-title {
    padding-bottom: .4em;
    font-size: .95em;
}

.discount-content-top {
    line-height: 1.3;
    padding-right: 8px;
}
.discount-content-top span {
    color: var(--primary-color);
}
.save-coupon-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .7em;
}
.save-coupon-left {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    font-size: 110%;
}
.save-coupon-left span{
    font-size: 13px;
}
.coupon-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0px;
    margin: 0px;
    padding: 0px;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    max-height: 20px;
    color: rgb(120, 120, 120);
}

.discount-content-wrap {
    display: flex;
    flex-direction: column;
    padding: 12px;
    width: calc(100% - 120px);
    position: relative;
}

.coupon_copy {
    background: var(--primary-color);
    box-shadow: inset 0 2px 1px 0 rgb(0 0 0 / 5%);
    color: #fff !important;
    font-size: 14px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
    padding: 5px;
    line-height: 1.3;
    border-radius: 5px;
    transition: all 200ms ease-in-out;
    cursor: pointer;
}

@media screen and (max-width: 1023px) {
    .coupon-code-wrap {
        min-width: 100px;
        width: 100px;
        height: 120px;
    }
    .discount-content-wrap {
        width: calc(100% - 100px);
    }
    .thaitoan-coupon-item.non-popup {
    width: 100%;
    }
}
.coupon_item {
	position: relative;
	background: #fff;
	filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, .15));
	display: flex;
	min-height: 120px;
	min-height: 100px;
	height: calc(100% - 8px);
}
.coupon_item .coupon_icon {
	width: 80px;
	flex: 0 0 80px;
	padding: 8px 4px 8px 8px;
	background-color: var(--primary-color);
}
.coupon_icon.pos-relative.embed-responsive[class*=embed-responsive-] img {
	max-width: calc(100% - 12px);
}
.coupon_item.no-icon:before {
	color: #fff;
}
.coupon_item:after {
	bottom: -4px;
	top: auto;
}
.thaitoan.inner-padding .coupon_item {
    margin: 10px 0;
}
.single-product-coupon.thaitoan {
    margin: 0 0 1em 0;
    display: flex;
    gap: 1%;
    flex-wrap: wrap;
    position: relative;
}
.woocommerce-checkout .single-product-coupon,.woocommerce-cart .single-product-coupon {
    margin-top: 0;
}
span.coupon-suggestions {
    font-size: 90%;
    color: #333;
    font-weight: 500;
    text-align: right;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 1em;
}
.coupon-suggestions .coupon-ticket {
    fill: var(--primary-color);
}
.single-product .single-product-coupon.thaitoan {
    margin: 0;
    gap: 2%;
}
.thaitoan-coupon-item.non-popup {
    position: relative;
    margin-top: 15px;
    width: 32.66%;
    height: 120px;
    padding: 0;
    display: flex;
}
svg.coupon-more {
    display: inline-block;
    width: .9em;
    fill: red;
    margin-left: 5px;
    opacity: 0.85;
    vertical-align: middle;
    height: 2em;
    position: relative;
}
svg.coupon-more:hover {
    fill: var(--primary-color);
    opacity: 1;
}
.single-product-coupon.thaitoan .coupon-htitle {
    padding-bottom: 5px;
    font-size: 95%;
    display: block;
}
.coupon_item .coupon_body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 15px;
    width: 100%;
}
.coupon_item .coupon_body .coupon_title {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: normal;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.coupon_item .coupon_body .coupon_desc {
	font-size: 14px;
	line-height: 1.2;
	color: #727272;
	padding-bottom: 20px;
}
.coupon_item .coupon_body .coupon_head{
	text-align: center;
}
.coupon_copy {
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px !important;
}
.coupon_copy:hover {
	color: #fff;
	background: var(--primary-color);
	filter: brightness(1.08) !important;
	box-shadow: inset 0 2px 1px 0 rgb(0 0 0 / 20%);
}
.coupon_item .coupon_copy {
	border: none;
	padding: 2px 8px 3px 8px;
	border-radius: 0;
	margin-bottom: 3px;
}
.coupon_item .coupon_body button span {
    display: block;
    line-height: 24px;
    height: 24px;
    font-size: 14px;
    text-transform: none;
}
.coupon_item.no-icon .coupon_body {
	width: 100%;
}
.coupon_info{
	display: none;
}
.coupon_info_toggle {
	font-size: 14px;
    color: #353945;
    cursor: pointer;
    margin-bottom: 3px;
    text-decoration: underline;
	margin-left: 10px
}
.coupon-modal .coupon_desc{
	display: none;
}
.coupon-modal .coupon_info{
	display: block
} 
.coupon-modal .modal-content{
	padding: 15px 20px;
}
.coupon-modal{
	z-index: 99999
}
.coupon-modal .window-close {
	z-index: 9;
	position: absolute;
	right: 8px;
	top: -1px;
}
.coupon-action{
	display: grid;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
	grid-gap: 15px;
}
.coupon-title {
	color: var(--primary-color);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 0px;
	padding: 0px;
	font-size: 24px;
	line-height: 32px;
	max-height: 32px;
	font-weight: 500;
	margin: 0px 16px 16px;
	text-align: center;
}
.coupon-row {
	display: grid;
	grid-gap: 5px;
	padding: 10px 20px;
	margin-left: -20px;
	margin-right: -20px;
}
.coupon-row:nth-child(2n) {
	background-color: #f3f3f3;
}
.coupon-row .coupon-info{
	grid-column: 1/-1;
	grid-row: 2;
}
.coupon-action{
	margin-top: 20px;
	padding-top: 20px;
	border-top:1px solid #F0F1F2
}
.coupon-label{
	color: #4c4c4c
}
.coupon_item.lite {
    flex: 0 0 auto;
    border-radius: 0;
    filter: none;
    min-height: 0;
    overflow: hidden;
    padding: 0!important;
    cursor: pointer;
    margin-bottom: 10px;
}
.coupon_item.lite:before {
	content: normal;
}
.coupon_item.lite .coupon_content {
    border: 1px solid red;
    color: red;
    border-radius: 5px;
    padding: 3px 12px;
    position: relative;
    font-size: .9em;
}
.coupon_item.lite .coupon_content:hover {
    border: 1px solid var(--primary-color);
    color: #fff;
    border-radius: 5px;
    padding: 3px 12px;
    position: relative;
    font-size: .9em;
    background: var(--primary-color);
}
.coupon_item.lite .coupon_content:before, .coupon_item.lite .coupon_content:after {
	content: '';
	position: absolute;
	border-radius: 999px;
	width: 10px;
	height: 10px;
	background: #fff;
	border: 1px solid red;
	top: 50%;
	transform: translateY(-50%);
}
.coupon_item.lite .coupon_content:hover:before, .coupon_item.lite .coupon_content:hover:after {
	border: 1px solid var(--primary-color);
}
.coupon_item.lite .coupon_content:before {
	left: -5px;
}
.coupon_item.lite .coupon_content:after {
	right: -5px;	
}
.coupon-action .btn {
	padding: 10px;
}

@media (max-width: 1024px) and (min-width: 769px){
    .off-canvas-right .mfp-content {
        width: 70%;
    }
	.section_coupons .col-lg {
		flex: 0 0 31%;
	}
	.thaitoan-coupon-item.non-popup {
    width: 49.5%;
    }
}
@media (max-width: 768px) {
	.header-cart-price .coupon-toggle {
		display: none !important;
	}
	.thaitoan-coupon-item.non-popup {
        width: 100%;
    }
}