/* Base Styles */
body {
    background-color: #f6f5f3;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.t2-header {
    background: white;
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    /* Restaurant logos are rarely square: keep the height, let the width follow. */
    height: 2.75rem;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo span {
    font-weight: bold;
}

.address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(163, 42, 42, 1);
    font-size: 0.875rem;
}

/* Mobile Menu Styles */
.mobile-menu-toggle button {
    background: none;
    border: none;
    color: rgba(163, 42, 42, 1);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(163, 42, 42, 1);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Content Layout */
.content-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

/* Sidebar Navigation */
/* Order type option default and selected styles */
.order-type-option{
    border: 1px solid transparent;
}
.order-type-option.selected{
    border: 2px solid #A32A2A;
}
.sidebar {
    width: 200px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    height: fit-content;
}

.nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgba(163, 42, 42, 1);
    text-decoration: none;
    transition: all 0.2s;
    background: white;
}

.nav-item:hover {
    background-color: rgba(163, 42, 42, 0.05);
    color: rgba(163, 42, 42, 1);
}

.nav-item.active {
    background-color: rgba(163, 42, 42, 1);
	/* border-radius: 8px; */
    color: white;
}

.sidebar>.nav-item:first-child {
	border-radius: 8px 8px 0 0;
}

.sidebar>.nav-item:last-child {
	border-radius: 0 0 8px 8px;
}

.nav-item .emoji {
    font-size: 1.25rem;
}

/* Main Content Area */
.menu-content {
    flex: 1;
}

.category-header {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.category-header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.category-header p {
    color: #666;
    margin: 0;
}

/* Menu Items List */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Menu Item Card */
.menu-item {
    /* background: white; */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    /* padding: 1rem; */
}

.item-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 50%; */
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.item-header p {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background-color: #fff3cd;
    color: #664d03;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.order-btn {
    background-color: rgba(163, 42, 42, 1);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.order-btn:hover {
    background-color: rgba(163, 42, 42, 0.9);
}

.radius-8{
	border-radius: 8px;
}

.radius-8-tl-tr{
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.radius-8-bl-br{
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

/* Fixed Footer Cart Styles */
.footer-cart {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
	z-index: 1000;
}

.footer-cart-header {
	background: white;
	padding: 0.75rem;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.footer-cart-content {
	padding: 1rem;
	background: white;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
}

.footer-cart-content.active {
	max-height: 400px;
	border-top: 1px solid #eee;
}

.footer-cart-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	color: rgba(163, 42, 42, 1);
	font-weight: 500;
	border: none;
	background: none;
	padding: 0;
}

.footer-cart-button:hover {
	color: rgba(163, 42, 42, 0.8);
}

.footer-cart-button svg {
	width: 24px;
	height: 24px;
}

.footer-cart-footer {
	padding: 1rem;
	background: white;
	border-top: 1px solid #eee;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
}

.footer-cart-footer.active {
	max-height: 100px;
}

.footer-cart-total {
	max-width: 400px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.chevron-icon {
	transition: transform 0.3s ease;
	margin-left: 0.5rem;
	font-size: 1rem;
}

.chevron-icon.rotated {
	transform: rotate(180deg);
}

@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        border-radius: 0;
        background: white;
        visibility: hidden;
    }

    .sidebar.active {
        left: 0;
        visibility: visible;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        /* background: rgba(163, 42, 42, 1); */
        color: white;
    }

    .sidebar-header h5 {
        margin: 0;
    }

    .close-menu {
        background: none;
        border: none;
        color: white;
        font-size: 1.25rem;
        padding: 0.5rem;
        cursor: pointer;
    }

    body.menu-open {
        overflow: hidden;
    }

    .content-wrapper:not(.full-width) {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-overlay {
        display: none;
    }

    .mobile-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .menu-item {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .category-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .item-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .order-btn {
        width: 100%;
    }
}

.tag{
	background: #f1dfdf;
	color: #000;
}

.cart-overlay {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0rem;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-header {
    background-color: rgba(163, 42, 42, 1);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: none;
}

.cart-content {
    padding: 1rem;
    max-height: 400px;
    min-height: 300px;
    overflow-y: auto;
}

.cart-footer {
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.cart-wrapper {
    position: relative;
}

.wide-cart-btn{
    width: 400px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Header Cart Styles & Others */
body {
    padding-top: 50px; /* Height of fixed header */
}

/* Main header positioning */
.t2-header {
    position: relative;
    background: white;
    z-index: 1040;
    transition: margin-top 0.3s ease;
}

/* Default layout - sidebar left, content right */
.content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
}

.sidebar {
    width: 200px;
    flex-shrink: 0;
}

.menu-content {
    flex: 1;
}

/* Horizontal Menu Styles */
.horizontal-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.horizontal-menu .nav-item {
    flex: 0 1 auto;
    min-width: 120px;
    text-align: center;
    padding: 0.75rem 1rem;
    color: rgba(163, 42, 42, 1);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    height: 40px;
    border: 1px solid rgba(163, 42, 42, 0.2);
}

.horizontal-menu .nav-item:hover {
    border-color: rgba(163, 42, 42, 1);
}

.horizontal-menu .nav-item.active {
    background-color: rgba(163, 42, 42, 1);
    color: white;
    border-color: rgba(163, 42, 42, 1);
}

.horizontal-menu .nav-item .emoji {
    font-size: 1.25rem;
}

/* Full width layout - sidebar top, content bottom */
.content-wrapper.full-width {
    flex-direction: column;
}

.content-wrapper.full-width .sidebar {
    width: 100%;
    margin-bottom: 1rem;
}

.content-wrapper.full-width .menu-content {
    width: 100%;
}

/* Fixed header styles */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #dc3545;
    color: white;
    z-index: 1044;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fixed-header .footer-cart-header {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 0px;
}

/* Header cart content styles */
.header-cart-content,
.header-cart-footer {
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-cart-content {
    min-height: 200px;
    border-bottom: 1px solid #eee;
}

.header-cart-footer {
    padding: 1rem;
    background: white;
}

.header-cart-content:not(.d-none) + .t2-header {
    margin-top: 250px; /* Combined height of cart content and footer */
}

/* Mobile layout */
@media (max-width: 991px) {
    .content-wrapper:not(.full-width) {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-wrapper:not(.full-width) .sidebar {
        width: 100%;
    }
}

/* Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 998;
}

.cart-modal.show {
    display: block;
}

.cart-modal .cart-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(163, 42, 42, 1);
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.cart-modal .cart-header .badge {
    background: white;
    color: rgba(163, 42, 42, 1);
}

.cart-modal .cart-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.cart-modal .cart-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: white;
}

.cart-wrapper {
    position: relative;
}

.cart-wrapper.fixed-position {
    position: fixed;
    z-index: 1000;
    right: 20px;
    width: 350px;
}

.cart-wrapper #cartButton {
    width: 100%;
}

.cart-wrapper #cartButton.wide-cart-btn {
    width: 350px;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.cart-overlay {
    position: absolute;
    z-index: 1000;
    background: white;
    width: 350px;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    top: 100%;
    right: 0;
}

.cart-overlay.active {
    display: block;
}

/* Start: Load more button */

#loadMoreBtn {
    min-width: 150px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
#loadMoreBtn:hover {
    transform: translateY(-2px);
}
#loadMoreBtn.loading {
    position: relative;
    color: transparent !important;
}
#loadMoreBtn.loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(163, 42, 42, 1);
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* End: Load more button */

/* Start: Bottom Part */

/* Order Type Modal Styles */
.order-type-option {
    transition: all 0.3s ease;
    background: #fff;
}

.order-type-option:hover {
    border-color: rgba(163, 42, 42, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(163, 42, 42, 0.1);
}

.order-type-option.selected {
    border-color: rgba(163, 42, 42, 1) !important;
    box-shadow: 0 0 0 1px rgba(163, 42, 42, 1);
}

.flex-1 {
    flex: 1;
}

.cursor-pointer {
    cursor: pointer;
}


.modal-lg {
    max-width: 800px;
}

#addressInput:focus {
    border-color: rgba(163, 42, 42, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(163, 42, 42, 0.25);
}

/* End: Bottom Part */

/* Start: Google Maps */
/* Order Type Modal Styles */
.order-type-option {
    transition: all 0.3s ease;
    background: #fff;
}

.order-type-option:hover {
    border-color: rgba(163, 42, 42, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(163, 42, 42, 0.1);
}

.order-type-option.selected {
    border-color: rgba(163, 42, 42, 1) !important;
    box-shadow: 0 0 0 1px rgba(163, 42, 42, 1);
}

/* Google Places Autocomplete styles */
.pac-container {
    z-index: 1056 !important; /* Higher than modal's z-index (1055) */
    border-radius: 8px;
    margin-top: 4px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pac-item {
    padding: 8px;
    cursor: pointer;
    font-family: inherit;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-item-query {
    font-size: 14px;
    color: #212529;
}
/* End: Google Maps */

/* Start: Site footer (seller data, legal links, PayU / Wolt marks) and legal document pages */
.site-footer {
    margin-top: 48px;
    padding: 24px 0 32px;
    border-top: 1px solid #e9e9e9;
    background: #fafafa;
    color: #6b6b6b;
    font-size: 13px;
    line-height: 1.5;
}

/* The menu page keeps a fixed cart bar at the bottom: leave room under the footer text */
.footer-cart ~ .site-footer {
    padding-bottom: 96px;
}

.site-footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px 24px;
}

.site-footer-seller {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.site-footer-name {
    font-weight: 600;
    color: #444;
}

.site-footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer a:hover {
    color: #222;
}

.site-footer-links {
    display: flex;
    /* Three items with "Ustawienia cookies" on a tracked shop: a second row on a narrow phone */
    flex-wrap: wrap;
    gap: 8px;
    white-space: nowrap;
}

.site-footer-sep {
    color: #bbb;
}

.site-footer-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-top: 16px;
}

.site-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none !important;
}

.site-footer-badge img {
    display: block;
    height: 22px;
    width: auto;
}

.legal-page {
    max-width: 860px;
    padding: 24px 15px 40px;
}

.legal-document {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

.legal-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 6px;
}

.legal-meta {
    color: #777;
    font-size: 13px;
    margin-bottom: 16px;
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.legal-content {
    font-size: 15px;
    line-height: 1.65;
    color: #222;
    overflow-wrap: anywhere;
}

.legal-content h2 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.legal-content h3 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.legal-content h4 { font-size: 15px; font-weight: 600; margin: 18px 0 6px; }
.legal-content p, .legal-content ul, .legal-content ol { margin-bottom: 12px; }

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px;
    font-size: 14px;
}

.legal-content th, .legal-content td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    vertical-align: top;
    text-align: left;
}

.legal-content th {
    background: #f5f5f5;
}

.legal-seller {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.legal-seller-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.legal-seller dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 16px;
    margin: 0;
}

.legal-seller dt {
    color: #777;
    font-weight: 500;
}

.legal-seller dd {
    margin: 0;
}

/* Checkout: privacy note and the no-withdrawal notice above the order button */
.consent-info, .consent-notice {
    font-size: 13px;
    color: #6b6b6b;
}

.consent-notice a {
    color: inherit;
}

@media print {
    body { display: block !important; padding-top: 0 !important; }
    .fixed-header-cart-wrapper, .t2-header, .site-footer, .legal-actions,
    .floating-cart-btn, .footer-cart, .cart-modal, .mobile-overlay,
    .flowpos-consent, .flowpos-consent-dialog { display: none !important; }
    .legal-document { box-shadow: none; padding: 0; }
}
/* End: Site footer and legal document pages */

/* Start: Cookie consent (campaign tracking) - the bar at the bottom, the settings dialog and the
   "tools enabled here" block of the privacy policy. The brand palette comes from the custom
   properties index.js publishes (--shop-*); the fallbacks are the platform colours. */
.flowpos-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* above the fixed cart bar (.footer-cart, 1000), below the Bootstrap modals (1055) */
    z-index: 1001;
    background: var(--shop-surface, #fff);
    color: var(--shop-surface-text, #1D1D1D);
    border-top: 2px solid var(--shop-primary, #2B788B);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    line-height: 1.5;
}

.flowpos-consent[hidden],
.flowpos-consent-dialog[hidden] {
    display: none;
}

.flowpos-consent-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.flowpos-consent-text {
    margin: 0;
    flex: 1 1 380px;
}

.flowpos-consent-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Layer 1: the two choices share one class attribute on purpose - same size, weight and
   colour (PKE art. 399: rejecting must be as easy as accepting). */
.flowpos-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.flowpos-consent-actions .btn {
    min-width: 150px;
}

.flowpos-consent-link,
.site-footer-link-button {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.flowpos-consent-dialog {
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.flowpos-consent-card {
    width: 100%;
    max-width: 520px;
    padding: 24px;
    border-radius: 12px;
    background: var(--shop-surface, #fff);
    color: var(--shop-surface-text, #1D1D1D);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.5;
}

.flowpos-consent-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
}

.flowpos-consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.flowpos-consent-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    cursor: pointer;
}

.flowpos-consent-row-name {
    font-weight: 600;
}

.flowpos-consent-row-hint {
    color: #6b6b6b;
    font-size: 13px;
}

.flowpos-consent-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
    font-size: 13px;
    color: #6b6b6b;
}

.flowpos-consent-switch input {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 22px;
    margin: 0;
    border-radius: 11px;
    background: #cfd4d9;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.flowpos-consent-switch input::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.2s;
}

.flowpos-consent-switch input:checked {
    background: var(--shop-primary, #2B788B);
}

.flowpos-consent-switch input:checked::after {
    left: 20px;
}

.flowpos-consent-switch input:disabled {
    opacity: 0.6;
    cursor: default;
}

.flowpos-consent-card .flowpos-consent-actions {
    margin-top: 16px;
    justify-content: flex-end;
}

/* While the bar is up, tracking.js publishes its height: the fixed cart bar and the floating
   cart button move above it and the page gets room at the bottom, so the bar never covers the
   cart or "place order". */
html[style*="--flowpos-consent-h"] .footer-cart {
    bottom: var(--flowpos-consent-h);
}

html[style*="--flowpos-consent-h"] .floating-cart-btn {
    bottom: calc(20px + var(--flowpos-consent-h));
}

body {
    padding-bottom: var(--flowpos-consent-h, 0);
}

.legal-tracking {
    margin-top: 32px;
}

.legal-tracking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 12px 0 16px;
}

.legal-tracking-table th,
.legal-tracking-table td {
    text-align: left;
    vertical-align: top;
    padding: 8px 10px;
    border-bottom: 1px solid #e9e9e9;
}
/* End: Cookie consent */
