/* Modal backdrop */
.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1040;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.5); /* Màu nền mờ cho backdrop */
}

/* Modal container */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1050;
	display: none;
	width: 100%;
	height: 100%;
	overflow: hidden;
	outline: 0;
}

/* Modal dialog with fixed size for desktop */
.modal-dialog {
	position: relative;
	width: 100%;
	max-width: 500px; /* Fixed width for desktop */
	height: auto;
	max-height: 270px; /* Fixed height for desktop */
	margin: auto; /* Center the modal */
	pointer-events: none;
	top: 50%;
	transform: translateY(-50%)!important;
}

/* Responsive modal for smaller screens */
@media (max-width: 768px) {
	.modal-dialog {
		max-width: 100%; /* Adjust to 90% of the screen width for smaller screens */
		max-height: unset!important; /* Remove the fixed height */
	}
}

/* Modal content */
.modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0.3rem;
	outline: 0;
}

.modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 1rem;
	border-bottom: 1px solid #dee2e6;
}

.modal-body {
	flex: 1 1 auto;
	padding: 1rem;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	padding: 1rem;
	border-top: 1px solid #dee2e6;
}

.modal-header .close {
	font-size: 1.5rem;
	line-height: 1;
	color: #000;
	opacity: 0.5;
}

.section_coupons .row {
	margin-left: -0.5rem;
	margin-right: -0.5rem;
}
.coupon_item {
	position: relative;
	background: #fff;
	filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, .15));
	display: flex;
	min-height: 120px;
	border-radius: 5px;
	min-height: 100px;
}
.coupon_item .coupon_icon {
	width: 80px;
	flex: 0 0 50px;
	padding: 8px 8px 8px 8px;
	background-color: var(--coupon-code-background);
	margin-left: 3px;
	display: flex;
	justify-content: center;
	align-items: center;
	height: auto;
}
.coupon_icon.pos-relative.embed-responsive[class*=embed-responsive-] img {
	max-width: calc(100% - 2px);
}
@media(max-width: 767px){
	.coupon_item {
		margin: 4px auto;
	}
}
.coupon_item:before {
	content: "";
	position: absolute;
	top: 0;
	left: -3px;
	height: 100%;
	width: 10px;
	color: var(--coupon-code-background);
	background-clip: padding-box;
	background: repeating-linear-gradient(#e5e5e5,#e5e5e5 5px,transparent 0,transparent 9px,#e5e5e5 0,#e5e5e5 10px) 0/1px 100% no-repeat,radial-gradient(circle at 0 7px,transparent,transparent 2px,#e5e5e5ee 0,#e5e5e5 3px,currentColor 0) 1px 0/100% 10px repeat-y;
}
.coupon_item:after {
	bottom: -4px;
	top: auto;
}
.coupon_item .coupon_body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 8px 8px 8px 10px;
	width: 100%;
}
.coupon_item .coupon_body .coupon_title {
	font-size: 14px;
	color: var(--coupon-title-color);
	font-weight: bold;
	margin:0px;
}
.coupon_item .coupon_body .coupon_desc {
	font-size: 12px;
	line-height: 1.2;
	color: #727272;
	padding-bottom: 7px;
	min-height: 36px;
}
.coupon_copy  {
	background:var(--coupon-button-color);
	color: #fff;
}
.coupon_copy:hover {
	color: #fff;
	background: var(--coupon-button-color);
	filter: brightness(1.08) !important;
}
.coupon_item .coupon_copy {
	border: none;
	padding: 2px 15px;
	border-radius: 999px;
	margin-bottom: 3px;
	height: unset;
}
.coupon_item .coupon_body button span {
	display: block;
	line-height: 24px;
	height: 24px;
	font-size: 12px;
}
.coupon_item.no-icon .coupon_body {
	width: 100%;
}
.coupon_info{
	display: none;
}
.coupon_info_toggle{
	font-size: 12px;
	text-decoration: underline;
	color: #2E72D2;
	cursor: pointer;
	margin-bottom: 3px;
}
.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{
	--primary-color: var(--coupon-button-color);
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
	grid-gap: 15px;
}
.coupon-title {
	color: var(--coupon-title-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-template-columns: 33% 1fr;
	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
}
.details-product .coupon_item {
	border-radius: 0;
}
.details-product .coupon_item:before {
	content: normal;
}
@media (max-width: 1024px) {
	.coupon_item {
		margin: 10px auto;
		min-height: calc(100% - 18px);
	}
	.section_coupons .row {
		flex-wrap: nowrap;
		overflow-x: auto;
		flex-wrap: nowrap;
	}
	.section_coupons .col-lg {
		padding-right: 4px;
	}
	.section_coupons .row::-webkit-scrollbar {
		display: none;
	}
	.section_coupons .row {
		-ms-overflow-style: none;
		/* IE and Edge */
		scrollbar-width: none;
		/* Firefox */
	}
}

@media (max-width: 1024px) and (min-width: 992px){
	.section_coupons .col-lg {
		flex: 0 0 31%;
	}
}
@media(max-width: 767px){
	.coupon-modal .modal-dialog {
		position: absolute;
		bottom: 0;
		margin: 0;
		width: 100%;
		top:auto!important;
		transform: none!important;
	}
	.coupon-modal .modal-content{
		border-radius: 5px 5px 0 0;
	}
}
@media (max-width: 320px) {
	.coupon_item .coupon_copy {
		margin-bottom: 7px;
	}
}
.section_coupons .align-items-center {
	-ms-flex-align: center !important;
	align-items: center !important;
}
.section_coupons  .justify-content-between {
	-ms-flex-pack: justify !important;
	justify-content: space-between !important;
}
.section_coupons  .flex-wrap {
	-ms-flex-wrap: wrap !important;
	flex-wrap: wrap !important;
}
@media (max-width: 320px) {
	.coupon_item .coupon_copy {
		margin-bottom: 7px;
	}
}
.section_coupons {
	margin: 30px 0 50px;
	overflow: hidden;
}
button.btn.btn-main.one {
	border: 1px solid red;
	color: red;
}

span.code {
	font-weight: 700;
}


@media (min-width: 1200px) {
	.section_coupons .justify-content-xl-center {
		-ms-flex-pack: center !important;
		justify-content: center !important;
	}
}

.embed-responsive {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden
}

.embed-responsive-1by1::before {
	padding-top: 100%
}

.embed-responsive::before {
	display: block;
	content: ""
}

.pos-relative.embed-responsive[class*=embed-responsive-] img {
	width: auto;
	height: auto
}

.pos-relative.embed-responsive[class*=embed-responsive-] iframe,.pos-relative.embed-responsive[class*=embed-responsive-] img {
	--image-scale: 1;
	position: absolute;
	top: var(--img-top, 50%);
	left: var(--img-left, 50%);
	transform: translate(-50%, -50%) scale(var(--image-scale));
	object-fit: contain;
	max-width: 100%;
	max-height: 100%;
	min-width: 1px;
	min-height: 1px
}

.section_coupons .row {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-right: -10px;
	margin-left: -10px
}
.filter-item-toggle {
	margin: auto;
	color: var(--coupon-button-color);
}

.card {
	border-radius: 0.25rem;
	padding: 15px;
}
.card {
	position: relative;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	min-width: 0;
	word-wrap: break-word;
	background-color: #fff;
	background-clip: border-box;
	border: 1px solid #f5f5f5;
	border-radius: .5rem;
}

.section_coupons.one .coupon_item {
	margin-bottom: 12px;
}

.show:not(.hidden) {
	display: block;
}

@media (min-width: 768px) {
	.overflow-item:not(.show) {
		display: none;
	}
}
.filter-item-toggle .fas {
	transitions: all 0.3s ease-out;
}
.filter-item-toggle.show {
	display: inline-block;
}
.filter-item-toggle.show .fas {
	transform: rotate(180deg);
}



@media (max-width: 576px) {
	.section_coupons .row {
		flex-wrap: nowrap;
		overflow-x: auto;
		flex-wrap: nowrap !important;
	}
	.section_coupons  .col-9 {
		-ms-flex: 0 0 75%;
		flex: 0 0 75%;
		max-width: 75%;
	}
	.section_coupons .row {
		scrollbar-width: thin;
	}
}