/* Styling cho nút Trigger */
.tqb-btn-trigger {
	margin: 5px 0;
	background: #f5b001;
	color: #333;
	font-weight: bold;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	line-height: 1.2;
}
.tqb-btn-trigger small {
	font-weight: normal;
	font-size: 11px;
	display: block;
	margin-top: 3px;
	text-transform: uppercase;
}

/* Modal Overlay */
.tqb-modal {
	display: none;
	position: fixed;
	z-index: 999999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	align-items: center;
	justify-content: center;
}
.tqb-modal.open {
	display: flex;
}

/* Modal Content */
.tqb-modal-content {
	background-color: #fff;
	margin: auto;
	width: 800px;
	max-width: 95%;
	border-radius: 8px;
	position: relative;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	font-family: Arial, sans-serif;
	animation: tqbFadeIn 0.3s;
}
@keyframes tqbFadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tqb-modal-header {
	background: #002650;
	color: white;
	padding: 15px;
	font-weight: bold;
	font-size: 16px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	text-transform: uppercase;
	padding-right: 40px;
}
.tqb-close {
	color: white;
	position: absolute;
	right: 15px;
	top: 5px;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.tqb-modal-body {
	display: flex;
	padding: 20px;
	gap: 25px;
}
.tqb-col-left,
.tqb-col-right {
	flex: 1;
	min-width: 300px;
}

/* Product Info */
.tqb-prod-info {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	border-bottom: 1px dashed #eee;
	padding-bottom: 15px;
}
.tqb-prod-info img {
	width: 100px;
	height: auto;
	object-fit: cover;
	border-radius: 5px;
}
.tqb-prod-details h3 {
	font-size: 15px;
	margin: 0 0 5px 0;
	line-height: 1.4;
	color: #333;
}
.tqb-price-box {
	font-size: 18px;
	color: #d0021b;
	font-weight: bold;
}
.tqb-price-box del {
	color: #999;
	font-size: 14px;
	margin-right: 5px;
}

/* Qty Control */
.tqb-qty-wrapper {
	display: flex;
	align-items: center;
	margin-top: 5px;
}
.tqb-qty-btn {
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	background: #f9f9f9;
	font-size: 18px;
	margin: 0;
	padding: 0;
}
#tqb-qty {
	width: 45px;
	text-align: center;
	height: 45px;
	margin: 0;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	border-left: none;
	border-right: none;
	padding: 0;
}
.tqb-note-text {
	font-size: 15px;
	color: #333;
	background: #fffbe6;
	padding: 10px;
	border: 1px solid #ffe58f;
	border-radius: 4px;
	margin-top: 15px;
}

/* Form */
.tqb-col-right h4 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 16px;
	border-bottom: 2px solid #f5b001;
	display: inline-block;
	padding-bottom: 5px;
}
.tqb-form-group input[type=email],.tqb-form-group input[type=number],.tqb-form-group input[type=tel],.tqb-form-group input[type=text],
.tqb-form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	border-radius: 6px;
}
.tqb-form-group textarea {
	min-height: 75px;
	resize: none;
}
.tqb-error-msg {
	color: red;
	font-size: 12px;
	display: none;
	margin-top: 3px;
}

.tqb-total-section {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 10px;
	color: #333;
	border-top: 1px solid #eee;
	padding-top: 10px;
	text-align: right;
}
#tqb-total-price {
	color: #d0021b;
	font-size: 20px;
	margin-left: 5px;
}
.tqb-submit-btn {
	width: 100%;
	background: #f5b001;
	color: #000;
	font-weight: bold;
	padding: 0 12px;
	border: none;
	border-radius: 5px;
	text-transform: uppercase;
	font-size: 16px;
	transition: 0.3s;
	margin-bottom: 0;
}
.tqb-submit-btn:hover {
	background: #e0a000;
}
.tqb-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Mobile */
@media (max-width: 700px) {
	.tqb-modal-body {
		flex-direction: column;
		gap: 15px;
		padding: 15px;
	}
	.tqb-col-left,
	.tqb-col-right {
		min-width: 100%;
	}
	.tqb-modal-content {
		width: 100%;
		height: 100%;
		border-radius: 0;
		overflow-y: auto;
	}
}
