/**
 * Internal Woo Cancel Form – Modal Styles
 */

/* Overlay */
.iwcf-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.6);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.iwcf-modal--open {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Prevent body scroll when modal is open */
body.iwcf-body-locked {
	overflow: hidden;
}

/* Card */
.iwcf-modal__card {
	position: relative;
	background: #fff;
	border-radius: 8px;
	padding: 40px 32px 32px;
	margin: 24px;
	width: 100%;
	max-width: 560px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
	animation: iwcf-fade-in 0.2s ease-out;
}

@keyframes iwcf-fade-in {
	from {
		opacity: 0;
		transform: translateY(-12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Close button */
.iwcf-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 4px 8px;
	transition: color 0.15s;
}

.iwcf-modal__close:hover,
.iwcf-modal__close:focus {
	color: #000;
}

/* Gravity Forms overrides inside modal */
.iwcf-modal .gform_wrapper {
	margin: 0 !important;
}

.iwcf-modal .gform_heading {
	margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 600px) {
	.iwcf-modal__card {
		margin: 12px;
		padding: 32px 20px 24px;
	}
}
