/* SV COD Manager — Cancel Order modal (My Account) */

.sv-cod-cancel-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	font-family: inherit;
}
.sv-cod-cancel-overlay.sv-show {
	display: flex;
}
.sv-cod-cancel-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(3px);
}

.sv-cod-cancel-modal {
	position: relative;
	z-index: 1;
	max-width: 460px;
	width: 100%;
	margin: 0 16px;
	background: #ffffff;
	border-radius: 14px;
	padding: 22px 20px 18px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
	animation: svCodModalIn 0.22s ease-out;
}
@keyframes svCodModalIn {
	from { transform: translateY(12px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

.sv-cod-cancel-modal h3 {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 600;
	color: #111827;
}
.sv-cod-cancel-sub {
	margin: 0 0 14px;
	font-size: 13px;
	color: #6b7280;
}

.sv-cod-cancel-close {
	position: absolute !important;
	top: 8px !important;
	right: 10px !important;
	left: auto !important;
	border: none;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #9ca3af;
}
.sv-cod-cancel-close:hover {
	color: #4b5563;
}

.sv-cod-field {
	margin-bottom: 14px;
}
.sv-cod-field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 6px;
}
.sv-cod-field label span {
	color: #ef4444;
}

.sv-cod-field select,
.sv-cod-field textarea {
	width: 100%;
	border-radius: 9px;
	border: 1px solid #e5e7eb;
	padding: 8px 10px;
	font-size: 13px;
	outline: none;
	transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.sv-cod-field select:focus,
.sv-cod-field textarea:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18);
	background-color: #f9fafb;
}
.sv-cod-field textarea {
	min-height: 70px;
	resize: vertical;
}

.sv-cod-char-count {
	display: block;
	text-align: right;
	font-size: 11px;
	color: #9ca3af;
	margin-top: 2px;
}

.sv-cod-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 4px;
}

.sv-cod-btn {
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.sv-cod-secondary {
	background: #f3f4f6;
	color: #374151;
	border-color: #e5e7eb;
}
.sv-cod-secondary:hover {
	background: #e5e7eb;
}

.sv-cod-primary {
	background: #ef4444;
	color: #ffffff;
	border-color: #ef4444;
	box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
}
.sv-cod-primary:hover {
	background: #dc2626;
	border-color: #dc2626;
}

.sv-cod-note {
	margin-top: 8px;
	font-size: 11px;
	color: #9ca3af;
	text-align: right;
}

@media (max-width: 480px) {
	.sv-cod-cancel-modal {
		padding: 20px 16px 16px;
	}
	.sv-cod-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.sv-cod-btn {
		width: 100%;
		text-align: center;
	}
}
