/* Stinger Site Notice — front-end styles */

.ssn-notice {
	position: fixed;
	z-index: 99999;
	max-width: 360px;
	width: calc(100% - 32px);
	box-sizing: border-box;
	background: #ffffff;
	color: #1f2933;
	border-radius: 12px;
	border-left: 6px solid #999;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	padding: 16px 40px 16px 18px;
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.ssn-notice.ssn-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Corner / top positions */
.ssn-pos-bottom-right { right: 16px; bottom: 16px; }
.ssn-pos-bottom-left  { left: 16px;  bottom: 16px; }
.ssn-pos-top {
	top: 16px;
	left: 50%;
	transform: translate(-50%, -14px);
}
.ssn-pos-top.ssn-visible {
	transform: translate(-50%, 0);
}

/* Centered modal: full-screen dimmed overlay with the card in the middle */
.ssn-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 23, 42, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.ssn-overlay.ssn-visible {
	opacity: 1;
}
.ssn-overlay .ssn-notice {
	position: static;
	max-width: 460px;
	width: 100%;
	padding: 26px 30px 28px;
	opacity: 1;
	transform: scale(0.96);
	transition: transform 0.25s ease;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.ssn-overlay.ssn-visible .ssn-notice {
	transform: scale(1);
}
.ssn-overlay .ssn-title { font-size: 22px; }
.ssn-overlay .ssn-message { font-size: 16px; }

/* Style variants — MadCo Tubing brand palette
   accent (orange) #FF9400 · primary (blue) #2F62AF · brown logo #A65C32 · text #54595F */
.ssn-alert   { border-left-color: #FF9400; }
.ssn-info    { border-left-color: #2F62AF; }
.ssn-success { border-left-color: #1E8E3E; }

.ssn-title {
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 4px;
}
.ssn-alert   .ssn-title { color: #A65C32; }
.ssn-info    .ssn-title { color: #2F62AF; }
.ssn-success .ssn-title { color: #146C2E; }

.ssn-message { color: #54595F; }
.ssn-message a { color: #2F62AF; text-decoration: underline; }

.ssn-notice .ssn-close {
	position: absolute !important;
	top: 8px;
	right: 8px;
	width: 28px !important;
	height: 28px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	color: #6b7280 !important;
	line-height: 1 !important;
	text-align: center;
	cursor: pointer;
	border-radius: 50% !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: none !important;
	outline: none;
}
.ssn-notice .ssn-close svg {
	display: block;
	width: 15px;
	height: 15px;
	pointer-events: none;
}
.ssn-notice .ssn-close svg line {
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
}
.ssn-notice .ssn-close:hover {
	background: #f1f3f5 !important;
	color: #111827 !important;
}
/* Bigger, clearer close button on the modal so it's obviously how to proceed */
.ssn-overlay .ssn-notice .ssn-close {
	top: 16px;
	right: 16px;
	width: 36px !important;
	height: 36px !important;
	border: 1px solid #e2e6ea !important;
	border-radius: 8px !important;
}
.ssn-overlay .ssn-notice .ssn-close svg {
	width: 18px;
	height: 18px;
}

/* Mobile */
@media (max-width: 480px) {
	.ssn-notice {
		max-width: none;
		left: 12px;
		right: 12px;
		width: auto;
	}
	.ssn-pos-top {
		left: 12px;
		right: 12px;
		transform: translateY(-14px);
	}
	.ssn-pos-top.ssn-visible {
		transform: translateY(0);
	}
	.ssn-overlay .ssn-notice {
		left: auto;
		right: auto;
		width: 100%;
		padding: 22px 22px 24px;
	}
	.ssn-overlay .ssn-title { font-size: 20px; }
}
