:root {
    --ink: #241f1e;
    --muted: #57504e;
    --line: #dcd8d6;
    --field: #8a8380;
    --hover: #f1efee;
    --forest: #123f19;
    --forest-dark: #0c2d11;
    --yellow: #fbc34b;
    --pea: #b5d334;
    --pea-dark: #a0bd22;
    --link: #1e6b2c;
    --gutter: 32px;
    --header-h: 76px;
    --filter-h: 65px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: #fff;
    overflow-wrap: break-word;
}

a {
    color: var(--link);
}

button,
select,
input,
textarea {
    font: inherit;
    color: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 {
    font-size: 30px;
}

h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

h4 {
    font-size: 16px;
}

.hidden {
    display: none;
}

.noscroll {
    overflow: hidden;
}

.pointer {
    cursor: pointer;
}

.floatright {
    float: right;
}

.paddingTop {
    padding-top: 10px;
}

.section {
    padding-bottom: 20px;
}

.header-cta,
.button,
.pt_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--pea);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.header-cta:hover,
.button:hover,
.pt_button:hover {
    background: var(--pea-dark);
}

.button {
    min-height: 52px;
    padding: 12px 24px;
}

.button.dark {
    background: var(--forest);
    color: #fff;
}

.button.dark:hover {
    background: var(--forest-dark);
}

.button.arrow::after,
.btn_preview::after,
.btn_send::after,
.btn_edit_send::after {
    content: '\2192';
    font-weight: 400;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.site-header .bar {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1304px;
    height: var(--header-h);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--forest);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none;
}

.brand img {
    display: block;
    width: auto;
    height: 34px;
}

.main-nav {
    display: flex;
    align-self: stretch;
    margin-left: auto;
}

.main-nav>a,
.main-nav .nav-toggle {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.main-nav>a:hover,
.main-nav .nav-toggle:hover,
.nav-group.open .nav-toggle {
    background: var(--hover);
}

.main-nav>a.active {
    box-shadow: inset 0 -4px 0 var(--forest);
}

.nav-group {
    position: relative;
}

.nav-toggle .material-icons {
    margin-left: 2px;
    font-size: 18px;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 300px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--forest);
}

.nav-group.open .dropdown {
    display: block;
}

@media (hover: hover) {
    .nav-group:hover .dropdown {
        display: block;
    }
}

.dropdown a {
    display: block;
    padding: 9px 20px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.dropdown a:hover {
    background: var(--hover);
}

.header-cta {
    height: 48px;
    padding: 0 22px;
}

.header-cta .short {
    display: none;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.menu-toggle .material-icons {
    font-size: 28px;
}

#menu {
    position: fixed;
    z-index: 300;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%;
    overflow-y: auto;
    background: var(--forest);
    color: #fff;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.15s ease-out, visibility 0.15s;
}

#menu.open {
    transform: none;
    visibility: visible;
}

#menu .closer {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#menu .closer button {
    width: 48px;
    height: 48px;
    color: #fff;
}

#menu .closer .material-icons {
    font-size: 32px;
}

#menu a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

#menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

#menu .menu-label {
    padding: 24px 24px 8px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#menu .sub a {
    font-size: 16px;
    font-weight: 600;
}

#menu a.menu-cta {
    margin: 24px;
    border: 0;
    background: var(--pea);
    color: var(--ink);
}

.page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.filters {
    position: sticky;
    z-index: 90;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.filters .inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1304px;
    margin: 0 auto;
    padding: 12px var(--gutter);
}

.filter-open,
.sheet-head,
.sheet-apply,
.scrim,
.extra .field-label {
    display: none;
}

.chips,
.seg {
    display: flex;
}

.chips {
    gap: 6px;
}

.seg button+button {
    margin-left: -1px;
}

.chips button,
.seg button,
.filter-open {
    height: 40px;
    padding: 0 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.chips button:hover,
.seg button:hover,
.filter-open:hover {
    background: var(--hover);
}

.chips button.on,
.chips button.on:hover,
.seg button.on,
.seg button.on:hover {
    background: var(--forest);
    box-shadow: none;
    color: #fff;
}

.seg small {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.75;
}

.extra {
    display: contents;
}

.extra .seg {
    order: -1;
}

.list-count {
    flex-shrink: 1;
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    color: var(--muted);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty {
    padding: 48px 0;
    color: var(--muted);
    text-align: center;
}

.empty button {
    color: var(--link);
    font-weight: 700;
    text-decoration: underline;
}

.market {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 48px;
    max-width: 1304px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.market.stor-karta {
    grid-template-columns: minmax(0, 1fr);
}

.market.stor-karta .col2 {
    display: none;
}

.fodertipset-org-banner {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.fodertipset-org-banner img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 4px;
}

.ad-row {
    display: flex;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.ad-row:hover {
    background: var(--hover);
    box-shadow: -10px 0 0 var(--hover), 10px 0 0 var(--hover);
}

.thumb {
    flex: 0 0 150px;
    width: 150px;
    height: 100px;
    background: var(--hover);
    object-fit: cover;
}

.ad-row .body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.line.top {
    flex-wrap: wrap;
    row-gap: 0;
}

.name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.price {
    margin-left: auto;
    font-size: 17px;
    white-space: nowrap;
}

.meta {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.date .short {
    display: none;
}

.icon_krav,
.icon_sigill,
.icon_eu {
    display: inline-block;
    flex-shrink: 0;
    width: 36px;
    height: 22px;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
}

.icon_krav {
    background-image: url(/static/128/54670.png);
}

.icon_sigill {
    background-image: url(/static/128/71901.png);
}

.icon_eu {
    background-image: url(/static/128/48335.png);
}

.tag {
    flex-shrink: 0;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.tag.new {
    background: var(--pea);
}

.tag.buy {
    background: var(--yellow);
}

.col2 {
    position: sticky;
    top: calc(var(--header-h) + var(--filter-h) + 20px);
    align-self: start;
    margin-top: 20px;
}

#annons_map,
#annons_map_single {
    isolation: isolate;
    width: 100%;
    height: 100%;
    background: #dfe9ee;
}

#annons_map.liten {
    height: calc(100vh - var(--header-h) - var(--filter-h) - 40px);
    min-height: 420px;
}

#annons_map.stor {
    height: 600px;
    margin-bottom: 16px;
}

#annons_map.helskarm {
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.leaflet-tile-pane {
    filter: saturate(0.55) brightness(1.03);
}

.leaflet-container {
    font-family: inherit;
}

.leaflet-bar,
.leaflet-touch .leaflet-bar {
    border-radius: 0;
    box-shadow: none;
}

.leaflet-bar a:first-child,
.leaflet-bar a:last-child,
.leaflet-touch .leaflet-bar a:first-child,
.leaflet-touch .leaflet-bar a:last-child {
    border-radius: 0;
}

.leaflet-control-storlek a {
    background: #fff url(/static/48329.png) no-repeat 1px -1px;
}

.pin {
    display: block;
    width: 18px;
    height: 18px;
    margin: 5px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--forest);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.pin.buy {
    background: var(--yellow);
    border-color: var(--ink);
    box-shadow: none;
}

.pin.hl {
    transform: scale(1.6);
}

.leaflet-popup-content-wrapper {
    border: 1px solid var(--ink);
    border-radius: 0;
    box-shadow: none;
}

.leaflet-popup-content {
    margin: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
}

.leaflet-container a.map-popup {
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.map-popup b {
    display: block;
    font-size: 16px;
}

.map-popup span {
    display: block;
}

.leaflet-container .map-popup .more {
    margin-top: 4px;
    color: var(--link);
    font-weight: 700;
}

.map-toggle {
    display: none;
}

.bottom-cta {
    margin-top: 56px;
    background: var(--yellow);
}

.bottom-cta .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    max-width: 1304px;
    margin: 0 auto;
    padding: 32px var(--gutter);
}

.bottom-cta h2 {
    margin: 0;
    font-size: 26px;
}

#bottom {
    background: var(--forest-dark);
    color: rgba(255, 255, 255, 0.82);
}

#bottom .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 64px;
    max-width: 1304px;
    margin: 0 auto;
    padding: 48px var(--gutter);
}

#bottom .brand {
    margin-bottom: 6px;
    color: #fff;
}

#bottom .byline {
    margin-bottom: 14px;
    color: #fff;
    font-family: 'Journal', cursive;
    font-size: clamp(32px, 10.5vw, 44px);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

#bottom h4 {
    margin-bottom: 12px;
    color: var(--yellow);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#bottom ul {
    columns: 2;
    list-style: none;
}

#bottom li {
    padding: 4px 0;
    break-inside: avoid;
}

#bottom a {
    color: #fff;
}

.partners {
    grid-column: 1 / -1;
}

.partners p {
    margin-bottom: 14px;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 20px;
    background: #fff;
}

.logo-tile img {
    display: block;
    width: auto;
    height: 36px;
}

.logo-tile img.wide {
    height: 24px;
}

#bottom .jur {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
}

.ad {
    max-width: 1304px;
    margin: 0 auto;
    padding: 20px var(--gutter) 56px;
}

.ad>p {
    margin-bottom: 12px;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.back:hover {
    text-decoration: underline;
}

.back .material-icons {
    font-size: 22px;
}

.ad-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
}

.ad h1 {
    margin-bottom: 6px;
}

.ad .place {
    margin-bottom: 16px;
    color: var(--muted);
}

.facts {
    margin-bottom: 20px;
    border-top: 1px solid var(--line);
}

.facts>div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.facts dt {
    color: var(--muted);
}

.facts .yes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.facts .material-icons {
    color: var(--link);
    font-size: 20px;
}

.facts .icon_krav,
.facts .icon_sigill,
.facts .icon_eu {
    margin-right: 4px;
    vertical-align: middle;
}

.ad .ad-text {
    max-width: 62ch;
    margin-bottom: 20px;
    white-space: pre-line;
}

.ad .phone {
    width: 100%;
}

.ad .phone+.phone {
    margin-top: 8px;
}

.ad-puff {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
}

.ad-puff::after {
    content: ' \2192';
    font-weight: 400;
}

.ad-map {
    height: 420px;
}

.edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.edit-link .material-icons {
    font-size: 16px;
}

.more {
    margin-top: 40px;
}

.more h2 {
    margin-bottom: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
}

.more .name,
.more .price {
    font-size: 16px;
}

.more .meta,
.more .date {
    font-size: 14px;
}

@media only screen and (min-width: 1181px) {
    .more .items {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 32px;
    }

    .more .thumb {
        flex-basis: 120px;
        width: 120px;
        height: 80px;
    }

    .more .date .long {
        display: none;
    }

    .more .date .short {
        display: inline;
    }
}

.call-bar {
    display: none;
}

.kontaktform {
    margin-top: 12px;
    padding: 16px;
    background: var(--hover);
}

.kontaktform h3 {
    padding-right: 72px;
}

.kontaktform p {
    margin-bottom: 10px;
}

.kontaktform label {
    display: inline-block;
    padding: 4px 0;
}

.kontaktform input[type=text],
.kontaktform input[type=email],
.kontaktform input[type=number],
.kontaktform textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--field);
    border-radius: 0;
    background: #fff;
    font-size: 16px;
}

.kontaktform input[type=submit] {
    min-height: 48px;
    margin-top: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: var(--pea);
    font-weight: 700;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.kontaktform input[type=submit]:hover {
    background: var(--pea-dark);
}

.na_error {
    margin-top: 8px;
    padding: 6px 10px;
    background: var(--yellow);
    font-size: 14px;
}

.icon_close {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(/static/50426.png) no-repeat;
}

.icon_close:hover {
    background-image: url(/static/50578.png);
}

#dialog-wrapper {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 45, 17, 0.55);
}

#dialog-wrapper .inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#dialog-box {
    position: relative;
    width: 800px;
    max-width: 100%;
    max-height: calc(100% - 48px);
    overflow-y: auto;
    background: #fff;
    border-top: 8px solid var(--forest);
}

#dialog-box a.close {
    display: flex;
    position: sticky;
    z-index: 2;
    top: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 0 -48px auto;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line);
    color: var(--ink);
    cursor: pointer;
}

#dialog-box a.close:hover {
    background: var(--hover);
}

#dialog-box a.close .material-icons {
    font-size: 28px;
}

#dialog-box .content {
    padding: 24px 32px 32px;
}

#dialog-box .content::after {
    content: '';
    display: block;
    clear: both;
}

#dialog-box .content h2 {
    padding-right: 40px;
}

#dialog-box .content p,
#dialog-box .content li {
    margin-bottom: 10px;
}

#dialog-box .content ul {
    padding-left: 20px;
}

#na_formform>p {
    padding-right: 40px;
}

div.col50 {
    float: left;
    width: 50%;
}

.form-section {
    padding: 20px 0 8px;
}

.form-section+.form-section {
    border-top: 1px solid var(--line);
}

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

.form-field>label,
.field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
}

.form-field small,
.field-label small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}

.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=tel],
.form-field select,
.form-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--field);
    border-radius: 0;
    background-color: #fff;
    font-size: 16px;
}

.form-field select {
    padding-right: 36px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23241f1e'/%3E%3C/svg%3E") no-repeat right 8px center;
    -webkit-appearance: none;
    appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid var(--forest);
    outline-offset: -1px;
}

.form-field .hint {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.input-unit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-unit input[type=text] {
    flex: 1;
    min-width: 0;
}

.input-unit select {
    flex: 0 0 96px;
    width: 96px;
}

.input-unit .per {
    white-space: nowrap;
}

.type-toggle {
    display: flex;
    margin-bottom: 16px;
}

.type-toggle label,
.toggle-row label {
    position: relative;
    cursor: pointer;
}

.type-toggle label {
    flex: 1;
}

.type-toggle label+label {
    margin-left: -1px;
}

.type-toggle input,
.toggle-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.type-toggle span,
.toggle-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px var(--field);
}

.type-toggle span {
    height: 52px;
    font-size: 18px;
    font-weight: 700;
}

.toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.toggle-row span {
    height: 48px;
    padding: 0 16px;
    font-weight: 600;
}

.type-toggle input:checked+span,
.toggle-row input:checked+span {
    background: var(--forest);
    box-shadow: none;
    color: #fff;
}

.type-toggle input:focus-visible+span,
.toggle-row input:focus-visible+span {
    outline: 2px solid var(--forest);
    outline-offset: 2px;
}

.tooltip {
    margin-top: 6px;
    padding: 6px 10px;
    background: var(--yellow);
    font-size: 14px;
}

.personuppgifter {
    color: var(--muted);
    font-size: 13px;
}

#dialog-box .content .form-foot {
    position: sticky;
    z-index: 1;
    bottom: 0;
    margin: 0 -32px -32px;
    padding: 12px 32px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.pt_button {
    width: 100%;
    min-height: 52px;
    padding: 12px 24px;
}

.pt_button+.pt_button {
    margin-top: 8px;
}

.btn_change,
.btn_edit_change {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--forest);
}

.btn_change:hover,
.btn_edit_change:hover {
    background: var(--hover);
}

.nyannons {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.nyannons td {
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.nyannons td:first-child {
    width: 30%;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.ajax_loader_div {
    padding: 12px 0;
    text-align: center;
}

#consent {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    border-top: 4px solid var(--forest);
}

#consent[hidden] {
    display: none;
}

#consent .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px 40px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
}

#consent .text {
    flex: 1 1 400px;
    max-width: 760px;
    font-size: 15px;
}

#consent h3 {
    margin-bottom: 6px;
    font-size: 20px;
}

#consent .buttons,
#dialog-box .consent-buttons {
    display: flex;
    gap: 10px;
}

#consent button,
#dialog-box .consent-buttons button {
    flex: 1;
    min-width: 140px;
    padding: 10px 22px;
    border: 2px solid var(--forest);
    background: var(--forest);
    color: #fff;
    font-weight: 700;
}

#consent button:hover,
#dialog-box .consent-buttons button:hover {
    border-color: var(--forest-dark);
    background: var(--forest-dark);
}

#consent button[data-consent=nej],
#dialog-box .consent-buttons button[data-consent=nej] {
    background: #fff;
    color: var(--forest);
}

#consent button[data-consent=nej]:hover,
#dialog-box .consent-buttons button[data-consent=nej]:hover {
    background: var(--hover);
    color: var(--forest-dark);
}

.kakor h3 {
    margin: 20px 0 8px;
}

.kakor .consent-state {
    padding: 5px 0 10px;
    font-weight: 700;
}

.kakor .consent-buttons {
    margin-bottom: 20px;
}

.kakor .cookie-list {
    margin-bottom: 15px;
}

.kakor .cookie-list summary {
    padding: 6px 0;
    color: var(--link);
    font-weight: 700;
    cursor: pointer;
}

.kakor table {
    width: 100%;
    margin-top: 5px;
    border-collapse: collapse;
    font-size: 14px;
}

.kakor th,
.kakor td {
    padding: 6px 10px 6px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

@media only screen and (max-width: 1180px) {
    .main-nav {
        display: none;
    }

    .header-cta {
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .filters .inner {
        gap: 8px;
    }

    .list-count {
        display: none;
    }

    .filter-open {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        gap: 6px;
    }

    .filter-open .material-icons {
        font-size: 18px;
    }

    .filter-open .n {
        display: none;
        min-width: 18px;
        padding: 0 4px;
        background: var(--forest);
        color: #fff;
        font-size: 12px;
        line-height: 18px;
        text-align: center;
    }

    .filter-open .n.show {
        display: block;
    }

    .chips.crops {
        flex: 1;
        min-width: 0;
        margin-right: calc(var(--gutter) * -1);
        padding-right: var(--gutter);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .chips.crops::-webkit-scrollbar {
        display: none;
    }

    .filters.sheet-open {
        z-index: 250;
    }

    .extra {
        display: none;
        position: fixed;
        z-index: 1;
        right: 0;
        bottom: 0;
        left: 0;
        max-height: 85vh;
        overflow-y: auto;
        padding: 0 16px 16px;
        background: #fff;
        border-top: 8px solid var(--forest);
    }

    .extra.open {
        display: block;
    }

    .sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
    }

    .sheet-head h3 {
        margin: 0;
        font-size: 20px;
    }

    .sheet-head button {
        width: 48px;
        height: 48px;
        margin-right: -12px;
    }

    .extra .field-label {
        display: block;
        margin: 14px 0 6px;
    }

    .extra .seg button {
        flex: 1;
        height: 48px;
    }

    .extra .chips button {
        height: 48px;
        padding: 0 18px;
    }

    .sheet-apply {
        display: flex;
        width: 100%;
        margin-top: 18px;
    }

    .scrim {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(12, 45, 17, 0.55);
    }

    .scrim.open {
        display: block;
    }

    .market {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 32px;
    }

    .ad-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px;
    }

}

@media only screen and (max-width: 1000px) {
    .thumb {
        flex-basis: 120px;
        width: 120px;
        height: 80px;
    }
}

@media only screen and (max-width: 800px) {
    :root {
        --gutter: 16px;
        --header-h: 60px;
        --filter-h: 57px;
    }

    h1 {
        font-size: 26px;
    }

    .site-header .bar {
        gap: 6px;
        padding-right: 6px;
    }

    .brand {
        gap: 5px;
        font-size: 19px;
    }

    .brand img {
        height: 20px;
    }

    .header-cta {
        height: 42px;
        padding: 0 12px;
    }

    .header-cta .long {
        display: none;
    }

    .header-cta .short {
        display: inline;
    }

    .filters .inner {
        padding: 8px var(--gutter);
    }

    .market {
        display: block;
    }

    .col2 {
        display: none;
    }

    .leaflet-control-storlek {
        display: none;
    }

    .map-toggle {
        display: flex;
        position: sticky;
        z-index: 80;
        bottom: max(16px, env(safe-area-inset-bottom));
        align-items: center;
        gap: 8px;
        width: max-content;
        height: 48px;
        margin: 16px auto 0;
        padding: 0 20px;
        background: var(--forest);
        color: #fff;
        font-weight: 700;
    }

    html.show-map .map-toggle {
        position: fixed;
        left: 50%;
        margin: 0;
        transform: translateX(-50%);
    }

    .map-toggle .material-icons {
        font-size: 22px;
    }

    html.show-map .col1,
    html.show-map .bottom-cta,
    html.show-map #bottom {
        display: none;
    }

    html.show-map .col2 {
        display: block;
        position: static;
        margin: 0 calc(var(--gutter) * -1);
    }

    html.show-map #annons_map.liten {
        height: calc(100vh - var(--header-h) - var(--filter-h) - 1px);
        height: calc(100dvh - var(--header-h) - var(--filter-h) - 1px);
        min-height: 0;
    }

    .items {
        margin: 0 calc(var(--gutter) * -1);
    }

    .ad-row {
        gap: 12px;
        padding: 10px var(--gutter) 10px 0;
    }

    .fodertipset-org-banner {
        padding: 10px 0;
    }

    .fodertipset-org-banner span {
        padding-left: var(--gutter);
    }

    .thumb {
        flex-basis: 102px;
        width: 102px;
        height: 68px;
    }

    .name {
        font-size: 17px;
    }

    .price {
        font-size: 15px;
    }

    .meta {
        font-size: 15px;
    }

    .icon_krav,
    .icon_sigill,
    .icon_eu {
        width: 30px;
        height: 18px;
    }

    .date {
        font-size: 13px;
    }

    .date .long {
        display: none;
    }

    .date .short {
        display: inline;
    }

    .bottom-cta {
        margin-top: 32px;
    }

    .bottom-cta .inner {
        padding: 24px var(--gutter);
    }

    .bottom-cta h2 {
        font-size: 21px;
    }

    .bottom-cta .button {
        width: 100%;
    }

    #bottom .inner {
        grid-template-columns: minmax(0, 1fr);
        padding: 32px var(--gutter);
    }

    #bottom.with-call-bar .inner {
        padding-bottom: 96px;
    }

    #bottom ul {
        columns: 1;
    }

    #bottom li {
        padding: 7px 0;
    }

    .logos {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logo-tile {
        height: 56px;
        padding: 0 14px;
    }

    .logo-tile img {
        height: 28px;
    }

    .logo-tile img.wide {
        height: 19px;
    }

    .ad {
        padding: 12px var(--gutter) 32px;
    }

    .back {
        min-height: 44px;
        margin-bottom: 4px;
    }

    .ad-grid {
        display: block;
    }

    .ad .place {
        margin-bottom: 12px;
    }

    .ad-map {
        height: 240px;
        margin: 24px calc(var(--gutter) * -1) 0;
    }

    .more {
        margin-top: 24px;
    }

    .edit-link {
        min-height: 44px;
        margin-top: 4px;
    }

    .call-bar.visible {
        display: flex;
    }

    .call-bar {
        position: fixed;
        z-index: 95;
        right: 0;
        bottom: 0;
        left: 0;
        align-items: center;
        gap: 12px;
        padding: 10px var(--gutter);
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--line);
    }

    .call-bar .bar-who {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        font-weight: 700;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .call-bar .bar-who small {
        display: block;
        color: var(--muted);
        font-size: 14px;
        font-weight: 400;
    }

    .call-bar .button {
        flex: 0 0 auto;
        min-height: 48px;
        padding: 0 22px;
    }

    #dialog-wrapper .inner {
        align-items: stretch;
    }

    #dialog-box {
        width: 100%;
        max-height: none;
    }

    #dialog-box .content {
        padding: 16px var(--gutter) 24px;
    }

    #dialog-box .content .form-foot {
        margin: 0 calc(var(--gutter) * -1) -24px;
        padding: 10px var(--gutter);
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    div.col50 {
        float: none;
        width: 100%;
    }

    .form-row.units {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    #consent .inner {
        padding: 15px;
    }

    #consent .text {
        flex-basis: 100%;
        font-size: 14px;
    }

    #consent .buttons {
        width: 100%;
    }

    #consent button {
        min-width: 0;
    }
}

@media only screen and (max-width: 359px) {
    .brand img {
        display: none;
    }

    .thumb {
        flex-basis: 84px;
        width: 84px;
    }
}
