/**
 * Dope Back In Stock Button & Popup Modal styles
 */

/* Notify Me button below Out of Stock label */
.dbs-notify-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 38px;
	margin-top: 8px;
	padding: 0 14px;
	border: 1px solid rgba(8, 36, 107, 0.12);
	border-radius: 12px;
	background: #f3f6fb;
	color: #08246b;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dbs-notify-btn:hover,
.dbs-notify-btn:focus-visible {
	background: #08246b;
	color: #ffffff;
	box-shadow: 0 10px 20px rgba(8, 36, 107, 0.2);
}

.dbs-notify-btn:focus-visible {
	outline: 2px solid #34d3e8;
	outline-offset: 2px;
}

/* Modal Popup container */
.dbs-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dbs-modal.is-active {
	opacity: 1;
	visibility: visible;
}

/* Glassmorphism Overlay */
.dbs-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(16, 24, 40, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* Modal Card */
.dbs-modal__container {
	position: relative;
	width: 90%;
	max-width: 440px;
	padding: 36px 32px;
	background: #ffffff;
	border: 1px solid #e6e9ef;
	border-radius: 24px;
	box-shadow: 0 20px 48px rgba(16, 24, 40, 0.16);
	z-index: 2;
	transform: scale(0.92) translateY(12px);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dbs-modal.is-active .dbs-modal__container {
	transform: scale(1) translateY(0);
}

/* Close Button */
.dbs-modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #f3f5f8;
	color: #64748b;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.dbs-modal__close:hover,
.dbs-modal__close:focus-visible {
	background: #e2e8f0;
	color: #0f172a;
}

.dbs-modal__close:focus-visible {
	outline: 2px solid #34d3e8;
}

/* Modal Header Content */
.dbs-modal__title {
	margin: 0 0 8px;
	color: #112049;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.dbs-modal__subtitle {
	margin: 0 0 28px;
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
}

/* Form Styles */
.dbs-form__group {
	margin-bottom: 20px;
}

.dbs-form__group label {
	display: block;
	margin-bottom: 6px;
	color: #112049;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.dbs-form__group input {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	color: #0f172a;
	font-size: 14px;
	font-family: inherit;
	box-shadow: inset 0 2px 4px rgba(16, 24, 40, 0.02);
	transition: all 0.15s ease;
}

.dbs-form__group input:focus {
	border-color: #08246b;
	outline: none;
	box-shadow: 0 0 0 3px rgba(8, 36, 107, 0.12);
}

.dbs-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 12px 24px;
	border: 0;
	border-radius: 12px;
	background: #08246b;
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(8, 36, 107, 0.2);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dbs-form__submit:hover,
.dbs-form__submit:focus-visible {
	background: #061b51;
	box-shadow: 0 12px 24px rgba(8, 36, 107, 0.25);
}

.dbs-form__submit:focus-visible {
	outline: 2px solid #34d3e8;
	outline-offset: 2px;
}

.dbs-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
}

/* Success and Error Message Styling */
.dbs-form__message {
	margin-top: 18px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	display: none;
}

.dbs-form__message.is-success {
	display: block;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
}

.dbs-form__message.is-error {
	display: block;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}
