.wc-mgs-open-modal {
	margin-top: 1rem;
}

.gift-button,
.wc-mgs-modal .wc-mgs-add-gift,
.wc-mgs-modal .wc-mgs-refresh-gift {
	padding: 15px 22px !important;
	background-color: #e85a34 !important;
	border: none !important;
	border-radius: 4px;
	color: #fff !important;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.gift-button:hover,
.wc-mgs-modal .wc-mgs-add-gift:hover,
.wc-mgs-modal .wc-mgs-refresh-gift:hover {
	box-shadow: 0 20px 38px rgba(0, 0, 0, 0.16) !important;
	transform: translateY(-3px);
	opacity: 0.85 !important;
}
.wc-mgs-modal[hidden] {
	display: none;
}

.wc-mgs-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.wc-mgs-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 25, 32, 0.68);
}

.wc-mgs-modal__dialog {
	position: relative;
	max-width: 760px;
	margin: 6vh auto;
	background: #fffef8;
	border-radius: 20px;
	padding: 2rem;
	width: calc(100% - 2rem);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.wc-mgs-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	border: 0;
	background: transparent;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.wc-mgs-product {
	display: grid;
	grid-template-columns: minmax(220px, 280px) 1fr;
	gap: 1.5rem;
	align-items: start;
}

.wc-mgs-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: #163f2f;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.wc-mgs-variations label {
	display: block;
	margin-bottom: 0.9rem;
}

.wc-mgs-variations select,
.wc-mgs-actions .button {
	width: 100%;
}

.wc-mgs-actions {
	display: grid;
	gap: 0.75rem;
	margin-top: 1rem;
}

.wc-mgs-feedback {
	margin: 1rem 0;
	font-weight: 600;
}

.wc-mgs-feedback.is-error {
	color: #a61b1b;
}

@media (max-width: 640px) {
	.wc-mgs-modal__dialog {
		padding: 1.25rem;
		margin: 2vh auto;
	}

	.wc-mgs-product {
		grid-template-columns: 1fr;
	}
}
