.dtml-qb-trigger {
	display: inline-block;
	margin: 8px 0 8px 8px;
	background: var(--dtml-qb-bg)!important;
	color: var(--dtml-qb-text)!important;
	border: 0!important;
}

.dtml-qb-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0,0,0,.62);
	padding: 18px;
	overflow-y: auto;
	align-items: center;
	justify-content: center;
}

.dtml-qb-overlay.is-open {
	display: flex;
}

.dtml-qb-modal {
	position: relative;
	width: min(var(--dtml-qb-width,720px),100%);
	max-height: calc(100vh - 36px);
	overflow: auto;
	background: #fff;
	color: #222;
	border-radius: 10px;
	box-shadow: 0 15px 60px rgba(0,0,0,.25);
}

.dtml-qb-content {
	padding: 28px;
}

.dtml-qb-close {
	position: sticky;
	float: right;
	top: 8px;
	margin: 8px 10px -38px 0;
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	color: #444;
	z-index: 2;
}

.dtml-qb-message {
	display: none;
	padding: 11px 13px;
	margin: 0 0 16px;
	border-radius: 5px;
	background: #fff0f0;
	color: #a40000;
}

.dtml-qb-loading {
	padding: 25px;
	text-align: center;
}

.dtml-qb-product {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 0 0 18px;
	margin: 0 0 20px;
	border-bottom: 1px solid #e7e7e7;
}

.dtml-qb-thumb img {
	width: 76px;
	height: 76px;
	object-fit: cover;
}

.dtml-qb-product small {
	display: block;
	color: #666;
	margin-top: 4px;
}

.dtml-qb-form h3 {
	font-size: 17px;
	margin: 18px 0 12px;
}

.dtml-qb-fields {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 12px;
	align-items: center;
}

.dtml-qb-field {
	display: block;
	margin: 0!important;
}

.dtml-qb-field span {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
}

.dtml-qb-field em {
	color: #c00;
}

.dtml-qb-field input,.dtml-qb-field select {
	width: 100%;
	min-height: 42px;
	padding: 9px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
}

.dtml-qb-payment {
	display: grid;
	gap: 8px;
}

.dtml-qb-payment label {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.dtml-qb-gateway-panel {
	display: none;
	padding: 12px 0;
}

.dtml-qb-place-order {
	width: 100%;
	padding: 13px 18px;
	margin-top: 16px;
	background: #171717;
	color: #fff;
	border: 0;
	border-radius: 5px;
	font-weight: 700;
	cursor: pointer;
}

.dtml-qb-place-order:disabled {
	opacity: .6;
	cursor: wait;
}

body.dtml-qb-open {
	overflow: hidden;
}

@media(max-width:600px) {
	.dtml-qb-overlay {
		padding: 8px;
		align-items: flex-start;
	}

	.dtml-qb-modal {
		max-height: calc(100vh - 16px);
		border-radius: 7px;
	}

	.dtml-qb-content {
		padding: 22px 16px;
	}

	.dtml-qb-fields {
		grid-template-columns: 1fr;
	}

	.dtml-qb-trigger {
		margin-left: 0;
		width: 100%;
	}
}

.dtml-qb-trigger.single_add_to_cart_button.wc-variation-selection-needed{
    opacity: .5 !important;
}

.dtml-qb-otp {
	margin-top: 8px;
}

@media (min-width: 500px) {
	.dtml-qb-otp {
		margin-top: 23px;
	}
}

.dtml-qb-otp-entry {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.dtml-qb-otp-entry[hidden] {
    display: none !important;
}

.dtml-qb-otp-code {
    min-width: 0;
    flex: 1;
}

.dtml-qb-otp-message {
    margin: 6px 0 0;
    font-size: 13px;
}

.dtml-qb-otp-message.is-error {
    color: #c62828;
}

.dtml-qb-otp-message.is-success {
    color: #27823b;
}

.dtml-qb-send-otp,
.dtml-qb-verify-otp {
    cursor: pointer;
	padding: 13px 35px;
}