/* Frontend Styles for Restaurant Quick Order Plugin */

/* Produkt Liste */
.rqo-product-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin: 20px 0;
}

.rqo-product-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	transition: background-color 0.3s ease;
	box-shadow: 0 0 10px #ccc;
}

.rqo-product-item:hover {
	background-color: #f9f9f9;
}

.rqo-product-info {
	display: flex;
	gap: 15px;
	align-items: center;
	flex: 1;
}

.rqo-product-image {
	flex-shrink: 0;
}

.rqo-product-image img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 6px;
}

.rqo-product-details {
	flex: 1;
}

.rqo-product-title {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.rqo-product-description {
	margin: 0 0 8px 0;
	font-size: 14px;
	color: #666;
	line-height: 1.4;
}

.rqo-product-price {
	font-size: 16px;
	font-weight: 700;
	color: #000000;
}

.rqo-product-actions {
	flex-shrink: 0;
	display: flex;
	gap: 10px;
}

.rqo-quick-add {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: #000000;
	color: #fff;
	border: none;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}

.rqo-quick-add:hover {
	background: #236121;
}

.rqo-customize-btn {
	padding: 10px 20px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.3s ease;
}

.rqo-customize-btn:hover {
	background: #005177;
}

/* Modal Styles */
.rqo-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	overflow-y: auto;
}

.rqo-modal-content {
	background-color: #fff;
	margin: 5% auto;
	padding: 0;
	border-radius: 12px;
	width: 90%;
	max-width: 700px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	max-height: 85vh;
	overflow-y: auto;
}

.rqo-modal-close {
	color: #aaa;
	float: right;
	font-size: 32px;
	font-weight: bold;
	line-height: 1;
	padding: 10px 20px;
	cursor: pointer;
}

.rqo-modal-close:hover {
	color: #000;
}

#rqo-modal-body {
	padding: 20px 30px;
}

.rqo-modal-product h2 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #333;
}

.rqo-modal-description {
	margin-bottom: 20px;
	color: #666;
	line-height: 1.6;
}

.rqo-base-price {
	margin-bottom: 20px;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 6px;
	font-size: 16px;
}

.rqo-modal-section {
	margin-bottom: 25px;
}

.rqo-modal-section h3 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #333;
	font-size: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid #0073aa;
}

/* Tilbehør Options */
.rqo-addons-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rqo-addon-option,
.rqo-option-checkbox {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	background: #f9f9f9;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.rqo-addon-option:hover,
.rqo-option-checkbox:hover {
	background: #f0f0f0;
	border-color: #0073aa;
}

.rqo-addon-option input[type="checkbox"],
.rqo-option-checkbox input[type="checkbox"] {
	margin-right: 12px;
	cursor: pointer;
	width: 20px;
	height: 20px;
}
.rqo-addon-name,
.rqo-option-name {
	flex: 1;
	font-size: 15px;
	color: #333;
}

.rqo-addon-price,
.rqo-option-price {
	font-weight: 600;
	color: #000000;
	margin-left: 10px;
}

/* Grid Options (for Radio Buttons) */
.rqo-options-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.rqo-option-card {
	position: relative;
	cursor: pointer;
}

.rqo-option-card input[type="radio"] {
	position: absolute;
	opacity: 0;
}

.rqo-option-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 15px;
	background: #f9f9f9;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	text-align: center;
	min-height: 90px;
	transition: all 0.3s ease;
}

.rqo-option-card:hover .rqo-option-content {
	background: #f0f0f0;
	border-color: #0073aa;
}

.rqo-option-card input[type="radio"]:checked ~ .rqo-option-content {
	background: #e8f4f8;
	border-color: #0073aa;
	border-width: 3px;
}

.rqo-option-card .rqo-option-name {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
}

.rqo-options-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Modal Footer */
.rqo-modal-footer {
	padding: 20px 30px;
	background: #f9f9f9;
	border-top: 1px solid #e0e0e0;
	text-align: right;
	border-radius: 0 0 12px 12px;
}

.rqo-add-to-cart-custom {
	padding: 12px 30px;
	background: #000000;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.rqo-add-to-cart-custom:hover {
	background: #236121;
}

/* Loading State */
.rqo-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Success Message */
.rqo-success-message {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #000000;
	color: #fff;
	padding: 15px 25px;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	z-index: 10000;
	animation: slideIn 0.3s ease;
}
/* Kommentarfelt styling */
.rqo-comments-field {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	resize: vertical;
	min-height: 80px;
}

.rqo-comments-field:focus {
	outline: none;
	border-color: #2c7a2f;
	box-shadow: 0 0 0 2px rgba(44, 122, 47, 0.1);
}

.rqo-field-description {
	font-size: 12px;
	color: #666;
	margin-top: 5px;
	font-style: italic;
}
/* Modal beskrivelse styling */
.rqo-modal-description {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin: 10px 0 20px 0;
	padding: 12px;
	background: #f9f9f9;
	border-left: 3px solid #2c7a2f;
	border-radius: 4px;
}

.rqo-modal-product h2 {
	margin-bottom: 10px;
}

/* ==========================================
   STICKY CART STYLES - UPDATED
   ========================================== */
/* Customizations i sticky cart */
   .rqo-cart-customizations {
	   margin-top: 6px;
	   padding-top: 6px;
	   border-top: 1px solid #f0f0f0;
	   font-size: 11px;
	   color: #666;
	   line-height: 1.4;
   }
   
   .rqo-cart-custom-item {
	   margin-bottom: 3px;
   }
   
   .rqo-custom-label {
	   font-weight: 600;
	   color: #555;
   }
   
   .rqo-custom-value {
	   color: #777;
   }
   
   /* Highlight kommentarer specielt */
   .rqo-cart-custom-item:has(.rqo-custom-label:contains("Kommentar")) .rqo-custom-value {
	   font-style: italic;
	   color: #d9534f;
   }
   
   /* Mobil: Gør teksten lidt mindre */
   @media (max-width: 768px) {
	   .rqo-cart-customizations {
		   font-size: 10px;
	   }
   }
   
   /* Desktop: Vis customizations elegant */
   @media (min-width: 769px) {
	   .rqo-cart-customizations {
		   max-height: 100px;
		   overflow-y: auto;
	   }
   }

/* Desktop Sticky Cart */
.rqo-sticky-cart {
	position: fixed;
	top: 20px; /* Default - opdateres automatisk af JavaScript */
	right: 20px;
	width: 350px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	z-index: 999;
	transition: all 0.3s ease;
}

.rqo-sticky-cart[data-position="left"] {
	right: auto;
	left: 20px;
}

.rqo-sticky-cart-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 20px;
	background: #0073aa;
	color: #fff;
	border-radius: 12px 12px 0 0;
	cursor: pointer;
	font-weight: 600;
}

.rqo-cart-icon {
	font-size: 24px;
}

.rqo-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	background: #fff;
	color: #000000;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
}

.rqo-cart-label {
	flex: 1;
	font-size: 16px;
}

/* OPDATERET: Desktop altid åben som standard */
.rqo-sticky-cart-content {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 200px);
	overflow: hidden;
}

/* Mobil: Lukket som standard */
@media (max-width: 1024px) {
	.rqo-sticky-cart-content {
		max-height: 0;
	}
	
	.rqo-sticky-cart.expanded .rqo-sticky-cart-content {
		max-height: calc(80vh - 70px);
	}
}

.rqo-sticky-cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 2px solid #f0f0f0;
}

.rqo-sticky-cart-header h3 {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.rqo-cart-close {
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: none; /* Skjult på desktop */
}

.rqo-cart-close:hover {
	color: #333;
}

/* Hvis du vil have den til at tilpasse max-height baseret på position */
.rqo-sticky-cart-items {
	flex: 1;
	overflow-y: auto;
	padding: 15px;
	max-height: calc(100vh - var(--cart-top, 20px) - 330px); /* Dynamisk beregning */
}

.rqo-empty-cart {
	text-align: center;
	color: #999;
	padding: 30px 20px;
	font-style: italic;
}

.rqo-cart-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: #f9f9f9;
	border-radius: 8px;
	margin-bottom: 10px;
	transition: background 0.3s ease;
}

.rqo-cart-item:hover {
	background: #f0f0f0;
}

.rqo-cart-item-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rqo-cart-item-info strong {
	font-size: 14px;
	color: #333;
	line-height: 1.3;
}

.rqo-cart-item-qty {
	font-size: 12px;
	color: #666;
}

.rqo-cart-item-price {
	font-weight: 600;
	color: #000000;
	font-size: 14px;
}

.rqo-cart-item-remove {
	
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.3s ease;
	flex-shrink: 0;
}
.rqo-cart-item-remove:after {
	content: "\f1f8"; 
	font-family: "Font Awesome 5 Free"; 
	font-weight: 900;
	padding-left: 5px; 
	font-size: 12px;
}

.rqo-cart-item-remove:hover {
	background: #a00;
}

.rqo-sticky-cart-footer {
	padding: 15px 20px;
	border-top: 2px solid #f0f0f0;
	background: #f9f9f9;
	border-radius: 0 0 12px 12px;
}

.rqo-cart-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	font-size: 18px;
}

.rqo-cart-total strong {
	color: #333;
}

.rqo-cart-total-amount {
	color: #000000;
	font-weight: 700;
	font-size: 20px;
}

.rqo-checkout-btn {
	display: block;
	width: 100%;
	padding: 12px;
	background: #000000;
	color: #fff;
	text-align: center;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: background 0.3s ease;
}

.rqo-checkout-btn:hover {
	background: #236121;
	color: #fff;
}

/* Find og ERSTAT hele "Mobile Styles" sektionen med dette: */

/* Mobile Styles */
@media (max-width: 1024px) {
	.rqo-sticky-cart {
		top: auto !important; /* Ignorer desktop top */
		bottom: 0 !important; /* Fast i bunden */
		left: 0;
		right: 0;
		width: 100%;
		max-height: 80vh;
		border-radius: 16px 16px 0 0;
	}
	
	.rqo-sticky-cart-toggle {
		border-radius: 16px 16px 0 0;
	}
	
	.rqo-cart-close {
		display: block; /* Vist på mobil */
	}
	
	/* VIGTIGT: Lukket som default på mobil */
	.rqo-sticky-cart-content {
		max-height: 0 !important; /* Lukket som default */
		overflow: hidden;
	}
	
	/* Kun åben når .expanded klasse tilføjes */
	.rqo-sticky-cart.expanded .rqo-sticky-cart-content {
		max-height: calc(80vh - 70px) !important;
		background: #fff;
	}
	
	.rqo-sticky-cart-items {
		max-height: calc(80vh - 220px);
	}
	
	/* Overlay bag kurven på mobil */
	.rqo-sticky-cart.expanded::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: -1;
	}
}

/* Scrollbar styling */
.rqo-sticky-cart-items::-webkit-scrollbar {
	width: 6px;
}

.rqo-sticky-cart-items::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.rqo-sticky-cart-items::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 10px;
}

.rqo-sticky-cart-items::-webkit-scrollbar-thumb:hover {
	background: #555;
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Responsivt Design */
@media (max-width: 1024px) {
	/* .rqo-product-item {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.rqo-product-info {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}
	
	.rqo-product-actions {
		width: 100%;
		justify-content: flex-end;
		margin-top: 15px;
	} */
	
	.rqo-options-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}
	
	.rqo-modal-content {
		width: 95%;
		margin: 2% auto;
	}
	
	#rqo-modal-body {
		padding: 15px 20px;
	}
	.rqo-product-image img {
		display: none;
	}
}
/* ==========================================
   KATEGORI MENU STYLES
   ========================================== */

/* Sections Style */
.rqo-category-menu {
	display: flex;
	flex-direction: column;
	gap: 50px;
	margin: 30px 0;
}

.rqo-category-section {
	scroll-margin-top: 120px; /* For smooth scroll til kategorier */
}

.rqo-category-header {
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 1px solid #cccccc;
}
h2.rqo-category-title {
	font-size: 30px !important;
	font-weight: 600 !important;
	letter-spacing: 0px !important;
}

.rqo-category-title {
	margin: 0 0 10px 0;
	font-size: 32px;
	font-weight: 700;
	color: #333;
}

.rqo-category-description {
	margin: 0;
	font-size: 16px;
	color: #666;
	line-height: 1.5;
}

/* Tabs Style */
.rqo-category-tabs {
	margin: 30px 0;
}

.rqo-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 3px solid #e0e0e0;
}

.rqo-tab-button {
	padding: 12px 24px;
	background: #f5f5f5;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: all 0.3s ease;
}

.rqo-tab-button:hover {
	background: #e8f4f8;
	border-color: #0073aa;
	color: #0073aa;
}

.rqo-tab-button.active {
	background: #000000;
	border-color: #000000;
	color: #fff;
}

.rqo-tabs-content {
	position: relative;
}

.rqo-tab-pane {
	display: none;
	animation: fadeIn 0.3s ease;
}

.rqo-tab-pane.active {
	display: block;
}

.rqo-tab-pane .rqo-category-description {
	margin-bottom: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-left: 4px solid #000;
	border-radius: 4px;
}

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

/* Responsive */
@media (max-width: 1024px) {
	.rqo-category-title {
		font-size: 24px;
	}
	
	.rqo-tabs-nav {
		gap: 8px;
	}
	
	.rqo-tab-button {
		padding: 10px 16px;
		font-size: 14px;
		flex: 1 1 auto;
		min-width: 100px;
	}
}