/* WC Popup Login - Luxury Design */

/* Overlay */
.wcpl-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	overflow-y: auto;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	padding: 20px;
}

.wcpl-popup-overlay.active {
	display: flex;
	opacity: 1;
}

/* Popup Container */
.wcpl-popup-container {
	background-color: #ffffff;
	width: 100%;
	max-width: 420px;
	border-radius: 2px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	padding: 60px 45px;
	position: relative;
	animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	border: 1px solid #f0f0f0;
}

@keyframes slideUp {
	from {
		transform: translateY(40px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Close Button */
.wcpl-popup-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	font-size: 32px;
	cursor: pointer;
	color: #999;
	transition: color 0.3s ease;
	padding: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 300;
}

.wcpl-popup-close:hover {
	color: #000;
}

/* Luxury Form Styles */
.wcpl-form-luxury {
	text-align: center;
}

.wcpl-form-icon {
	width: 36px;
	height: 36px;
	background-color: #1a1a1a;
	border-radius: 50%;
	margin: 0 auto 25px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wcpl-form-icon svg {
	width: 18px;
	height: 18px;
	fill: white;
	stroke: white;
	stroke-width: 0.5;
}

.wcpl-form-title {
	margin: 0 0 8px 0;
	font-size: 20px;
	font-weight: 500;
	color: #1a1a1a;
	letter-spacing: 0.3px;
	text-transform: none;
}

.wcpl-form-subtitle {
	margin: 0 0 30px 0;
	font-size: 13px;
	color: #888;
	font-weight: 400;
	line-height: 1.5;
}

.wcpl-form {
	display: none;
}

.wcpl-form-active {
	display: block;
}

.wcpl-form-group {
	margin-bottom: 22px;
	text-align: left;
}

.wcpl-form-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: #1a1a1a;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wcpl-required {
	color: #d32f2f;
}

/* Input Group with Icon */
.wcpl-input-group {
	position: relative;
	display: flex;
	align-items: center;
}

.wcpl-input-icon {
	position: absolute;
	left: 15px;
	font-size: 18px;
	color: #999;
	pointer-events: none;
}

.wcpl-input-group .wcpl-input {
	padding-left: 45px !important;
}

.wcpl-input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #ddd;
	border-radius: 1px;
	font-size: 14px;
	transition: all 0.3s ease;
	box-sizing: border-box;
	font-family: inherit;
	background-color: #fafafa;
}

.wcpl-input:focus {
	outline: none;
	border-color: #1a1a1a;
	background-color: #fff;
	box-shadow: none;
}

.wcpl-input::placeholder {
	color: #aaa;
}

.wcpl-otp-input {
	text-align: center;
	font-size: 32px;
	letter-spacing: 12px;
	font-weight: 600;
}

/* Checkbox Styling */
.wcpl-checkbox-group {
	margin-bottom: 18px;
	text-align: left;
}

.wcpl-checkbox-label {
	display: flex;
	align-items: flex-start;
	font-weight: normal !important;
	font-size: 13px;
	color: #666 !important;
	cursor: pointer;
	user-select: none;
	gap: 10px;
	line-height: 1.6;
}

.wcpl-checkbox-label a {
	color: #000;
	text-decoration: underline;
	font-weight: 600;
}

.wcpl-checkbox-label a:hover {
	text-decoration: none;
}

.wcpl-checkbox {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #000;
	flex-shrink: 0;
	margin-top: 3px;
	border-radius: 3px;
}

.wcpl-checkbox:focus {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* Buttons */
.wcpl-btn {
	padding: 12px 20px;
	font-size: 12px;
	border: none;
	border-radius: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.wcpl-btn-block {
	width: 100%;
	display: block;
	margin: 0;
}

.wcpl-btn-primary {
	background-color: #1a1a1a;
	color: white;
	padding: 14px 22px !important;
	font-size: 12px !important;
	margin-top: 8px;
}

.wcpl-btn-primary:hover:not(:disabled) {
	background-color: #333;
	box-shadow: none;
	transform: none;
}

.wcpl-btn-primary:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.wcpl-btn-luxury {
	padding: 16px 24px;
	font-size: 14px;
	margin-top: 8px;
	margin-bottom: 20px;
}

.wcpl-btn-secondary {
	background-color: #666;
	color: white;
}

.wcpl-btn-secondary:hover:not(:disabled) {
	background-color: #444;
	box-shadow: 0 6px 16px rgba(102, 102, 102, 0.3);
}

/* Divider */
.wcpl-divider {
	position: relative;
	text-align: center;
	margin: 25px 0;
	font-size: 13px;
	color: #999;
}

.wcpl-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background-color: #eee;
	transform: translateY(-50%);
}

.wcpl-divider span {
	background-color: #fff;
	padding: 0 15px;
	position: relative;
}

/* Social Login */
.wcpl-social-login {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 25px;
}

.wcpl-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background-color: #fff;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #1a1a1a;
}

.wcpl-social-btn:hover {
	border-color: #1a1a1a;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

.wcpl-social-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.wcpl-social-google {
	border-color: #4285f4;
	color: #4285f4;
}

.wcpl-social-facebook {
	border-color: #1877f2;
	color: #1877f2;
}

/* Toggle Links */
.wcpl-toggle-register,
.wcpl-toggle-login {
	text-align: center;
	font-size: 13px;
	color: #666;
	margin-top: 20px;
}

.wcpl-toggle-register a,
.wcpl-toggle-login a {
	color: #000;
	text-decoration: underline;
	cursor: pointer;
	font-weight: 600;
	transition: color 0.3s ease;
}

.wcpl-toggle-register a:hover,
.wcpl-toggle-login a:hover {
	color: #666;
}

/* OTP Section */
.wcpl-otp-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.wcpl-otp-timer {
	text-align: center;
	font-size: 13px;
	color: #999;
	margin-top: 15px;
	animation: fadeInOut 1s infinite;
}

@keyframes fadeInOut {
	0%, 100% { opacity: 0.6; }
	50% { opacity: 1; }
}

/* Verified Section */
.wcpl-otp-verified {
	text-align: center;
}

.wcpl-success-message {
	color: #4caf50;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 20px;
}

/* Messages */
.wcpl-message {
	margin-top: 15px;
	padding: 12px;
	border-radius: 6px;
	font-size: 13px;
	text-align: center;
	display: none;
}

.wcpl-message.error {
	display: block;
	background-color: #fee;
	color: #c33;
	border: 1px solid #fcc;
}

.wcpl-message.success {
	display: block;
	background-color: #efe;
	color: #3c3;
	border: 1px solid #cfc;
}

.wcpl-message.info {
	display: block;
	background-color: #eef;
	color: #33c;
	border: 1px solid #ccf;
}

/* Responsive */
@media (max-width: 600px) {
	.wcpl-popup-container {
		width: calc(100% - 20px);
		padding: 40px 24px;
	}

	.wcpl-form-title {
		font-size: 24px;
	}

	.wcpl-form-subtitle {
		font-size: 14px;
	}

	.wcpl-btn {
		padding: 12px 20px;
		font-size: 12px;
	}

	.wcpl-social-login {
		grid-template-columns: 1fr 1fr;
	}

	.wcpl-social-btn {
		padding: 10px;
		font-size: 11px;
	}
}

@media (max-width: 400px) {
	.wcpl-popup-overlay {
		padding: 0;
		align-items: flex-end;
	}

	.wcpl-popup-container {
		border-radius: 16px 16px 0 0;
		max-width: 100%;
		width: 100%;
	}

	.wcpl-form-icon {
		width: 70px;
		height: 70px;
		margin-bottom: 20px;
	}

	.wcpl-form-icon svg {
		width: 35px;
		height: 35px;
	}

	.wcpl-form-title {
		font-size: 22px;
	}

	.wcpl-form-subtitle {
		margin-bottom: 25px;
	}
}

	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #999;
	transition: color 0.3s ease;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wcpl-popup-close:hover {
	color: #333;
}

/* Popup Header */
.wcpl-popup-header {
	text-align: center;
	margin-bottom: 30px;
	border-bottom: 1px solid #eee;
	padding-bottom: 20px;
}

.wcpl-popup-header h2 {
	margin: 0 0 20px 0;
	font-size: 24px;
	color: #333;
	font-weight: 600;
}

/* Toggle Switch */
.wcpl-toggle-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.wcpl-toggle-label {
	font-size: 14px;
	color: #666;
	font-weight: 500;
	margin: 0;
	cursor: pointer;
	user-select: none;
}

.wcpl-toggle-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
	margin: 0;
}

.wcpl-toggle-checkbox {
	opacity: 0;
	width: 0;
	height: 0;
}

.wcpl-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.3s;
	border-radius: 24px;
}

.wcpl-toggle-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
}

.wcpl-toggle-checkbox:checked + .wcpl-toggle-slider {
	background-color: #4CAF50;
}

.wcpl-toggle-checkbox:checked + .wcpl-toggle-slider:before {
	transform: translateX(26px);
}

/* Forms */
.wcpl-form {
	display: none;
}

.wcpl-form-active {
	display: block;
}

.wcpl-form-group {
	margin-bottom: 20px;
}

.wcpl-form-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: #333;
	font-weight: 500;
}

/* Checkbox Group */
.wcpl-checkbox-group {
	margin-bottom: 15px;
}

.wcpl-checkbox-group label {
	margin-bottom: 0;
}

.wcpl-checkbox-label {
	display: flex;
	align-items: center;
	font-weight: normal !important;
	font-size: 13px;
	color: #666 !important;
	cursor: pointer;
	user-select: none;
	gap: 8px;
}

.wcpl-checkbox-label a {
	color: #4CAF50;
	text-decoration: none;
	font-weight: 600;
}

.wcpl-checkbox-label a:hover {
	text-decoration: underline;
}

.wcpl-checkbox {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #4CAF50;
	flex-shrink: 0;
}

.wcpl-checkbox:focus {
	outline: 2px solid #4CAF50;
	outline-offset: 2px;
}

.wcpl-input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	box-sizing: border-box;
	font-family: inherit;
}

.wcpl-input:focus {
	outline: none;
	border-color: #4CAF50;
	box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.wcpl-input::placeholder {
	color: #999;
}

/* Buttons */
.wcpl-btn {
	padding: 12px 24px;
	font-size: 14px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wcpl-btn-block {
	width: 100%;
	display: block;
	margin: 0;
}

.wcpl-btn-primary {
	background-color: #4CAF50;
	color: white;
}

.wcpl-btn-primary:hover:not(:disabled) {
	background-color: #45a049;
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
	transform: translateY(-2px);
}

.wcpl-btn-primary:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.wcpl-btn-secondary {
	background-color: #2196F3;
	color: white;
}

.wcpl-btn-secondary:hover:not(:disabled) {
	background-color: #0b7dda;
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
	transform: translateY(-2px);
}

.wcpl-btn-secondary:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

/* OTP Section */
.wcpl-otp-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.wcpl-otp-timer {
	text-align: center;
	font-size: 12px;
	color: #999;
	margin-top: 12px;
}

/* Verified Section */
.wcpl-otp-verified {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.wcpl-success-message {
	text-align: center;
	color: #4CAF50;
	font-weight: 600;
	margin-bottom: 15px;
	font-size: 14px;
}

/* Messages */
.wcpl-message {
	margin-top: 15px;
	padding: 12px;
	border-radius: 6px;
	text-align: center;
	font-size: 14px;
	display: none;
}

.wcpl-message.error {
	display: block;
	background-color: #ffebee;
	color: #c62828;
	border: 1px solid #ef5350;
}

.wcpl-message.success {
	display: block;
	background-color: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #66bb6a;
}

.wcpl-message.info {
	display: block;
	background-color: #e3f2fd;
	color: #1565c0;
	border: 1px solid #42a5f5;
}

/* Trigger Button */
.wcpl-popup-trigger {
	position: fixed;
	bottom: 30px;
	right: 30px;
	padding: 15px 25px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	z-index: 9998;
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
	transition: all 0.3s ease;
}

.wcpl-popup-trigger:hover {
	background-color: #45a049;
	box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
	transform: translateY(-2px);
}

/* Position Classes */
.wcpl-popup-trigger.wcpl-trigger-bottom-right {
	bottom: 30px;
	right: 30px;
}

.wcpl-popup-trigger.wcpl-trigger-bottom-left {
	bottom: 30px;
	left: 30px;
}

.wcpl-popup-trigger.wcpl-trigger-top-right {
	top: 30px;
	right: 30px;
}

.wcpl-popup-trigger.wcpl-trigger-top-left {
	top: 30px;
	left: 30px;
}

/* Loading Spinner */
.wcpl-loading {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 0.8s linear infinite;
	margin-right: 8px;
	vertical-align: middle;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive Design */
@media (max-width: 600px) {
	.wcpl-popup-container {
		width: 95%;
		max-width: 100%;
		padding: 30px 20px;
		margin: 20px;
	}

	.wcpl-popup-header h2 {
		font-size: 20px;
	}

	.wcpl-toggle-container {
		flex-wrap: wrap;
		gap: 10px;
	}

	.wcpl-toggle-label {
		font-size: 12px;
	}

	.wcpl-popup-trigger {
		bottom: 20px;
		right: 20px;
		padding: 12px 20px;
		font-size: 12px;
	}

	.wcpl-btn {
		padding: 10px 20px;
		font-size: 13px;
	}

	.wcpl-popup-close {
		top: 10px;
		right: 10px;
		font-size: 24px;
	}
}

/* Print Styles */
@media print {
	.wcpl-popup-overlay,
	.wcpl-popup-trigger {
		display: none !important;
	}
}
