/* Binsbay Design Collection Modal Styling - Modern UI */

.binsbay-modal-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.binsbay-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.5); /* Slate 900 with opacity */
	backdrop-filter: blur(8px);
}

.binsbay-modal-content {
	position: relative;
	background: #ffffff;
	width: 90%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
	z-index: 10;
	animation: binsbayModalShow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes binsbayModalShow {
	from { opacity: 0; transform: scale(0.95) translateY(20px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

.binsbay-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: #f1f5f9; /* Slate 100 */
	border: none;
	color: #64748b; /* Slate 500 */
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.binsbay-modal-close:hover {
	background: #e2e8f0; /* Slate 200 */
	color: #0f172a; /* Slate 900 */
}

.binsbay-modal-header {
	text-align: center;
	margin-bottom: 24px;
}

.binsbay-modal-header h3 {
	margin: 0 0 8px 0;
	font-size: 24px;
	color: #0f172a; /* Slate 900 */
	font-weight: 700;
	letter-spacing: -0.02em;
}

.binsbay-modal-header p {
	margin: 0;
	color: #64748b; /* Slate 500 */
	font-size: 15px;
	line-height: 1.5;
}

.binsbay-design-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 32px;
}

.binsbay-design-option {
	cursor: pointer;
	display: block;
}

.binsbay-design-option input[type="radio"] {
	display: none;
}

.option-card {
	border: 2px solid #e2e8f0; /* Slate 200 */
	border-radius: 12px;
	background: #ffffff;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.binsbay-design-option:hover .option-card {
	border-color: #cbd5e1; /* Slate 300 */
}

.binsbay-design-option.selected .option-card {
	border-color: #3b82f6; /* Blue 500 */
	background: #eff6ff; /* Blue 50 */
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.option-card-header {
	display: flex;
	align-items: center;
	padding: 16px;
}

.option-icon {
	color: #64748b;
	margin-right: 16px;
	display: flex;
	align-items: center;
	transition: color 0.2s;
}

.binsbay-design-option.selected .option-icon {
	color: #3b82f6;
}

.option-text {
	flex-grow: 1;
}

.option-text strong {
	display: block;
	font-size: 16px;
	color: #0f172a;
	margin-bottom: 2px;
	font-weight: 600;
}

.option-text span {
	display: block;
	font-size: 13px;
	color: #64748b;
}

.binsbay-design-option.selected .option-text strong {
	color: #1d4ed8; /* Blue 700 */
}

.option-radio-circle {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	position: relative;
	transition: all 0.2s;
}

.binsbay-design-option.selected .option-radio-circle {
	border-color: #3b82f6;
	background: #3b82f6;
}

.binsbay-design-option.selected .option-radio-circle::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}

.option-body {
	padding: 0 16px 16px 56px; /* Align with text */
}

/* Upload Area specific styling */
.area-upload .trigger-file-upload {
	background: #fff;
	color: #0f172a;
	border: 1px solid #cbd5e1;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
}

.area-upload .trigger-file-upload:hover {
	background: #f8fafc;
	border-color: #94a3b8;
}

.file-upload-name {
	margin-top: 8px;
	font-size: 13px;
	color: #3b82f6;
	word-break: break-all;
	font-weight: 500;
}

/* Link Area specific styling */
.area-link .ui_design_link {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	color: #0f172a;
	background: #fff;
	transition: all 0.2s;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.area-link .ui_design_link:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Assistance Area specific styling */
.assistance-msg {
	color: #15803d !important; /* Green 700 */
	font-size: 14px;
	line-height: 1.5;
	margin: 0 !important;
	padding: 12px;
	background: #f0fdf4; /* Green 50 */
	border-radius: 8px;
	border: 1px solid #dcfce3;
}

/* Error Messages */
.error-msg {
	color: #ef4444; /* Red 500 */
	font-size: 13px;
	margin-top: 8px;
	font-weight: 500;
}

/* Footer & Continue Button */
.binsbay-modal-footer {
	text-align: center;
	margin-top: 8px;
}

.binsbay-modal-footer .binsbay-design-continue {
	width: 100%;
	background: #83b735; /* Woodmart Primary */
	color: #fff;
	border: none;
	padding: 14px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 6px rgba(131, 183, 53, 0.2);
}

.binsbay-modal-footer .binsbay-design-continue:hover:not(.disabled) {
	background: #6e992b;
	transform: translateY(-1px);
	box-shadow: 0 6px 12px rgba(131, 183, 53, 0.25);
}

.binsbay-modal-footer .binsbay-design-continue:active:not(.disabled) {
	transform: translateY(0);
}

.binsbay-modal-footer .binsbay-design-continue.disabled {
	background: #cbd5e1; /* Slate 300 */
	color: #f8fafc; /* Slate 50 */
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
	.binsbay-modal-content {
		width: 95%;
		padding: 24px 20px;
		max-height: 95vh;
	}

	.binsbay-modal-close {
		top: 12px;
		right: 12px;
		padding: 6px;
	}

	.binsbay-modal-header h3 {
		font-size: 20px;
	}

	.binsbay-modal-header p {
		font-size: 14px;
	}

	.binsbay-design-options {
		gap: 10px;
		margin-bottom: 24px;
	}

	.option-card-header {
		padding: 12px;
	}

	.option-icon {
		margin-right: 12px;
	}

	.option-icon svg {
		width: 20px;
		height: 20px;
	}

	.option-text strong {
		font-size: 15px;
	}

	.option-text span {
		font-size: 12px;
	}

	.option-radio-circle {
		width: 18px;
		height: 18px;
	}

	.option-body {
		padding: 0 12px 12px 44px; /* Align with text */
	}

	.binsbay-modal-footer .binsbay-design-continue {
		padding: 12px;
		font-size: 15px;
	}
}
