/* Pre-booking notice on product page */
.wpo-prebooking-notice {
	display: flex;
	gap: 16px;
	background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
	border: 1px solid #b3d4fc;
	border-left: 4px solid #1a73e8;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

.wpo-notice-icon {
	flex-shrink: 0;
	color: #1a73e8;
	margin-top: 2px;
}

.wpo-notice-content h4 {
	margin: 0 0 8px;
	font-size: 16px;
	color: #1a73e8;
}

.wpo-notice-content p {
	margin: 0 0 10px;
	font-size: 14px;
	color: #444;
	line-height: 1.5;
}

.wpo-discount-highlight {
	background: #e8f5e9;
	border-radius: 6px;
	padding: 10px 14px !important;
	color: #2e7d32 !important;
	font-weight: 600;
}

.wpo-notice-steps {
	margin: 10px 0 0;
	padding-left: 20px;
	font-size: 13px;
	color: #555;
	line-height: 1.8;
}

/* Pre Book button */
.wpo-prebook-button-wrap {
	margin: 15px 0;
}

.wpo-prebook-btn {
	background: #1a73e8 !important;
	color: #fff !important;
	font-size: 16px !important;
	padding: 14px 36px !important;
	border-radius: 6px !important;
	border: none !important;
	cursor: pointer;
	transition: background 0.2s;
	width: 100%;
	max-width: 320px;
}

.wpo-prebook-btn:hover {
	background: #1557b0 !important;
}

/* Modal overlay */
.wpo-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
}

.wpo-modal {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 960px;
	max-height: none;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: wpoSlideIn 0.3s ease;
}

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

.wpo-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #eee;
	background: #f8f9fa;
	border-radius: 12px 12px 0 0;
}

.wpo-modal-header h2 {
	margin: 0;
	font-size: 20px;
	color: #333;
}

.wpo-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #999;
	line-height: 1;
	padding: 0 4px;
}

.wpo-modal-close:hover {
	color: #333;
}

.wpo-modal-body {
	padding: 24px;
	overflow-y: visible;
	flex: 1;
}

.wpo-modal-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

@media (max-width: 768px) {
	.wpo-modal-grid {
		grid-template-columns: 1fr;
	}
}

.wpo-modal-section h3 {
	margin: 0 0 16px;
	font-size: 16px;
	color: #333;
	padding-bottom: 8px;
	border-bottom: 2px solid #1a73e8;
}

/* Product card */
.wpo-product-card {
	display: flex;
	gap: 14px;
	margin-bottom: 16px;
}

.wpo-product-image {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	background: #f0f0f0;
	flex-shrink: 0;
}

.wpo-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpo-product-info h4 {
	margin: 0 0 10px;
	font-size: 15px;
}

.wpo-product-qty label {
	display: block;
	font-size: 13px;
	margin-bottom: 4px;
	color: #666;
}

.wpo-product-qty input {
	width: 80px;
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Pricing summary */
.wpo-pricing-summary {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.wpo-price-row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 14px;
	color: #555;
}

.wpo-discount-row {
	color: #2e7d32;
	font-weight: 500;
}

.wpo-total-row {
	border-top: 1px solid #ddd;
	margin-top: 6px;
	padding-top: 10px;
	font-weight: 700;
	font-size: 16px;
	color: #333;
}

.wpo-advance-row {
	background: #e3f2fd;
	margin: 10px -16px -16px;
	padding: 12px 16px;
	border-radius: 0 0 8px 8px;
	font-weight: 700;
	color: #1a73e8;
	font-size: 15px;
}

/* Bank details */
.wpo-bank-details h4 {
	font-size: 14px;
	margin: 0 0 10px;
	color: #333;
}

.wpo-bank-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 8px;
	font-size: 12px;
	color: #555;
	line-height: 1.6;
}

.wpo-bank-card strong {
	display: block;
	color: #333;
	margin-bottom: 4px;
}

.wpo-bank-card p {
	margin: 0;
}

/* Form fields */
.wpo-form-row {
	display: flex;
	gap: 12px;
	margin-bottom: 0;
}

.wpo-form-row-2 .wpo-form-field {
	flex: 1;
}

.wpo-form-field {
	margin-bottom: 14px;
}

.wpo-form-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #444;
}

.wpo-form-field .required {
	color: #e53935;
}

.wpo-form-field input,
.wpo-form-field select,
.wpo-form-field textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.wpo-form-field input:focus,
.wpo-form-field select:focus,
.wpo-form-field textarea:focus {
	border-color: #1a73e8;
	outline: none;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Payment upload */
.wpo-payment-upload {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.wpo-payment-upload h4 {
	font-size: 14px;
	margin: 0 0 10px;
}

.wpo-optional {
	font-weight: 400;
	color: #999;
	font-size: 12px;
}

.wpo-payment-upload input[type="file"] {
	font-size: 13px;
	margin-bottom: 12px;
}

.wpo-or-divider {
	text-align: center;
	margin: 12px 0;
	position: relative;
}

.wpo-or-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #ddd;
}

.wpo-or-divider span {
	background: #fff;
	padding: 0 12px;
	position: relative;
	color: #999;
	font-size: 13px;
	font-weight: 600;
}

.wpo-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #25D366;
	color: #fff !important;
	text-decoration: none !important;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s;
}

.wpo-whatsapp-btn:hover {
	background: #1da851;
	color: #fff !important;
}

/* Modal footer */
.wpo-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 24px;
	border-top: 1px solid #eee;
	background: #f8f9fa;
	border-radius: 0 0 12px 12px;
}

.wpo-btn-primary {
	background: #1a73e8;
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.wpo-btn-primary:hover {
	background: #1557b0;
}

.wpo-btn-primary:disabled {
	background: #aaa;
	cursor: not-allowed;
}

.wpo-btn-secondary {
	background: #fff;
	color: #555;
	border: 1px solid #ddd;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
}

.wpo-btn-secondary:hover {
	background: #f5f5f5;
}

/* Form messages */
.wpo-form-message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-top: 16px;
	font-size: 14px;
}

.wpo-form-message.wpo-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.wpo-form-message.wpo-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

body.wpo-modal-open {
	overflow: hidden;
}

/* Pre-order notice below button */
.wpo-preorder-note {
	margin-top: 12px;
	padding: 14px 16px;
	background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
	border: 1px solid #f0c040;
	border-left: 4px solid #f59e0b;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.6;
	color: #5a4000;
}
.wpo-preorder-note .wpo-note-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 13.5px;
	color: #b45309;
	margin-bottom: 6px;
}
.wpo-preorder-note .wpo-note-title svg {
	flex-shrink: 0;
}
.wpo-preorder-note ul {
	margin: 0;
	padding: 0 0 0 18px;
	list-style: disc;
}
.wpo-preorder-note ul li {
	margin-bottom: 3px;
}
.wpo-preorder-note .wpo-note-highlight {
	display: inline-block;
	margin-top: 7px;
	background: #f59e0b;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 20px;
	letter-spacing: 0.3px;
}
