body {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    overflow-x: hidden;
}

.termly-styles-main-1d1c7d img {
    display: none;
}

.termly-styles-modal-md-5ce261 button,
th {
    background-color: var(--color-primary) !important;
    color: var(--color-text) !important;
}

.termly-styles-modal-md-5ce261 table {
    border: var(--color-primary) !important;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.content {
    flex: 1;
    display: flex;
    z-index: 0;
}

#map {
    flex: 1;
    width: min(100% - 0, 100%);
    margin-inline: auto;
    background-color: #fff0;
}

#map .marker-cluster span {
    font-size: 1.25em !important;
}

#map .leaflet-left .leaflet-control {
    /* margin-left: 10px;
    margin-top: 8em; */
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-2) !important;
    transition: 0.3s;
    position: fixed;
    top: 7em;
    /* left: 10px; */
}

.leaflet-touch .leaflet-control-geocoder {
    margin-top: 12.5em !important;
    flex-direction: column;
    padding: 0.334em;
}

.leaflet-popup-content {
    margin: 1em !important;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius-1) !important;
}

#custom-control {
    background-color: white;
    padding: 0;
    border: 1px solid #ccc;
    margin-top: 8em;
    border-radius: 5em;
    display: flex;
    align-items: center;
    transition: 0.3s;
    cursor: pointer;
    position: fixed;
    right: 0;
}

#custom-control:hover {
    background-color: #f4f4f4;
    transition: 0.3s;
}

#custom-control img {
    padding: 1em;
}

#custom-control span {
    padding-right: 1em;
}

.leaflet-control-geocoder {
    background-color: white;
    padding: 0;
    border: 1px solid #ccc !important;
    border-radius: 26px !important;
    margin-top: 12.5em !important;
    border-radius: 5em;
    display: flex;
    align-items: center;
    transition: 0.3s;
    cursor: pointer;
    position: fixed !important;
    right: 0;
}

.leaflet-touch .leaflet-control-geocoder-icon {
    height: 40px !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
}

.leaflet-touch .leaflet-control-geocoder-icon:hover {
    background-color: #f4f4f4;
    transition: 0.3s;
    display: flex !important;
    cursor: pointer !important;
}

.leaflet-control-geocoder-icon {
    background-image: url("SVG/search.svg") !important;
}

/* When we inject an <img>, hide the background and size the image */
.leaflet-control-geocoder.has-image .leaflet-control-geocoder-icon {
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaflet-control-geocoder.has-image .leaflet-control-geocoder-icon img {
    width: 24px;
    height: 24px;
}

.leaflet-control-geocoder-form input {
    font-size: 16px !important;
}

#custom-control2 span {
    padding-right: 1em;
}

.leaflet-container a.leaflet-popup-close-button {
    text-align: center !important;
    font: 24px/24px Tahoma, Verdana, sans-serif !important;
    color: #757575 !important;
    margin-right: 13px;
    margin-top: 13px;
    display: flex !important;
    justify-content: center !important;
    align-items: end !important;
}

.leaflet-marker-pane img {
    transition: all 0.3s ease !important;
}

/* zoom control */
.leaflet-bar a {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    width: 26px;
    height: 26px;
    line-height: 26px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--color-primary) !important;
}

.leaflet-left .leaflet-control {
    margin-left: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: var(--border-radius-2) !important;
}

.leaflet-touch .leaflet-bar a:first-child {
    border-top-left-radius: var(--border-radius-2) !important;
    border-top-right-radius: var(--border-radius-2) !important;
    transition: 0.3s;
}

.leaflet-touch .leaflet-bar a:last-child {
    border-bottom-left-radius: var(--border-radius-2) !important;
    border-bottom-right-radius: var(--border-radius-2) !important;
    transition: 0.3s;
}

.dutchCluster-color {
    background-color: #fab9178a !important;
}

.dutchCluster-color div {
    background-color: #fab917 !important;
}

.germanCluster-color {
    background-color: #f386518a !important;
}

.germanCluster-color div {
    background-color: var(--color-primary) !important;
}

.belgiumCluster-color {
    background-color: #ffd7008a !important;
}

.belgiumCluster-color div {
    background-color: #ffd700 !important;
}

.favorite-cluster-color {
    background-color: #f386518a !important;
}

.favorite-cluster-color div {
    background-color: var(--color-primary) !important;
}

.leaflet-popup-content a {
    color: #0078d4 !important;
}

.error-message {
    display: none;
    position: fixed;
    bottom: 0.5em;
    right: 0.5em;
    left: 0.5em;
    background-color: #ff6347;
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--border-radius-2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.5s forwards;
}

/* Informational toast (blue) */
.info-message {
    display: none;
    position: fixed;
    bottom: 0.5em;
    right: 0.5em;
    left: 0.5em;
    background-color: #0078d4;
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--border-radius-2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.5s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@media (min-width: 768px) {
    #error-text {
        width: 14em;
    }

    .error-message {
        left: auto;
    }

    .info-message {
        left: auto;
    }
}

@keyframes slideInBottom {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Fade out animation */
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.error-message.fade-out {
    animation: fadeOut 0.5s forwards;
}

.info-message.fade-out {
    animation: fadeOut 0.5s forwards;
}

#error-text {
    margin-right: 10px;
}

#info-text {
    margin-right: 10px;
}

#close-button,
#info-close-button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    float: right;
    font-size: 20px;
    font-weight: bold;
}

.container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Ensure flex items wrap to the next line */
    max-width: 100vw;
    margin: 20px auto;
    gap: 1em;
}

.main-content {
    flex: 1;
    /* Occupy full width initially */
    background-color: #fff;
    padding: 20px;
    order: 1;
    /* Set the order to 1 (default) */
}

.sidebar {
    flex: 1;
    /* Occupy full width initially */
    background-color: #f0f0f0;
    padding: 20px;
    order: 2;
    /* Set the order to 2 */
    border-radius: 1.5em;
    height: 100%;
}

.sidebar #refreshButton {
    border-radius: 0.75em !important;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 4em;
    max-width: 4em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border: none;
    outline: none;
}

.icons8-refresh {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAsMCwyNTYsMjU2IgpzdHlsZT0iZmlsbDojMDAwMDAwOyI+CjxnIGZpbGw9IiNmZmZmZmYiIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lY2FwPSJidXR0IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1kYXNoYXJyYXk9IiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjAiIGZvbnQtZmFtaWx5PSJub25lIiBmb250LXdlaWdodD0ibm9uZSIgZm9udC1zaXplPSJub25lIiB0ZXh0LWFuY2hvcj0ibm9uZSIgc3R5bGU9Im1peC1ibGVuZC1tb2RlOiBub3JtYWwiPjxnIHRyYW5zZm9ybT0ic2NhbGUoOC41MzMzMyw4LjUzMzMzKSI+PHBhdGggZD0iTTE1LDNjLTIuOTY4NiwwIC01LjY5NzE4LDEuMDgzNDQgLTcuNzkyOTcsMi44NzVjLTAuMjg2MDUsMC4yMjc3MiAtMC40MjUwMywwLjU5MzM5IC0wLjM2MjQ1LDAuOTUzNjNjMC4wNjI1OCwwLjM2MDIzIDAuMzE2NzYsMC42NTc2IDAuNjYyODYsMC43NzU0OWMwLjM0NjEsMC4xMTc5IDAuNzI4OTUsMC4wMzc1MyAwLjk5ODQyLC0wLjIwOTU5YzEuNzQ4MjEsLTEuNDk0NDQgNC4wMTA3NCwtMi4zOTQ1MyA2LjQ5NDE0LC0yLjM5NDUzYzUuMTk2NTYsMCA5LjQ1MDk5LDMuOTM3OTMgOS45NTExNyw5aC0yLjk1MTE3bDQsNmw0LC02aC0zLjA1MDc4Yy0wLjUxMTI5LC02LjE0ODM0IC01LjY3MTM4LC0xMSAtMTEuOTQ5MjIsLTExek00LDEwbC00LDZoMy4wNTA3OGMwLjUxMTI5LDYuMTQ4MzQgNS42NzEzOCwxMSAxMS45NDkyMiwxMWMyLjk2ODYsMCA1LjY5NzE4LC0xLjA4MzQ0IDcuNzkyOTcsLTIuODc1YzAuMjg2MDUsLTAuMjI3NzIgMC40MjUwNCwtMC41OTMzOSAwLjM2MjQ1LC0wLjk1MzYzYy0wLjA2MjU4LC0wLjM2MDIzIC0wLjMxNjc2LC0wLjY1NzYgLTAuNjYyODYsLTAuNzc1NWMtMC4zNDYxLC0wLjExNzkgLTAuNzI4OTUsLTAuMDM3NTMgLTAuOTk4NDIsMC4yMDk1OWMtMS43NDgyMSwxLjQ5NDQ0IC00LjAxMDc0LDIuMzk0NTMgLTYuNDk0MTQsMi4zOTQ1M2MtNS4xOTY1NiwwIC05LjQ1MDk5LC0zLjkzNzkzIC05Ljk1MTE3LC05aDIuOTUxMTd6Ij48L3BhdGg+PC9nPjwvZz4KPC9zdmc+") 50% 50% no-repeat;
    background-size: 100%;
}

/* Style the footer */
/* footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.footer .footercontainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

footer a {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #c2c2c2;
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

footer p {
    margin-bottom: 0;
} */

#gasStations {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* Gas station card styling */
.gas-station {
    background-color: #0000ff08;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    width: 300px;
}

/* Gas station name styling */
.gas-station h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Gas station details styling */
.gas-station p {
    font-size: 16px !important;
    margin-bottom: 8px;
}

/* Fuel type section styling */
#gasStations .fuel-type-section p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
}

/* Prices container styling */

.prices-wrapper {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.price-container,
.info-container {
    background-color: white;
    width: 5.25em;
    height: 5.25em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    border: rgba(128, 128, 128, 0.164) 1px solid;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    /* Set box shadow with subtle blur and transparency */
}

.price-container.diesel::before {
    content: "";
    position: absolute;
    height: 4.7em;
    width: 4.7em;
    border-radius: inherit;
    border: 2px solid var(--fuel-type-diesel);
    /* Inner border */
}

.price-container.e5::before {
    content: "";
    position: absolute;
    height: 4.7em;
    width: 4.7em;
    border-radius: inherit;
    border: 2px solid var(--fuel-type-e5);
    /* Inner border */
}

.price-container.e10::before {
    content: "";
    position: absolute;
    height: 4.7em;
    width: 4.7em;
    border-radius: inherit;
    border: 2px solid var(--fuel-type-e10);
    /* Inner border */
}

.price-container h5 {
    margin-bottom: 0;
}

.bottomleftcontainer {
    width: 100%;
    gap: 1em;
    display: flex;
    flex-direction: column;
}

.bottombottomleftcontainer {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/* Show PC version for screens wider than 768px */
@media (min-width: 769px) {
    .steps {
        flex-direction: row;
        display: flex;
        justify-content: center;
    }

    .step {
        width: 32%;
    }
}

/* Show Mobile version for screens smaller than or equal to 768px */
@media (max-width: 768px) {
    .steps {
        flex-direction: column;
    }
}

.steps {
    display: flex;
    gap: 1em;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.adress-wrapper,
.contact-wrapper,
.navigation,
.fuelcalculator,
.openingtimescontainer,
.predictions-container,
#stationMap,
.fuelhistory-container,
.nearbyStation,
.group {
    background-color: #f4daad14;
    border-radius: var(--border-radius-1);
    border: rgba(128, 128, 128, 0.164) 1px solid;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1em;
    width: 100%;
}

.container #brandLogo {
    height: 2em;
}

.nearbyStation\.title #brandLogo {
    width: 2em;
    height: auto;
}

.custom.container {
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.openingtimescontainer,
.predictions-container {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background-color: var(--color-offwhite-background);
}

.predictions-container {
    border-radius: calc(8px + 0.5em + 1em - 1px);
    border: none;
}

.predictions-container h4 {
    margin-bottom: 0.5em;
}

.predictions-container ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.predictions-container li {
    padding: 0.75em 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    display: flex;
    align-items: center;
}

.predictions-container li:last-child {
    border-bottom: none;
}

.predictions-container p {
    display: flex;
    align-items: center;
    margin-top: 1em;
    color: #555;
}

.predictions-container svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.predictions-container small {
    display: block;
    margin-top: 0.5em;
}

.openingtimes {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 1em;
}

.top-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Allow top-right container to grow */
    gap: 1em;
}

.address-navigation {
    display: flex;
    flex-direction: row;
    gap: 1em;
    flex: 1;
    /* Allow address-navigation container to grow */
}

@media (max-width: 768px) {
    .address-navigation {
        flex-direction: column;
    }
}

.adress-wrapper {
    display: flex;
    justify-content: space-between;

    width: 100%;
    overflow: scroll;
    white-space: nowrap;
    text-overflow: ellipsis;

    background-color: transparent;
    box-shadow: none;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;

    width: 100%;
    overflow: scroll;
    white-space: nowrap;
    text-overflow: ellipsis;

    background-color: transparent;
    box-shadow: none;
}

.navigation,
.adress-wrapper {
    align-items: center;
    display: flex;
}

.navigation {
    width: auto !important;
    border-radius: var(--border-radius-2) !important;
    cursor: pointer;
}

.navigation img {
    color: white;
    width: 3em;
}

.fuelcalculator {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 1em;
}

.fuelcalculator button {
    border-radius: 0.75em;
}

.fuelcalculator button,
.fuelcalculator #select {
    margin-top: auto;
}

.leftcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Change to align items in the center */
    flex: 0;
    /* Allow left container to grow */
    gap: 1em;
    /* Add gap between elements */
}

.rightcontainer {
    display: flex;
    flex-direction: column;
    flex: 0;
    margin-left: -1em;
}

.fuelhistory-container {
    /* Remove the margin-right property */
    flex: 0;
    /* Adjust the flex value */
    align-self: flex-start;
    /* Align to the start of the flex container */
    width: 14em;
    /* Set a fixed width for the history container */
    min-height: 55vh;
    position: relative;
}

.fuelhistory-container .fuelhistory {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.fuelhistory-container .fuelhistory .buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    position: sticky;
    top: -0.5em;
    z-index: 1;
    background: #fefcf9;
    padding: 0.5em 0;
    margin: -0.5em 0 0.5em 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.fuelhistory-container .fuelhistory #fuel_prices {
    /* Styles for the fuel price history content */
    height: 0;
    text-wrap: nowrap;
}


.nearbyStations {
    display: flex;
    justify-content: space-between;
    gap: 1em;
}

.nearbyStation\.title {
    display: flex;
    gap: 1em;
    align-items: center;
    height: 2em;
    margin-bottom: 1em;
    justify-content: space-between;
}

.nearbyStation\.prices {
    margin-bottom: 0.45em;
}

.nearbyStation\.prices,
.nearbyStation\.info {
    display: flex;
    gap: 0.45em;
    align-items: center;
    justify-content: center;
}

.nearbyStation\.prices .price-container,
.nearbyStation\.info .info-container {
    height: 4.5em;
    width: 4.5em;
    background-color: white;
}

.nearbyStation\.prices .price-container.diesel,
.nearbyStation\.prices .price-container.e5,
.nearbyStation\.prices .price-container.e10 {
    gap: 0.25em;
}

.nearbyStation\.info .info-container.distance,
.nearbyStation\.info .info-container.closed,
.nearbyStation\.info .info-container.open,
.nearbyStation\.info .info-container.null {
    gap: 0.25em;
}

.nearbyStation\.prices .price-container h5 {
    font-size: 1em;
    margin-top: 0.25em;
    color: #000;
}

.nearbyStation\.info .info-container h5 {
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 0;
}

.nearbyStation\.prices .price-container span,
.nearbyStation\.info .info-container span {
    font-size: 0.75em;
}

.nearbyStation\.prices .price-container.diesel::before {
    content: "";
    position: absolute;
    height: 4em;
    width: 4em;
    border-radius: inherit;
    border: 2px solid var(--fuel-type-diesel);
    /* Inner border */
}

.nearbyStation\.prices .price-container.e5::before {
    content: "";
    position: absolute;
    height: 4em;
    width: 4em;
    border-radius: inherit;
    border: 2px solid var(--fuel-type-e5);
    /* Inner border */
}

.nearbyStation\.prices .price-container.e10::before {
    content: "";
    position: absolute;
    height: 4em;
    width: 4em;
    border-radius: inherit;
    border: 2px solid var(--fuel-type-e10);
    /* Inner border */
}

.nearbyStation\.info .info-container.distance::before {
    content: "";
    position: absolute;
    height: 4em;
    width: 4em;
    border-radius: inherit;
    border: 2px solid #0078d4;
    /* Inner border */
}

.nearbyStation\.info .info-container.open::before {
    content: "";
    position: absolute;
    height: 4em;
    width: 4em;
    border-radius: inherit;
    border: 2px solid #57ae32;
    /* Default border color for open stations */
}

.nearbyStation\.info .info-container.closed::before {
    content: "";
    position: absolute;
    height: 4em;
    width: 4em;
    border-radius: inherit;
    border: 2px solid #e13121;
    /* Custom border color for closed stations */
}

.nearbyStation\.info .info-container.null::before {
    content: "";
    position: absolute;
    height: 4em;
    width: 4em;
    border-radius: inherit;
    border: 2px solid grey;
    /* Custom border color for closed stations */
}

@media (max-width: 991px) {
    .nearbyStations {
        flex-direction: column;
    }

    .container.mt-0 {
        width: 100vw;
    }

    #stationMap {
        height: 35vh !important;
    }

    .title-container {
        /* color:red; */
        width: 36em !important;
    }
}

@media (max-width: 767px) {
    .title-container {
        /* color:blue; */
        width: 24em !important;
    }
}

@media (max-width: 575px) {
    .title-container {
        /* color:blue; */
        width: 55vw !important;
    }
}

@media (min-width: 992px) {

    .nearbyStation\.prices,
    .nearbyStation\.info {
        width: 14.41em;
    }
}

/*labels in the price history*/
label.btn {
    padding: 0;
}

label.btn input {
    opacity: 0;
    position: absolute;
}

label.btn span {
    text-align: center;
    padding: 6px 12px;
    display: block;
}

label.btn input:checked+span {
    background-color: rgb(80, 110, 228);
    color: #fff;
}

/* .termly-styles-main-1d1c7d img{
    display: none;
  } */

.firstcontainer {
    display: flex;
    justify-content: flex-start;
    gap: 1em;
    width: 51.5em;
    align-items: center;
}

.firstcontainer #brandLogo {
    width: 4em;
    height: auto;
}

@media (max-width: 767px) {
    .firstcontainer #brandLogo {
        width: 2.5em;
    }
}

.firstcontainer .gasstation {
    flex: 1;
    min-width: 0;
}

.firstcontainer .gasstation h1 {
    color: var(--color-text);
}

.firstcontainer .gasstation h2 {
    margin-bottom: 0;
    /* Adjust the margin-bottom value */
}

.firstcontainer .gasstation div div {
    color: rgba(128, 128, 128, 0.795);
}

.open-status-icon {
    display: flex;
}

/* Status icons margin when screen width is higher than 1200px */
@media (min-width: 1200px) {
    .firstcontainer .gasstation > div > div:last-child {
        margin-right: 224px;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 80%;
    background: #fab91757;
    border-bottom-right-radius: 10em;
    z-index: -1;
}

/* This will apply when the screen's width is 600px or less */
@media (max-width: 600px) {
    .hero::before {
        width: 100%;
    }
}

@media (min-width: 1610px) {
    .reversehero {
        position: relative;
        overflow: hidden;
        z-index: 1;
        background-image: url("data:image/svg+xml,%3Csvg%20width%3D%22600%22%20height%3D%22239%22%20viewBox%3D%220%200%20600%20239%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23clip0_1_2)%22%3E%3Cmask%20id%3D%22mask0_1_2%22%20style%3D%22mask-type%3Aluminance%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%22-100%22%20y%3D%220%22%20width%3D%22700%22%20height%3D%22410%22%3E%3Cpath%20d%3D%22M600%200H-100V410H600V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M500%20239C500%20183.772%20544.772%20139%20600%20139V239H500Z%22%20fill%3D%22black%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url(%23mask0_1_2)%22%3E%3Cpath%20d%3D%22M0%20100C0%2044.7715%2044.772%200%20100%200H600V239H0V100Z%22%20fill%3D%22%23FAB91757%22%20fill-opacity%3D%22%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_1_2%22%3E%3Crect%20width%3D%22600%22%20height%3D%22239%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-size: contain;
        height: 40em !important;
        background-position: right bottom;
        /* color: red; */
    }

    .reversehero .container {
        width: 65vw;
        padding: 0 !important;
    }
}

/* This will apply when the screen's width is 600px or less */
@media (max-width: 1609px) {
    .reversehero {
        position: relative;
        overflow: hidden;
        z-index: 1;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    .reversehero::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 80%;
        background: #fab91757;
        border-top-left-radius: 10em;
        border-bottom-right-radius: 10em;

        z-index: -1;
    }

    .reversehero::before {
        width: 100%;
    }
}

.herobtn a {
    border-radius: 0.5em;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text);
    display: inline-block;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.herobtn:hover a {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text);
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(243, 134, 81, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 5px rgba(243, 134, 81, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(243, 134, 81, 0);
    }
}


@media (min-width: 1200px) {
    .firstcontainer {
        min-width: 65.5em;
        margin-bottom: 0;
    }
}

@media (max-width: 1199px) {
    .rightcontainer {
        display: none;
    }
}

@media (max-width: 992px) {
    .firstcontainer {
        max-width: 62.5em;
    }
}

.allfeatures {
    display: flex;
    flex-direction: row;
    /* Align items in a row */
    overflow-x: auto;
    /* Enable horizontal scrolling */
    width: 100%;
}

.mycard {
    position: relative;
    width: 232px;
    height: 361px;
    background: #ffffff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px;
    margin: 1em;
    margin-top: 3em;
    overflow: visible;
}

.ellipse {
    width: 70px;
    height: 70px;
    background: #ffffff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
    position: relative;
    top: -50px;
    /* Adjust this value to position the ellipse higher */
    align-self: center;
    /* Center the item on the x-axis */
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title {
    width: 200px;
    height: 40px;
    font-size: 16px !important;
    line-height: 19px;
    text-align: center;
    color: #000000;
    margin-bottom: 10px;
    align-self: center;
    /* Center the item on the x-axis */
}

.description {
    width: 184px;
    height: 191px;
    font-size: 16px !important;
    line-height: 19px;
    color: #999999;
    align-self: center;
    /* Center the item on the x-axis */
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 10vw;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.navbar a {
    color: #000;
    font-size: 18px;
    text-decoration: none !important;
    transition: 0.3s;
    text-wrap: nowrap;
    display: flex;
    gap: 0.5em;
    align-items: center;
}

.navbar a:hover {
    color: #005a9e;
}

/* BREAKPOINTS */
@media (max-width: 992px) {
    .header {
        padding: 10px 4%;
    }
}

@media (min-width: 768px) {
    .bottombottomleftcontainer {
        display: flex;
        flex-direction: row;
        gap: 1em;
    }

    .bottombottomleftcontainer .fuelcalculator {
        width: auto;
    }

    .prices-wrapper {
        gap: 28%;
    }
}

.small-digit {
    font-size: 0.6em;
    /* smaller than the rest */
    vertical-align: super;
    /* or try 'text-top' for a more subtle raise */
}

/* Info tooltip component */
.predictions-container .info-container {
    position: relative;
    display: inline-block;
    width: calc(1.5em + 0.2em);
    height: calc(1.5em + 0.2em);
    user-select: none;
}

.predictions-container .info-icon {
    cursor: pointer;
    width: 1.5em;
    height: 1.5em;
    padding: 0.1em;
    /* Add padding to increase touch target size */
    transition: color 0.2s ease;
    outline: none;
    /* Remove the default focus outline */
}

.predictions-container .info-icon:focus-visible {
    color: #0078d4;
    /* Highlight color for keyboard navigation */
}

.predictions-container .info-icon:active,
.predictions-container .info-icon.active {
    color: #0078d4;
    /* Change color when active */
}

/* Ensure legend toggle sits under zoom on mobile */
@media (max-width: 768px) {
    #map .leaflet-left .legend-wrapper {
        margin-top: 6.5em;
        width: 30px !important;
        height: 30px !important;
        border: none !important;
    }
}

/* Desktop: position legend wrapper in bottom-right corner */
@media (min-width: 1024px) {
    #map .leaflet-bottom.leaflet-right .legend-wrapper {
        position: fixed;
        right: 16px;
        bottom: 85px;
        z-index: 1000;
    }

    /* Ensure the panel and toggle stack nicely in bottom-right */
    #map .leaflet-bottom.leaflet-right .legend-wrapper .map-legend {
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 3.5em; /* leave space for fixed toggle */
        border-radius: var(--border-radius-2) !important; /* match mobile */
        border: 1px solid rgba(0, 0, 0, 0.2) !important; /* match mobile */
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important; /* consistent shadow */
    }

    /* Keep the legend toggle button fixed in place */
    #map .leaflet-bottom.leaflet-right .legend-wrapper > div:nth-child(1) {
        position: absolute;
        right: 0;
        bottom: 0;
    }
}

/* iPad: Apply same desktop positioning for all iPad orientations */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #map .leaflet-bottom.leaflet-right .legend-wrapper {
        position: fixed;
        right: 16px;
        bottom: 85px;
        z-index: 1000;
    }

    /* Ensure the panel and toggle stack nicely in bottom-right */
    #map .leaflet-bottom.leaflet-right .legend-wrapper .map-legend {
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 3.5em; /* leave space for fixed toggle */
        border-radius: var(--border-radius-2) !important; /* match mobile */
        border: 1px solid rgba(0, 0, 0, 0.2) !important; /* match mobile */
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important; /* consistent shadow */
    }

    /* Keep the legend toggle button fixed in place */
    #map .leaflet-bottom.leaflet-right .legend-wrapper > div:nth-child(1) {
        position: absolute;
        right: 0;
        bottom: 0;
    }
}

.legend-wrapper>div:nth-child(1) {
    border: none !important;
    width: 30px !important;
    height: 30px !important;
}

/* Default state - hidden tooltip */
.predictions-container .info-box {
    position: absolute;
    top: 110%;
    /* just below the icon */
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5em 0.75em;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 0.5em;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

/* Show on hover (desktop) */
@media (hover: hover) and (pointer: fine) {
    .predictions-container .info-container:hover .info-box {
        opacity: 1;
        pointer-events: auto;
    }
}

/* When pinned open via JS - works on all devices */
.predictions-container .info-container.open .info-box {
    opacity: 1;
    pointer-events: auto;
}

/* When positioned in center of screen by JS */
.info-box.centered,
.favorite-box.centered {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding: 1em 1.5em !important;
    font-size: 1rem !important;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    border-radius: 0.75em !important;
    max-width: 90vw !important;
    z-index: 10000 !important;
    background: #333 !important;
    color: #fff !important;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .predictions-container .info-box {
        width: max-content;
        max-width: 80vw;
        /* Use viewport width to ensure it fits on screen */
        white-space: normal;
        top: 130%;
        /* Position it a bit lower on mobile */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        /* Add shadow for better visibility */
        padding: 0.75em 1em;
        /* Larger padding for better touch targets */
        font-size: 1rem;
        /* Slightly larger text for readability */
        z-index: 1000;
        /* Ensure it appears above other elements */
    }
}

/* favorite tooltip container */
.favorite-container {
    position: relative;
    display: inline-block;
}

.favorite-badge-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* gap: 0.5em; */
    justify-content: flex-end;
}

.closing-badge-mobile-wrapper {
    display: inline-block;
    order: 1;
    margin-right: 0.5em;
}

.favorite-container {
    order: 2;
}

/* Mobile: stack favorite and closing badge vertically, both right-aligned */
@media (max-width: 768px) {
    .favorite-badge-wrapper {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.3em;
    }
    
    .closing-badge-mobile-wrapper {
        order: 2;
        margin-right: 0;
    }
    
    .favorite-container {
        order: 1;
    }
}

/* hidden by default */
.favorite-box {
    position: absolute;
    top: 110%;
    /* just below the icon */
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5em 0.75em;
    background: #333;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
    border-radius: 0.5em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

/* only visible when .open is added */
.favorite-container.open .favorite-box {
    opacity: 1;
    pointer-events: auto;
    /* When positioned in center of screen by JS */
    padding: 1em 1.5em;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-radius: 0.75em;
    max-width: 90vw;
}

/* Mobile-specific adjustments for favorite tooltip */
@media (max-width: 768px) {
    .favorite-box {
        width: max-content;
        max-width: 80vw;
        white-space: normal;
        top: 130%;
    }

    .favorite-container.open .favorite-box {
        padding: 1.25em 1.5em;
        font-size: 1.1rem;
    }
}

.predictions-container-header {
    display: flex;
    justify-content: start;
    gap: 0.5em;
    align-items: center;
}

.predictions-container-header h4 {
    margin-bottom: 0;
}

/* Animation for chart elements */
.area-diesel,
.area-e5,
.area-e10,
.area-diesel path,
.area-e5 path,
.area-e10 path,
.area-diesel circle,
.area-e5 circle,
.area-e10 circle {
    transition: opacity 0.2s ease;
}

/* Remove outline from chart elements and interactive SVG elements */
.recharts-wrapper,
.recharts-surface,
.recharts-layer,
.recharts-curve,
.recharts-dot,
.recharts-active-dot,
.recharts-rectangle,
circle {
    outline: none !important;
}

/* Prevent text selection on chart elements */
.recharts-wrapper,
.recharts-surface,
.recharts-text,
.recharts-cartesian-axis-tick-value,
.recharts-cartesian-axis-tick,
.recharts-layer {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    pointer-events: none;
}

/* Re-enable pointer events for interactive chart elements */
.recharts-curve,
.recharts-dot,
.recharts-active-dot,
.recharts-area-area,
.recharts-tooltip-wrapper {
    pointer-events: auto;
}

/* Prevent text selection on fuel toggle labels */
.fuel-toggle,
.fuel-toggle label,
.fuel-toggle span,
.price-container,
.price-container span,
hr {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Ensure touch targets are large enough without outline */
.recharts-dot,
.recharts-active-dot {
    cursor: pointer;
}

/* Pro closing-time badge */
.pro-close-badge {
    display: none;
    /* hidden by default; JS toggles it when < 60min */
    vertical-align: middle;
}

.closing-badge-pill {
    display: inline-block;
    background-color: rgba(87, 174, 50, 0.2); /* #57ae32 with 0.2 opacity */
    color: #57ae32;
    border-radius: 999px; /* pill shape */
    padding: 0.4em 0.9em;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
}

/* Simple responsive two-column utility for 50/50 desktop, stacked mobile */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    width: 100%;
    align-items: start;
}

.two-col .col {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0; /* ensure children can shrink to container width */
    padding: 0;
}

@media (max-width: 991px) {
    .two-col {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .two-col .col {
        min-width: 0; /* prevent overflow from inner cards */
        width: 100%;
    }
}

/* Desktop-only: make predictions and travel costs equal height and stretch */
@media (min-width: 1024px) {
    .two-col {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1rem;
        align-items: stretch; /* grid-items stretch to equal height */
    }

    .two-col .col {
        display: flex;
    }

    .two-col .col > * {
        flex: 1 1 auto; /* fill column height */
        height: 100%;
    }

    /* Ensure card containers fill available height for clean alignment */
    .predictions-container,
    .travelcosts-container,
    .gradient-border,
    .group {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
}

/* Side-by-side layout for Reiskosten and Tankbonnen when both predictions and opening times are hidden */
@media (min-width: 1024px) {
    .reiskosten-tankbonnen-side-by-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        width: 100%;
        align-items: stretch;
    }

    .reiskosten-tankbonnen-side-by-side .side-by-side-col {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        min-width: 0;
        padding: 0;
    }

    .reiskosten-tankbonnen-side-by-side .side-by-side-col > * {
        flex: 1 1 auto;
        height: 100%;
    }

    /* Ensure card containers fill available height for clean alignment */
    .reiskosten-tankbonnen-side-by-side .travelcosts-container,
    .reiskosten-tankbonnen-side-by-side .tankbonnen-container,
    .reiskosten-tankbonnen-side-by-side .group {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
}

/* Mobile: stack vertically for side-by-side layout */
@media (max-width: 1023px) {
    .reiskosten-tankbonnen-side-by-side {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        gap: 1em;
    }

    .reiskosten-tankbonnen-side-by-side .side-by-side-col {
        width: 100% !important;
        min-width: 0;
        flex: none !important;
        padding: 0;

    }

    .reiskosten-tankbonnen-side-by-side .side-by-side-col > * {
        height: auto !important;
        flex: none !important;
    }

    /* Ensure card containers don't stretch on mobile */
    .reiskosten-tankbonnen-side-by-side .travelcosts-container,
    .reiskosten-tankbonnen-side-by-side .tankbonnen-container,
    .reiskosten-tankbonnen-side-by-side .group {
        height: auto !important;
        flex: none !important;
    }
}

/* Modal Styles - Reusable across pages */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(2px);
}

/* Station picker modal should appear above other modals */
.modal--station-picker {
    z-index: 3000;
}

.modal.open {
    display: flex;
}

.modal__dialog {
    background: #fff;
    border-radius: var(--border-radius-1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Modal size variants */
.modal__dialog--large {
    max-width: 90vw;
    max-height: 90vh;
    min-height: 90vh;
}

.modal__dialog--medium {
    max-width: 600px;
}

.modal__dialog--small {
    max-width: 350px;
}

/* Station picker modal body needs specific height for map */
.modal--station-picker .modal__body {
    height: 70vh !important;
    padding: 0 !important;
}

/* Station picker map container */
#stationPickerMap {
    width: 100% !important;
    height: 100% !important;
    min-height: 75vh;
}

/* Fade/slide animations similar to map.php preferences modal */
.modal.fade-in {
    animation: fadeIn 0.2s ease-in-out;
}

.modal.fade-out {
    animation: fadeOut 0.2s ease-in-out forwards;
}

.modal__dialog.fade-in {
    animation: slideIn 0.3s ease-out;
}

.modal__dialog.fade-out {
    animation: slideOut 0.2s ease-in-out forwards;
}

/* Mobile-specific sizing to match map preferences modal */
@media (max-width: 768px) {
    .modal__dialog {
        max-height: 83vh;
        width: 95%;
        margin: 0;
    }
    
    /* Fix date input width on mobile to prevent overflow */
    .modal__body input[type="date"],
    .modal__body input[type="date"].form-control {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    
    /* Ensure form controls in modal don't overflow */
    .modal__body .form-control,
    .modal__body .form-select {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure row/col structure doesn't cause overflow */
    .modal__body .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .modal__body .col-12,
    .modal__body [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-left: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.modal__body {
    padding: 1em;
    flex: 1;
    overflow-y: auto;
}

.modal--history .modal__body {
    padding-top: 0 !important;
}

/* Keep fuel selector visible while scrolling modal content */
.modal__body .buttons {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.modal__close {
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Modal footer styles */
.modal__footer {
    padding: 1em;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal--receipt-detail .modal__footer{
    justify-content: space-between !important   ;
}

/* Receipt modal footer - cancel button on left, save button on right */
.modal--receipt .modal__footer {
    justify-content: space-between !important;
}

/* Receipt modal styling - serrated edges, no rounded corners */
.modal--receipt .modal__dialog,
.modal--receipt-detail .modal__dialog {
    border-radius: 0 !important;
    position: relative;
    overflow: visible;
}

/* Serrated edge at the top - receipt style zigzag using clip-path */
.modal--receipt .modal__dialog::before,
.modal--receipt-detail .modal__dialog::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: #fff;
    /* Create zigzag pattern using clip-path */
    clip-path: polygon(
        0% 100%,
        2.5% 0%,
        5% 100%,
        7.5% 0%,
        10% 100%,
        12.5% 0%,
        15% 100%,
        17.5% 0%,
        20% 100%,
        22.5% 0%,
        25% 100%,
        27.5% 0%,
        30% 100%,
        32.5% 0%,
        35% 100%,
        37.5% 0%,
        40% 100%,
        42.5% 0%,
        45% 100%,
        47.5% 0%,
        50% 100%,
        52.5% 0%,
        55% 100%,
        57.5% 0%,
        60% 100%,
        62.5% 0%,
        65% 100%,
        67.5% 0%,
        70% 100%,
        72.5% 0%,
        75% 100%,
        77.5% 0%,
        80% 100%,
        82.5% 0%,
        85% 100%,
        87.5% 0%,
        90% 100%,
        92.5% 0%,
        95% 100%,
        97.5% 0%,
        100% 100%,
        100% 100%,
        0% 100%
    );
    z-index: 1;
}

/* Serrated edge at the bottom - receipt style zigzag using clip-path */
.modal--receipt .modal__dialog::after,
.modal--receipt-detail .modal__dialog::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: #fff;
    /* Create zigzag pattern using clip-path */
    clip-path: polygon(
        0% 0%,
        2.5% 100%,
        5% 0%,
        7.5% 100%,
        10% 0%,
        12.5% 100%,
        15% 0%,
        17.5% 100%,
        20% 0%,
        22.5% 100%,
        25% 0%,
        27.5% 100%,
        30% 0%,
        32.5% 100%,
        35% 0%,
        37.5% 100%,
        40% 0%,
        42.5% 100%,
        45% 0%,
        47.5% 100%,
        50% 0%,
        52.5% 100%,
        55% 0%,
        57.5% 100%,
        60% 0%,
        62.5% 100%,
        65% 0%,
        67.5% 100%,
        70% 0%,
        72.5% 100%,
        75% 0%,
        77.5% 100%,
        80% 0%,
        82.5% 100%,
        85% 0%,
        87.5% 100%,
        90% 0%,
        92.5% 100%,
        95% 0%,
        97.5% 100%,
        100% 0%,
        100% 0%,
        0% 0%
    );
    z-index: 1;
}

/* Ensure modal content doesn't overflow the serrated edges */
.modal--receipt .modal__dialog > *,
.modal--receipt-detail .modal__dialog > * {
    position: relative;
    z-index: 2;
}

/* Make receipt modals smaller on desktop screens */
@media (min-width: 768px) {
    .modal--receipt .modal__dialog.modal__dialog--medium,
    .modal--receipt-detail .modal__dialog.modal__dialog--medium {
        max-width: 450px;
    }
}

/* Reusable flex container for horizontal alignment with gap */
.flex-center-gap {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Custom Date Picker Styling */
.custom-date-picker {
    position: relative;
    width: 100%;
}

.custom-date-picker-wrapper {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.custom-date-picker-day,
.custom-date-picker-month,
.custom-date-picker-year {
    position: relative;
    flex: 1;
    min-width: 0;
}

.custom-date-picker-day {
    flex: 0 0 auto;
    width: 4.5em;
}

.custom-date-picker-month {
    flex: 1 1 0;
    min-width: 0;
}

.custom-date-picker-year {
    flex: 0 0 auto;
    width: 5.5em;
}

.custom-date-picker-trigger {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-2);
    background-color: #ffffff;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
}

.custom-date-picker-trigger:hover {
    border-color: #9ca3af;
}

.custom-date-picker-trigger:focus,
.custom-date-picker-trigger.active {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(243, 134, 81, 0.1);
}

.custom-date-picker-text {
    flex: 1;
    text-align: left;
}

.custom-date-picker-arrow {
    width: 12px;
    height: 12px;
    color: #6b7280;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-date-picker-trigger.active .custom-date-picker-arrow {
    transform: rotate(180deg);
}

.custom-date-picker-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 2px;
}

.custom-date-picker-menu.show {
    display: block;
}

.custom-date-picker-menu .date-option {
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #374151;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.custom-date-picker-menu .date-option:hover {
    background-color: #f9fafb;
}

.custom-date-picker-menu .date-option:active {
    color: #374151 !important;
    background-color: #f9fafb !important;
}

.custom-date-picker-menu .date-option[data-selected="true"] {
    background-color: rgba(243, 134, 81, 0.1);
    color: var(--color-primary);
    font-weight: 500;
}

.custom-date-picker-menu .date-option[data-selected="true"]:active {
    color: var(--color-primary) !important;
    background-color: rgba(243, 134, 81, 0.15) !important;
}

/* Hide native date input */
.custom-date-picker input[type="date"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Hide native date input in calendar date picker */
.calendar-date-picker input[type="date"],
.calendar-date-picker ~ input[type="date"][id*="fuel_date"],
input[type="date"][id*="fuel_date"] {
    display: none !important;
}

/* Mobile optimizations for date picker */
@media (max-width: 768px) {
    .custom-date-picker-wrapper {
        flex-wrap: nowrap;
        gap: 0.375rem;
    }
    
    .custom-date-picker-day {
        width: 4em;
    }
    
    .custom-date-picker-year {
        width: 5em;
    }
    
    .custom-date-picker-trigger {
        font-size: 0.8125rem;
        padding: 6px 10px;
    }
}

/* Calendar Date Picker (Apple-style) */
.calendar-date-picker {
    position: relative;
    width: 100%;
}

.calendar-date-picker-trigger {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-2);
    background-color: #ffffff;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
}

.calendar-date-picker-trigger:hover {
    border-color: #9ca3af;
}

.calendar-date-picker-trigger:focus,
.calendar-date-picker-trigger.active {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(243, 134, 81, 0.1);
}

.calendar-date-picker-display {
    flex: 1;
    text-align: left;
}

.calendar-date-picker-arrow {
    width: 12px;
    height: 12px;
    color: #6b7280;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.calendar-date-picker-trigger.active .calendar-date-picker-arrow {
    transform: rotate(180deg);
}

.calendar-date-picker-popup {
    position: fixed;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-2);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: none;
    padding: 1rem;
    min-width: 280px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Desktop: smaller calendar */
@media (min-width: 769px) {
    .calendar-date-picker-popup {
        padding: 0.75rem;
        min-width: 240px;
        max-width: 280px;
    }
    
    .calendar-date-picker-popup[style*="width"] {
        min-width: auto;
        max-width: none;
    }
    
    .calendar-header {
        margin-bottom: 0.75rem;
    }
    
    .calendar-nav-btn {
        width: 28px;
        height: 28px;
        padding: 0.25rem;
    }
    
    .calendar-nav-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .calendar-month-year {
        font-size: 0.875rem;
    }
    
    .calendar-weekdays {
        gap: 0.125rem;
        margin-bottom: 0.375rem;
    }
    
    .calendar-weekday {
        font-size: 0.6875rem;
        padding: 0.375rem 0;
    }
    
    .calendar-days {
        gap: 0.125rem;
    }
    
    .calendar-day {
        font-size: 0.8125rem;
    }
    
    .calendar-day.today:not(.selected)::after {
        width: 3px;
        height: 3px;
        bottom: 3px;
    }
}

.calendar-date-picker-popup.show {
    display: block;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: var(--border-radius-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 32px;
    height: 32px;
}

.calendar-nav-btn:hover {
    background-color: #f3f4f6;
    color: var(--color-primary);
}

.calendar-nav-btn:active {
    background-color: #e5e7eb;
}

.calendar-nav-btn svg {
    width: 16px;
    height: 16px;
}

.calendar-month-year {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    text-align: center;
    flex: 1;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #111827;
    cursor: pointer;
    border-radius: var(--border-radius-2);
    transition: background-color 0.2s ease, color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.calendar-day:hover {
    background-color: #f3f4f6;
}

.calendar-day.other-month {
    color: #d1d5db;
}

.calendar-day.today {
    font-weight: 600;
}

.calendar-day.today:not(.selected)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.calendar-day.selected {
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
}

.calendar-day.selected.today::after {
    display: none;
}

.calendar-day:active {
    transform: scale(0.95);
}

/* Mobile optimizations for calendar */
@media (max-width: 768px) {
    .calendar-date-picker-popup {
        padding: 0.75rem;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .calendar-day {
        font-size: 0.8125rem;
    }
    
    .calendar-weekday {
        font-size: 0.6875rem;
        padding: 0.375rem 0;
    }
    
    .calendar-month-year {
        font-size: 0.875rem;
    }
}