/**
 * Styles for Custom Package Booking Widget
 */

.fl-custom-pkg-widget {
	--fl-pkg-bg-darker: rgba(0, 0, 0, 0.25);
	--fl-pkg-border-color: rgba(255, 255, 255, 0.1);
	--fl-pkg-border-hover: rgba(255, 255, 255, 0.25);
	--fl-pkg-text-muted: rgba(255, 255, 255, 0.6);
	--fl-pkg-input-bg: rgba(255, 255, 255, 0.04);

	box-sizing: border-box;
	max-width: 450px;
	width: 100%;
	margin: 20px auto;
	background-color: var(--fl-tb-bg, #20231b);
	color: var(--fl-tb-text, #f0f2eb);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: var(--fl-tb-font-size, 16px);
	border-radius: var(--fl-tb-radius, 24px);
	padding: 30px;
	border: 1px solid var(--fl-pkg-border-color);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fl-custom-pkg-widget * {
	box-sizing: border-box;
}

.fl-custom-pkg-header {
	margin-bottom: 25px;
	border-bottom: 1px solid var(--fl-pkg-border-color);
	padding-bottom: 15px;
}

.fl-custom-pkg-title {
	font-family: Georgia, serif;
	font-size: 1.85rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 8px 0;
	line-height: 1.25;
}

.fl-custom-pkg-subtitle {
	font-size: 0.9rem;
	color: var(--fl-pkg-text-muted);
	margin: 0;
	line-height: 1.45;
}

.fl-custom-pkg-section {
	margin-bottom: 22px;
}

.fl-custom-pkg-section-title {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--fl-pkg-text-muted);
	margin-bottom: 10px;
	text-transform: uppercase;
}

.fl-custom-pkg-date-wrapper input[type="date"] {
	width: 100%;
	padding: 14px 16px;
	background-color: var(--fl-pkg-input-bg);
	border: 1px solid var(--fl-pkg-border-color);
	border-radius: 12px;
	color: #ffffff;
	font-size: 0.95rem;
	font-family: inherit;
	outline: none;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.fl-custom-pkg-date-wrapper input[type="date"]:focus {
	border-color: var(--fl-tb-accent, #659b41);
}

.fl-custom-pkg-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.fl-custom-pkg-qty-control {
	display: flex;
	align-items: center;
	background-color: var(--fl-pkg-input-bg);
	border: 1px solid var(--fl-pkg-border-color);
	border-radius: 12px;
	padding: 4px;
}

.fl-custom-pkg-qty-control .qty-btn {
	background: none;
	border: none;
	width: 32px;
	height: 32px;
	color: #ffffff;
	font-size: 1.2rem;
	cursor: pointer;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.fl-custom-pkg-qty-control .qty-btn:hover:not(:disabled) {
	background-color: rgba(255, 255, 255, 0.08);
}

.fl-custom-pkg-qty-control .qty-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.fl-custom-pkg-qty-control .qty-val {
	font-size: 1.05rem;
	font-weight: 700;
	min-width: 32px;
	text-align: center;
	color: #ffffff;
}

/* Option panel standard vs premium grid */
.fl-custom-pkg-option-panel {
	transition: all 0.3s ease;
	max-height: 200px;
	opacity: 1;
	overflow: hidden;
}

.fl-custom-pkg-option-panel.hidden {
	max-height: 0;
	opacity: 0;
	margin-bottom: 0;
	display: block !important;
}

.fl-custom-pkg-options-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.fl-custom-pkg-option {
	display: flex;
	flex-direction: column;
	background-color: var(--fl-pkg-input-bg);
	border: 1px solid var(--fl-pkg-border-color);
	border-radius: 12px;
	padding: 12px;
	cursor: pointer;
	transition: all 0.25s ease;
	position: relative;
	user-select: none;
}

.fl-custom-pkg-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.fl-custom-pkg-option:hover {
	border-color: var(--fl-pkg-border-hover);
}

.fl-custom-pkg-option.active {
	border-color: var(--fl-tb-accent, #659b41);
	background-color: rgba(101, 155, 65, 0.08);
}

.fl-custom-pkg-option .option-label-text {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--fl-pkg-text-muted);
	margin-bottom: 4px;
	transition: color 0.2s ease;
}

.fl-custom-pkg-option.active .option-label-text {
	color: #ffffff;
}

.fl-custom-pkg-option .option-price-text {
	font-size: 1.15rem;
	font-weight: 700;
	color: #ffffff;
}

/* Breakdown box */
.fl-custom-pkg-breakdown-box {
	background-color: var(--fl-pkg-bg-darker);
	border: 1px solid var(--fl-pkg-border-color);
	border-radius: 8px;
	padding: 15px;
	margin-top: 10px;
	margin-bottom: 22px;
}

.fl-custom-pkg-breakdown-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	margin-bottom: 10px;
	color: var(--fl-pkg-text-muted);
}

.fl-custom-pkg-breakdown-row:last-child {
	margin-bottom: 0;
}

.fl-custom-pkg-breakdown-desc {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fl-custom-pkg-breakdown-label {
	color: #ffffff;
	font-weight: 600;
}

.fl-custom-pkg-breakdown-arrow {
	color: var(--fl-tb-accent, #659b41);
	font-weight: 700;
	font-family: monospace;
	letter-spacing: -1px;
}

.fl-custom-pkg-breakdown-subtotal {
	font-weight: 700;
	color: #ffffff;
}

/* Total Price Row */
.fl-custom-pkg-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 0 5px;
}

.fl-custom-pkg-total-label {
	font-size: 1.1rem;
	color: var(--fl-pkg-text-muted);
	font-weight: 600;
}

.fl-custom-pkg-total-value {
	font-size: 1.85rem;
	font-weight: 700;
	font-family: Georgia, serif;
	color: #ffffff;
}

/* Buttons */
.fl-custom-pkg-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fl-custom-pkg-btn {
	width: 100%;
	padding: 15px 20px;
	border-radius: 12px;
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.fl-custom-pkg-book-btn {
	background-color: var(--fl-tb-accent, #659b41);
	color: #ffffff;
	border: none;
}

.fl-custom-pkg-book-btn:hover:not(:disabled) {
	opacity: 0.9;
}

.fl-custom-pkg-book-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.fl-custom-pkg-whatsapp-btn {
	background-color: #ffffff;
	border: 1px solid #e1dbcd;
	color: #1e1e1e;
}

.fl-custom-pkg-whatsapp-btn:hover {
	background-color: #f7f6f2;
}

/* Notices */
.fl-custom-pkg-notice {
	margin-top: 15px;
	padding: 12px 15px;
	border-radius: 8px;
	font-size: 0.9rem;
	line-height: 1.4;
}

.fl-custom-pkg-notice.success {
	background-color: rgba(46, 125, 50, 0.15);
	border: 1px solid rgba(46, 125, 50, 0.3);
	color: #a5d6a7;
}

.fl-custom-pkg-notice.error {
	background-color: rgba(198, 40, 40, 0.15);
	border: 1px solid rgba(198, 40, 40, 0.3);
	color: #ef9a9a;
}

.fl-custom-pkg-notice.hidden {
	display: none;
}

.btn-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: spin 1s ease-in-out infinite;
}

.btn-spinner.hidden {
	display: none;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}
