.contactbuy-btn-wrap {
	margin-top: 12px;
	display: flex;
}

.contactbuy-btn-wrap .contactbuy-open-popup,
button.button.alt.contactbuy-open-popup {
	flex: 1;
	max-width: 260px;
	height: 44px;
	padding: 0 18px;
	background: #b55239 !important;
	color: #fff;
	border: 1px solid rgba(196, 113, 74, 0.55);
	border-radius: 999px;
	font-family: "Be Vietnam Pro", sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(196, 113, 74, 0.22);
	transition: transform 0.18s ease, box-shadow 0.22s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.contactbuy-btn-wrap .contactbuy-open-popup:hover,
button.button.alt.contactbuy-open-popup:hover {
	background: #d97706;
	color: #111827;
	border-color: #b45309;
	box-shadow: 0 16px 36px rgba(217, 119, 6, 0.3);
	transform: translateY(-1px);
}

.contactbuy-btn-wrap .contactbuy-open-popup:active,
button.button.alt.contactbuy-open-popup:active {
	transform: translateY(0);
	box-shadow: 0 12px 28px rgba(217, 119, 6, 0.24);
}

.contactbuy-btn-wrap .contactbuy-open-popup:focus-visible,
button.button.alt.contactbuy-open-popup:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35), 0 16px 36px rgba(217, 119, 6, 0.3);
}

@media (max-width: 768px) {
	.contactbuy-btn-wrap .contactbuy-open-popup {
		max-width: none;
		width: 100%;
	}
}

.contactbuy-sticky-btn .btn-cart-icon {
	display: none;
}

@media (max-width: 768px) {
	.contactbuy-sticky-btn .btn-cart-icon {
		display: none;
	}
}

.contactbuy-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	padding: 20px;
}

.contactbuy-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 26, 23, 0.52);
}

.contactbuy-modal__content {
	position: relative;
	width: min(100%, 460px);
	margin: 3vh auto;
	background: #fdfaf4;
	border-radius: 12px;
	max-height: 88vh;
	overflow: auto;
	box-shadow: 0 26px 56px rgba(28, 26, 23, 0.24);
	animation: contactbuy-pop-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes contactbuy-pop-in {
	from {
		opacity: 0;
		transform: scale(0.92) translateY(12px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes contactbuy-sheet-up {
	from {
		opacity: 0;
		transform: translateY(100%);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes contactbuy-spin {
	to {
		transform: rotate(360deg);
	}
}

.contactbuy-modal__head {
	background: #1c1a17;
	padding: 14px 52px 16px 22px;
}

.contactbuy-modal__eyebrow {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #c9a96e;
	margin-bottom: 4px;
}

#contactbuy-modal-title {
	color: #f5f0e8;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.4;
	margin: 0;
}

.contactbuy-modal__close {
	position: absolute;
	right: 14px;
	top: 12px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #f5f0e8;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.contactbuy-modal__close:hover {
	background: rgba(255, 255, 255, 0.22);
}

.contactbuy-modal__attrs {
	padding: 12px 22px;
	background: #f5f0e8;
	border-bottom: 1px solid #e8ddd0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.contactbuy-attr-tag {
	font-size: 12px;
	color: #1c1a17;
	background: #fff;
	border: 1px solid #e8ddd0;
	border-radius: 5px;
	padding: 4px 10px;
	line-height: 1.4;
}

.contactbuy-form {
	padding: 18px 22px 22px;
}

.contactbuy-form__row {
	margin-bottom: 14px;
}

.contactbuy-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.contactbuy-form__row label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #1c1a17;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
}

.contactbuy-req {
	color: #c4714a;
}

.contactbuy-form__row input,
.contactbuy-form__row textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #e8ddd0;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: #1c1a17;
	background: #fff;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.contactbuy-form__row input:focus,
.contactbuy-form__row textarea:focus {
	border-color: #c4714a;
	box-shadow: 0 0 0 3px rgba(196, 113, 74, 0.12);
}

.contactbuy-form__row textarea {
	resize: vertical;
	min-height: 86px;
	line-height: 1.6;
}

.popup-foot {
	margin-top: 8px;
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 10px;
}

.btn-cancel {
	padding: 12px;
	height: 44px;
	border-radius: 6px;
	border: 1.5px solid #e8ddd0;
	background: #fff;
	color: #8a8070;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	letter-spacing: 0.04em;
	transition: all 0.2s;
}

.btn-submit {
	padding: 12px;
	height: 44px;
	border-radius: 6px;
	border: none;
	background: #c4714a;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s;
}

.btn-cancel:hover {
	border-color: #1c1a17;
	color: #1c1a17;
}

.btn-submit:hover {
	background: #a85d3a;
}

.btn-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.btn-submit svg {
	width: 14px;
	height: 14px;
}

.contactbuy-alt-contact {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #e8ddd0;
	text-align: center;
}

.contactbuy-alt-contact__hint {
	margin: 0 0 10px;
	font-size: 12px;
	color: #8a8070;
	line-height: 1.45;
}

.contactbuy-alt-contact__row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 16px;
}

.contactbuy-alt-contact__zalo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #e8f4ff;
	color: #0068ff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.contactbuy-alt-contact__zalo:hover {
	background: #d4ebff;
	color: #0052cc;
}

.contactbuy-alt-contact__zalo:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.28);
}

.contactbuy-alt-contact__zalo-icon img {
	display: block;
	width: 28px;
	height: 28px;
}

/* Số máy: mobile-first — chữ chỉ từ ≥769px; icon gọi ẩn từ ≥769px */
.contactbuy-alt-contact__phone--desktop {
	display: none;
	font-size: 14px;
	font-weight: 600;
	color: #1c1a17;
	text-decoration: none;
	border-bottom: 1px solid rgba(28, 26, 23, 0.22);
	padding-bottom: 1px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.contactbuy-alt-contact__phone--desktop:hover {
	color: #c4714a;
	border-bottom-color: #c4714a;
}

.contactbuy-alt-contact__phone--desktop:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(196, 113, 74, 0.22);
	border-radius: 2px;
}

.contactbuy-alt-contact__call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid #e8ddd0;
	background: #fff;
	color: #1d7f3b;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
	flex-shrink: 0;
}

.contactbuy-alt-contact__call:hover {
	background: #f0fdf4;
	border-color: #86efac;
	color: #15803d;
}

.contactbuy-alt-contact__call:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(29, 127, 59, 0.28);
}

.contactbuy-alt-contact__call-icon {
	display: block;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.contactbuy-alt-contact__phone--text.contactbuy-alt-contact__phone--plain {
	cursor: default;
	border-bottom-style: dashed;
	font-size: 14px;
	font-weight: 600;
	color: #1c1a17;
}

@media (min-width: 769px) {
	.contactbuy-alt-contact__row {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.contactbuy-alt-contact__phone--desktop {
		display: inline-block !important;
	}

	.contactbuy-alt-contact__call,
	.contactbuy-alt-contact__phone--mobile {
		display: none !important;
	}
}

.contactbuy-form__message {
	margin-top: 12px;
	font-size: 13px;
	font-weight: 500;
}

.contactbuy-form__message.is-error {
	color: #b81c23;
}

.contactbuy-form__message.is-success {
	color: #1d7f3b;
}

@media (max-width: 768px) {
	.contactbuy-modal {
		padding: 0;
		display: flex;
		align-items: flex-end;
		justify-content: center;
	}

	.contactbuy-modal__content {
		width: 100%;
		margin: 0;
		max-height: 86vh;
		border-radius: 16px 16px 0 0;
		animation: contactbuy-sheet-up 0.24s ease-out;
		padding-bottom: env(safe-area-inset-bottom, 0);
	}

	#contactbuy-modal-title {
		font-size: 15px;
		padding: 1rem 0;
	}

	.contactbuy-form {
		padding: 14px 16px 16px;
	}

	.contactbuy-modal__attrs {
		padding: 10px 16px;
	}

	.contactbuy-form__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}
}