/* Updated: 2026-12-01 13:38:58 */
/* OBS! Set the line above to the current time (Europe/Stockholm) on EVERY change of this file. It is used to see if the server or a cache gives us an old version */

/* Object you want to hide on mobile, give it this extra CSS class */
@media only screen and (max-width: 781px) {.hide-on-mobile { display: none !important;}}

/* Object you want to hide on tablet and mobile, give it this extra CSS class */
@media only screen and (max-width: 999px) { .hide-on-tablet { display: none !important;}}

/* Frontpage, used to resize the hero section image on mobile */
@media only screen and (max-width: 781px) {
    .smaller-image-on-mobile {
        width: 120px !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}

@media only screen and (min-width: 782px) and (max-width: 999px) {
    .smaller-image-on-tablet {
        width: 120px !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}

/* Larger text on mobile for list items*/
html body .text-large-on-mobile ul li, 
html body .text-large-on-mobile ul li span,
html body .text-large-on-mobile li {
    --wp--preset--font-size--normal: 18px !important;
    --wp--preset--font-size--medium: 18px !important;
    /* Font size on mobile*/
    font-size: 18px !important;
}

@media (min-width: 768px) {
    html body .text-large-on-mobile ul li,
    html body .text-large-on-mobile li {
        /* Font size on larger than mobile */
        font-size: 16px !important;
    }
}
/* end of larger text on mobile */

/* Menu -> startsidan show on mobile but hide on desktop */
.header-menu-1 .only-in-mobile-menu {
    display: none !important;
}

/* OBS! If the item ends up in the "more" then the whole "more" is hidden */
.header-menu-1 .more-items-container:has(.only-in-mobile-menu:only-child) {
    display: none !important;
}
.ct-off-canvas .only-in-mobile-menu {
    display: block !important;
}
/* end of Menu -> startsidan show on mobile but hide on desktop */

/* GeoDirectory grids (not the front page): 5 columns from 1200px, 3 from 768px, 1 below. Replaces ls_plugin_geodir_dynamic_set_geodir_num_cols.js
   (2026-11-27), which swapped GeoDirectory's row-cols classes and lost a race against GeoDirectory's own script ("View: Grid N",
   select-layout.php): that one runs 10 ms after the HTML, found no row-cols-md-* class left and put back row-cols-md-3 (its default,
   or the visitor's choice saved in localStorage "gd_list_view"), so it was sometimes 3 columns also on a wide screen.
   CSS does not depend on any class or timing. The view button is hidden, the choice it saves no longer matters */
body:not(.home) .gd-list-view-select { display: none !important; }
body:not(.home) .row.geodir-category-list-view.geodir-gridview > * { flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important; }
@media only screen and (min-width: 768px) {
    body:not(.home) .row.geodir-category-list-view.geodir-gridview > * { width: 33.3333% !important; max-width: 33.3333% !important; }
}
@media only screen and (min-width: 1200px) {
    body:not(.home) .row.geodir-category-list-view.geodir-gridview > * { width: 20% !important; max-width: 20% !important; }
}
/* end of GeoDirectory grids */

/* Page: gd_details, our "own read article"-badge should not have a blue box */
.gd-badge-transparent { background: transparent !important; border: none !important; padding: 0 !important; box-shadow: none !important;}

/* Page: Plats, the border around the plats-box*/
.card-body.position-relative.text-center.btn.btn-outline-primary.p-1.py-1 { border-color: var(--theme-palette-color-20) !important;}

/* Page: Kategori, the blue bar around the buttons */
.geodir-cpt-tag-parent .btn-outline-primary {
    border-color: var(--color-9) !important;
    color: var(--color-9) !important;
}
.geodir-cpt-tag-parent .btn-outline-primary:hover {
    background-color: var(--color-9) !important;
    border-color: var(--color-9) !important;
    color: var(--color-9) !important;
}

/* Make links all white */
.tagcloud a, 
.tagcloud a:visited, 
.tagcloud a:hover, 
.tagcloud a:active,
.wp-block-tag-cloud a,
.wp-block-tag-cloud a:visited,
.wp-block-tag-cloud a:hover,
.wp-block-tag-cloud a:active {
    color: #ffffff !important;
}

/* No underscore on links (except on hover)*/
.ls-no-link-underscore a {
    text-decoration: none !important;
}
.ls-no-link-underscore a:hover {
    text-decoration: underline !important;
}

/* Nyanslutna företag, placera bild till vänster */
.ls-mini-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 8px;
    min-height: 110px;
}
.ls-mini-card > .geodir-post-slider {
    flex-shrink: 0;
    width: 110px;
    min-height: 110px;
    align-self: stretch;
    position: relative;
}
.ls-mini-card .geodir-image-container,
.ls-mini-card .geodir-images,
.ls-mini-card .carousel-inner,
.ls-mini-card .carousel-item,
.ls-mini-card .ratio {
    height: 100% !important;
    min-height: 110px !important;
    width: 110px !important;
    position: relative !important;
}
.ls-mini-card .ratio {
    --bs-aspect-ratio: 0 !important;
    padding-bottom: 0 !important;
}
.ls-mini-card .geodir-link-image {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}
.ls-mini-card .geodir-image-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 0;
}
.ls-mini-card .geodir-link-image i {
    display: none !important;
}
.ls-content {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}
.ls-content .ls-title h3 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
}
.geodir-post .card {
    height: auto !important;
}
.geodir-widget-posts .col p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* End of Nyanslutna företag, placera bild till vänster */

/* Community bockar = premium */
.lsx6-cell.lsx6-center.lsx6-community {
  color: #D4C29A !important;
  font-weight: 600;
  font-size: 1.55rem;
}
/* Vanliga kolumner = neutrala */
.lsx6-center {
  color: #444;
}
/* Guldig ram runt community-kolumn */
.lsx6-community {
  border-left: 2px solid #A8977B;
  border-right: 2px solid #A8977B;
}
/* Toppen */
.lsx6-head.lsx6-community {
  border-top: 2px solid #A8977B;
}
/* Botten */
.lsx6-grid > .lsx6-row:last-child .lsx6-cell.lsx6-community {
  border-bottom: 2px solid #A8977B;
}
/* end of Community bockar = premium */

/* För att göra alla GeoDir kort lika höga*/
.geodir-category-list-view .col {
    display: flex;
}

.geodir-category-list-view .col > .card {
    width: 100%;
}

.geodir-category-list-view .col > .card > .card {
    flex: 1;
}
/* end of För att göra alla GeoDir kort lika höga*/

/* GetPaid, many pages */
.btn-secondary {
    background-color: var(--theme-palette-color-27) !important;
    border-color: var(--theme-palette-color-27) !important;
    color: #ffffff !important;
}

/* GetPaid, payment spinner: GetPaid's JS builds its spinner with the Bootstrap 4 class sr-only, */
/* which the Bootstrap 5 build of AyeCode UI no longer defines. Restore it so "Laddar..." stays hidden */
.bsui .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* end of GetPaid, payment spinner */

/* Claim button, and the claim confirmation button on /min-sida/ (ls_plugin_redirect_min_sida.php) */
.geodir-claim-post-form-link,
.ls_min_sida_claim_button {
    background-color: var(--theme-palette-color-27) !important;
    border-color: var(--theme-palette-color-27) !important;
    color: #ffffff !important;
}
/* The claim confirmation on /min-sida/ (ls_plugin_redirect_min_sida.php): space above and a bit bigger text */
.ls_min_sida_claim {
    margin-top: 20px;
    font-size: 1.2em;
}
/* Set width of newsletter input */
footer [data-column="widget-area-3"] .ct-widget {
  width: 500px;
}

@media (max-width: 768px) {
  footer [data-column="widget-area-3"] .ct-widget {
    width: 100%;
  }
}

/* Uppgradera: Column width */
.ls_current_package_utokad .ls-package-community,
.ls_current_package_cup .ls-package-community {
    max-width: 600px;
	margin-left: auto; margin-right: auto;
}


/* FluentCommunity login page (/portal/?fcom_action=auth): the error message, e.g. wrong password or deactivated account.
   [class*="error"] since the message comes from FluentAuth's JS on our site, and from FluentCommunity's JS (.fcom_field_error) without it */
.fcom_user_onboard .fcom_onboard_form [class*="error"]:not(.fcom_has_error) {
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.3;
    color: #c8102e;
    margin: 0.6em 0;
}


/* Search results (also "Nära mig"): the whole card is clickable, not only the title and the image.
   The title link is stretched over the card with an invisible layer (::after), so there is still only one link per
   card for screen readers. Other links and buttons in the card (e.g. category links) are put above the layer so
   they keep working. The text in the card can not be selected with the mouse, that is the price of this method */
body.search .entries > article {
    position: relative;
    cursor: pointer;
}
body.search .entries > article .entry-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
body.search .entries > article a:not(.entry-title a),
body.search .entries > article button {
    position: relative;
    z-index: 2;
}

/* Search results: the front page search block above the result cards (ls_search_box_above_results() in ls_plugin_search_results_code.php) */
.ls_search_box_above_results {
    max-width: 720px;
    margin: 0 auto 32px;
}

/* Package change on /uppgradera/: the boxes of the shortcode [ls_paketbyte] (ls_plugin_package_change.php) */
.ls_paketbyte_confirm,
.ls_paketbyte_pending,
.ls_paketbyte_message {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 20px !important; /* Space above: the box is the first thing under the menu. !important: WordPress and Blocksy set the top margin of the first block in the content to 0 */
    margin-bottom: 24px;         /* Only top and bottom: left and right stay "auto" from the page layout, which centers the box */
    background: #f9fafb;
}
.ls_paketbyte_confirm p:last-child,
.ls_paketbyte_pending p:last-child,
.ls_paketbyte_message p:last-child { margin-bottom: 0; }
.ls_paketbyte_buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 12px 0 0 0; } /* "Bekräfta bytet" (the theme's button look) and Avbryt */
.ls_paketbyte_buttons .wp-element-button { /* The same color as the other buttons on the site */
    background-color: var(--theme-palette-color-27) !important;
    border-color: var(--theme-palette-color-27) !important;
    color: #ffffff !important;
}
.ls_paketbyte_buttons .wp-element-button:hover { filter: brightness(0.9); }
.ls_paketbyte_ok { border-color: #15803d; background: #f0fdf4; }    /* The change was saved */
.ls_paketbyte_error { border-color: #b91c1c; background: #fef2f2; } /* The change could not be made */
/* The add-listing form: the boxes under the question about the omsättning (ls_plugin_small_turnover.php): ls_turnover_too_big for
   "50 miljoner kr eller mer", ls_turnover_free_utokad for "Under 100 000 kr" in the form of Enkel profil */
.ls_turnover_box {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 12px 0 20px 0;
    background: #f9fafb;
}
.ls_turnover_free_utokad { border-color: #15803d; background: #f0fdf4; } /* Good news */
.ls_turnover_box[hidden] { display: none !important; } /* Shown by the script of the field when its answer is chosen */
.ls_turnover_box p:last-child { margin-bottom: 0; }
/* /uppgradera/: the package buttons while a downgrade is waiting (no link, ls_uppgradera_set_button_links() in ls_plugin_redirect_uppgradera.php) */
/* The class three times: Stackable prints the colors of each button (.stk-<id> .stk-button, with !important) in a <style> in the page, after this file (found 2026-11-25) */
.ls_button_disabled.ls_button_disabled.ls_button_disabled,
.ls_button_disabled.ls_button_disabled.ls_button_disabled:hover,
.ls_button_disabled.ls_button_disabled.ls_button_disabled:focus {
    background: #d1d5db !important;
    color: #6b7280 !important;
    border-color: #d1d5db !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* GetPaid checkout: the gratisperiod under the totals, "I dag:" and "Sedan:" (ls_package_change_checkout_trial_info() in ls_plugin_package_change.php) */
.ls_trial_info { border-top: 1px solid #dee2e6; padding: 10px 16px; font-size: 14px; line-height: 1.5; }
.ls_trial_info p { margin: 0 0 4px 0; }
.ls_trial_info p:last-child { margin-bottom: 0; }

/* The badge "Du har detta paket" in the package cards (ls_package_* classes): hidden for everyone, the package card code shows it only in the card of the customer's own package (by adding ls_your_package_badge_visible) */
.ls_your_package_badge:not(.ls_your_package_badge_visible) { display: none !important; }

/* The shown badge sits on the top edge of the customer's own card: it takes no room inside the card, so the cards stay aligned.
   Anchored to the card (the block with the ls_package_* class, Stackable's box with the border). The blocks between the card and the
   badge get position static, so the badge is not anchored to them, and overflow visible, so Stackable's overflow:hidden does not cut
   it off. The classes are repeated to win over Stackable's own !important styles */
:is(.ls_package_free, .ls_package_utokad_monthly, .ls_package_utokad_yearly, .ls_package_community_monthly, .ls_package_community_yearly):has(.ls_your_package_badge_visible) {
    position: relative !important;
    overflow: visible !important;
}
:is(.ls_package_free, .ls_package_utokad_monthly, .ls_package_utokad_yearly, .ls_package_community_monthly, .ls_package_community_yearly) :has(.ls_your_package_badge_visible) {
    position: static !important;
    overflow: visible !important;
}
.ls_your_package_badge.ls_your_package_badge_visible.ls_your_package_badge_visible {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* Half above the edge, half on the card */
    width: max-content !important;
    max-width: calc(100% - 16px) !important;
    margin: 0 !important;
    z-index: 2 !important;
}
/* A button of a package card that is not offered to this user, e.g. the trial button when the trial is used (ls_plugin_package_cards.php) */
.ls_package_button_hidden.ls_package_button_hidden.ls_package_button_hidden { display: none !important; } /* The class three times: Stackable prints "display:flex !important" for each button (.stk-<id>) in a <style> in the page, after this file, so a single class lost (found 2026-11-25) */
/* "Bekräfta byte" in "Är du säker?" is a <button> (a form POST) with the classes of the button made in the editor: only take away what a browser adds to a button (ls_plugin_package_cards.php) */
button.ls_confirm_change_submit { -webkit-appearance: none; appearance: none; cursor: pointer; font: inherit; line-height: inherit; }
/* The text of a gray Stackable button: Stackable colors its span (.stk-<id> .stk-button__inner-text, !important) */
.ls_button_disabled.ls_button_disabled.ls_button_disabled .stk-button__inner-text { color: #6b7280 !important; }
