/**
 * Theme Name:  LOOPIS Theme HQ
 * Version:     0.04
 * Description: Theme providing all frontend design and functionality for LOOPIS main page
 * Author:      The Develoopers
 * Author URI:  https://loopis.org
 * License:     GPL-3.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
 * Text Domain: loopis-theme-hq
 */

/**
 * Copyright (C) 2026 LOOPIS
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 */

/* Reset - http://meyerweb.com/eric/tools/css/reset/ v2.0 */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, 
pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, 
samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, 
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, 
canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, 
section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font-family: 'Roboto Condensed', sans-serif; vertical-align: baseline; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {	display: block; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* BASE STYLE */
body { background:#fff; font-size:16px; line-height:1.5em; color:#333; font-weight:300; }
::selection { background:#333; color:#fff; }
::-moz-selection { background:#333; color:#fff; }
img { max-width:100%; height:auto; }
address,cite,em { font-style: italic; }
b, strong { font-weight: 400; }
ol, ul { box-sizing:content-box; }
.left,.alignleft { float:left; }
.right,.alignright { float:right; }
.aligncenter { margin-left:auto; margin-right:auto; }

/* Emojis */
img.wp-smiley, img.emoji { margin: 0 1px 0 0 !important; vertical-align: -0.1em !important; }

/*  CLEAR */
.clear { clear:both; display:block; overflow:hidden; width:0; height:0; }  /* removed {visibility: hidden} pga F.U.S.  */
.group:before, .group:after { content: ""; display: table; }
.group:after { clear:both; }
.group { zoom:1; }

/*  BASE LAYOUT */
#wrapper { max-width:900px; height:100%; margin: 0 auto; background: #fefefe; margin-bottom: 25px;}
.container { width:100%; margin-top: 70px; background: #fff; border: 1px solid #f5f5f5; box-shadow: 0 0 10px rgba(0,0,0,0.05); }

/* Overridden at the end of main site style.css */
.page-padding { padding: 20px 15px; }

/*  Header */
#header { position: fixed; top: 0px; left: 0px; z-index: 1; padding-top:10px; height: 60px; width: 100%; font-size: 19px; color: #777; background: #fff; border-bottom: 1px solid #e5e5e5; box-shadow: 0 0 10px rgba(0,0,0,0.05); }
#header-img { width: 195px; height: 50px; display: block; margin: 0 auto; }
.header-back { display: none; }
.header-back { display: block; width: 20px; height: 20px; position: absolute; left: 3px; top: 10px; padding: 15px; z-index: 9; cursor: pointer;}
.header-faq { display: block; width: 20px; height: 20px; position: absolute; right: 10px; top: 10px; padding: 15px; z-index: 9; cursor: pointer; }
.header-back:hover { color: #333; }
.header-faq:hover { color: #333; }

/*  Footer */
#footer { height: 60px; width: 100%; padding: 10px 0; } 

/* Scroll to top */
.top { text-align: center; margin: 20px 0;}

/* footer menu */
.footer-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #e5e5e5;
  padding-right: 25px;
  text-align: center;
}

.footer-menu nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.footer-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 5px;
}

.footer-button:hover {
  background-color: #e5e5e5;
}

.footer-button .emoji {
  font-size: 32px;
  margin-bottom: 7px;
}

.bw { filter: grayscale(100%); }

.footer-button .text {
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  color: #333 !important;
}

/* Font Awesome square size */
.fa, .fab, .fal, .far, .fas { width:1em; text-align:center; }
.fas.fa-hashtag { font-weight: 300; }
i { margin-right: 3px; }

/* Links */
a { color:#1e73be; text-decoration:none;}
a:hover { color:#333; }
.post-meta a { color:#777; }
.post-meta a:hover { color:#333; }

/* Paragraph */
p { margin:0 0 10px 0; }
hr, .wp-block-separator {
  width: 100%;
  padding: 0;
  margin: 0 0 9px 0;
  background-color: #000;
  height: 0px;
  border-top: 1px solid #000 !important;
}

.hidden { visibility: hidden }

/* Special fonts */
.small { font-size: 13px; line-height: 1.5em; margin:2px 0 10px 0; }
.small span { font-size: 13px; padding:2px; font-style:normal; }
.info { font-size: 13px; line-height: 1.5em; font-style:italic; margin:2px 0 10px 0; }
.info span { font-size: 13px; padding:2px; font-style:normal; }
.wp-element-caption { font-size: 14px; line-height: 1.2; text-align: center; } /* bildtexter */

/* Special divs */
.wrapped { display: inline-block; vertical-align: top; background-color: #f5f5f5; padding: 5px 10px; margin: 0 15px 15px 0; text-align: left;}
.wrapped p { margin: 0; }
.wrapped hr { margin-bottom: 5px; }
.link:hover { background: #ebebeb; cursor: pointer; } /* Used when making divs clickable */
/*.homescreen { }		*/		/* Inline at the moment */
/*.interaction { }		*/		/* No style? */

/* Collapsed divs (not in use yet) */
.collapsed { display: none; overflow: hidden; transition: max-height 0.2s ease-out; }
.collapser { cursor: pointer; user-select: none; }

/* Economy layout */
.economy { margin-top: 0px; min-width: 200px;}
.economy p { margin: 0; font-size: 14px; color: #777; line-height: 1.7; text-decoration: none; } 
.economy hr { margin: 1px 0; background-color: #777; }
.economy b { font-weight: 700; }
.economy span.right { padding-right: 5px }

/* Spans */
span { white-space: nowrap; }
span.label { font-size: 14px; padding:5px; background: #f5f5f5; }
span.small-label { font-size: 13px; padding:3px; background: #f5f5f5; }
span.big-label { font-size: 16px; padding:5px; background: #f5f5f5; }
span.mega-label { font-size: 18px; padding:7px; line-height: 35px; background: #f5f5f5; }
span.link { font-size: 14px; padding:5px; background: #f5f5f5; }
span.small-link { font-size: 13px; padding:3px; background: #f5f5f5; }
span.big-link { font-size: 16px; padding:5px; background: #f5f5f5; }
span.mega-link { font-size: 18px; padding:7px; line-height: 35px; background: #f5f5f5; }
span.link:hover { background: #ebebeb; }
span.small-link:hover { background: #ebebeb; }
span.big-link:hover { background: #ebebeb; }
span.mega-link:hover { background: #ebebeb; cursor: pointer; }
span.rounded { font-size: 14px; padding:4px 10px; border-radius: 20px; background: #fff; }
span.grey { color: #777 !important; }
span.grey a { color: #777 !important; text-decoration: none; }
span.code { font-family: 'Courier New', monospace; font-weight: bold; }
span.unclickable { color: #333; pointer-events: none; color: inherit; text-decoration: none; }
span.plus { font-weight: 700; color: #73c23d !important; }
span.minus { font-weight: 700; color: #FF969D !important; }
span.right { float: right; }

/* Heading  */
h1, h2, h3, h4, h5, h6, h7 { font-weight: 300; letter-spacing: -0.3px; line-height: 1.3em; white-space: nowrap; }

h1 { font-size: 40px; margin-top: 0px; letter-spacing: -1px; }  /* used only for page- and post-titles */
h2 { font-size: 34px; margin-top: 25px; }		/* used by WPUM (settings) */
h3 { font-size: 28px; margin-top: 25px; }		/* used for subheadings on FAQ etc */
h4 { font-size: 22px; margin-top: 15px;}		/* used on my profile on front page */
h5 { font-size: 24px; margin-top: 0px; }		/* used in wrapped divs and puff */
h6 { font-size: 16px; margin-top: 25px; }		/* used for custom comment */
h7 { font-size: 28px; padding-top: 10px; }		/* added for WPUM tabs */

/* Special heading  */
h1 .symbol { height: 30px !important; width: auto; padding-right: 5px; }  /* used for coins  */
h1 .symbol .emoji { font-size: 80%; }  /* used for clovers and stars */
h1.wrap { white-space: normal; }

/* Post layout */
.post-wrapper { background:#f5f5f5; }
.post-wrapper-form { background:#f5f5f5; padding:15px; border-radius: 10px; }
.post-padding { padding: 10px 15px; }
.post-images { position: relative;}
.post-image { margin: 0; padding: 0; }
.post-image img { width: 100%; height: auto; }
.extra-image { position: absolute; right: 15px; bottom: -25px; }
.extra-image img { height: 100px !important; width: 100px !important; object-fit: cover; overflow: hidden; border: 3px solid white; border-radius: 50%; }
.extra-image-2 { position: absolute; right: 125px; bottom: -25px; }
.extra-image-2 img { height: 100px !important; width: 100px !important; object-fit: cover; overflow: hidden; border: 3px solid white; border-radius: 50%; }
.post-meta { font-size: 15px; color: #777; margin-bottom: 15px; }
.post-meta span { font-size: 15px; background: none; padding:0; margin-right: 7px; }
.post-meta span.rounded { font-size: 16px; padding:4px 10px; border-radius: 20px; color: #333; background: #fff;}
.post-meta a { color: #777; }
.post-meta a:hover { color: #000; background: none; }
.post-content { font-size: 18px; }
.post-content span { font-size: 16px; padding:5px; background: #fff !important; }
.post-content .label { font-size: 14px; color: #777; margin-bottom: 0; }
.post-content .wrapped { background-color: #fff; padding: 8px 10px 5px 10px; margin: 0 15px 15px 0; }
.post-content .wrapped p { margin: 5px 0; }

/* Forum layout */
.wp-block-image { margin-bottom: 15px; }

/* Bullet-list (by Hubert, used in e.g. post Stadgar) */
.page-padding .wp-block-list {
  counter-reset: wp-list-counter;
  margin: 1.5em 0 ;
  padding-left: 3em;
  list-style-type: decimal;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  line-height: 1.0em;
}
.page-padding .wp-block-list li{
  margin-bottom: 0.5em;
  position: relative;
  padding-left: 1em;
}
.page-padding .wp-block-list li::marker{
  font-weight: bold;
  font-size: 1.1rem;
}

/* Video embedded in post */
.wp-block-embed__wrapper { display: flex; justify-content: center; }
.wp-block-embed__wrapper iframe { width: 240px !important; height: auto !important; }

/* Logg layout */
.logg { font-size:13px; color:#777; line-height:1.5; text-decoration:none; } 
.logg p { margin:0; } 
.logg a { color: #777; }
.logg a:hover { color:#333; }
.logg span { float: right; font-size:13px; background:none !important; padding:0; }

/*  Special privileges block */
.admin-block { background: #fff7f7; border: 2px dotted #ff969d; padding: 10px 10px 1px 10px; margin: 10px 0;  }
.admin-block .logg { padding: 0 0 10px 0; } 

/* Post-list */
/*.post-list { }*/
.post-list-post { height: 60px; background: #f5f5f5; box-shadow: 2px 2px 5px #eee; margin-bottom: 13px; }
.post-list-post-big { height: 120px; background: #f5f5f5; box-shadow: 2px 2px 5px #eee; margin-bottom:15px; }
.post-list > .link:hover { background: #ebebeb; box-shadow: 1px 1px 3px #eee; cursor: pointer; }
.post-list-post-thumbnail { float: left; width: 60px; height: 60px; margin-right: 8px; }
.post-list-post-thumbnail-big { float: left; width: 120px; height: 120px; margin-right: 10px; }
.post-list-post-title { font-size: 22px; color: #333; padding: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-list-post-title-big { font-size: 24px; color: #333; letter-spacing: -0.3px; padding: 7px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-list-post-excerpt { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.post-list-post-excerpt br { display: none; }
.post-list-post-excerpt .read-more { font-weight: 400; color: #1e73be; }
.post-list-post-comment { font-size: 16px; font-style: italic; padding-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
.post-list-post-comment p { padding: 0; margin: 0; background: none !important; }
.post-list-post-comment span { padding: 4px; background: #fff; }
/*.post-list-post-comment a { }*/
.post-list-post-comment br { display: none; } 
.post-list-post-meta { color: #777; }
.post-list-post-meta span { padding: 0; margin-right: 7px; }
.post-list-post-meta i { margin: 0 3px 0 1px; }
.post-list-post-meta p { margin: 2px 0; }
.post-list-post-meta a { color: #777; }
.post-list-post-meta a:hover { color: #333; }
.post-list .right { font-size: 13px; text-align: right; padding-right: 5px; }

/* Forum-list (should be converted to a generic CPT solution) */
.post-list-forum { display: flex; align-items: stretch; overflow: hidden; min-height: 60px; background: #f5f5f5; box-shadow: 2px 2px 5px #eee; margin-bottom: 13px; cursor: pointer; }
.post-list-forum-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 5px 8px; }
.post-list-forum-title { font-size: 22px; color: #333; padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-list-forum-excerpt .read-more { font-weight: 400; color: #1e73be; }
.post-list-forum-thumbnail { flex: 0 0 60px; margin-left: auto; }
.post-list-forum-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Thumbnail-list (not used) */
.thumb-list { display: flex; flex-wrap: nowrap; overflow-x: auto; }
.thumb-list-thumb { flex-shrink: 0; margin-right: 10px; width: calc(100% / 5 - 8px); }
.thumb-list-thumb:last-child { margin-right: 0; }

/* Notification stuff */
.notif { background: #FFF1E4 !important; color: #000; }
.notif:hover { background: #FFE4CB !important; }
.notif-button { position:absolute; top:13px; right:10px; } 	
.notif-meta { position:absolute; top: 30px; left: 67px; }

/* Columns */
.wp-block-columns { margin-bottom:0px; }
.wp-block-column p { padding-bottom:5px; }
.columns { display: flex; }
.column1 { display: flex; flex: 1 0 50%; line-height: 1.2em; }
.column2 { display: flex; flex: 1 0 50%; line-height: 1.2em; justify-content: flex-end; margin-bottom: 2px; white-space: nowrap; }
.columns50 {display: flex; flex-wrap: wrap;}	 /* Where and why is this used...? */
.columns50 > div { flex: 1 0 50%; line-height: 1.2em; }
.columns_cat { display: flex; line-height: 1.6em; }			 /* Used on /categories? */
.columns_cat > div { flex: 1 0 50%; }
@media (max-width: 720px) { .columns50 > div { flex-basis: 100%;  } } /* Poe: Set flex basis to 100% for mobile devices */
.top { align-items: flex-start !important; }
.bottom { align-items: flex-end; }

/* Padding & margin */
.margin0 { margin: 0px !important; }
.padding0 { padding: 0px !important; }
.padgin0 { padding: 0px !important; margin: 0px !important; }
.center { text-align: center;  }

/* Pagination (WPUM style) */
#post-pagination { display: flex; justify-content: center; background: #f5f5f5; flex-wrap: wrap; margin-top: 30px; font-size: 24px; }
#post-pagination a { padding: 8px 12px;  }
#post-pagination span { padding: 8px 12px; }

/* image position */
img.size-auto,
img.size-large,
img.size-medium,
attachment img { max-width: 100%; height: auto; }
img.alignleft { margin: 18px 20px 18px 0; }
img.alignright { margin: 18px 0 18px 20px; }
img.aligncenter { margin: 18px auto; clear: both; display: block; }
img .size-full { width: 100%!important; }

/* table */
.entry table { font-size: 14px; width: 100%; text-align: left; vertical-align: middle;}
.entry table td { padding-bottom: 10px; }

/*  FORMS & BUTTONS */
/* Poe: Font styles */
input, textarea, button, select, label { font-family: inherit !important; }
input, select, textarea, button, label { font-size: 22px; font-weight: 300;} 

/* Poe: Reset styles */
input::-moz-focus-inner, button::-moz-focus-inner { border: 0; padding: 0; }
input[type="search"], input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="submit"], select, button, textarea { margin: 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-border-radius: 0; border-radius: 0; }
input, select, textarea, button { -moz-appearance: none; -webkit-appearance: none; appearance: none; -moz-transition: all .2s ease; -webkit-transition: all .2s ease; transition: all .2s ease; }
select { -moz-appearance: menulist; -webkit-appearance: menulist; appearance: menulist;}
input[type="checkbox"] { -moz-appearance: checkbox; -webkit-appearance: checkbox; appearance: checkbox; background: none; }
input[type="radio"] { -moz-appearance: radio; -webkit-appearance: radio; appearance: radio; }

/* Poe: Form elements */
label { color: #333; font-size: 14px; margin-bottom: 5px; display: block; }
label .required { color: #FF969D; }
input[type="search"], input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], select, textarea { background: #fff; border: 2px solid #e5e5e5; color: #777; display: block; max-width: 100%; outline: none; padding: 7px 8px; }
input[type="search"]:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="tel"]:focus, input[type="number"]:focus, select:focus, textarea:focus { border-color: #ddd; color: #333; -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.1); box-shadow: 0 0 3px rgba(0,0,0,0.1); }


/* CoPilot: Search form */
.searchandfilter { 
    margin: 10px 0 20px 0; 
}
.searchandfilter form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.searchandfilter input[type="text"],
.searchandfilter input[type="search"] { 
    font-size: 15px; 
    width: 145px; 
    height: 35px;
    flex: 1;
    min-width: 200px;
}
.searchandfilter select { 
    font-size: 15px; 
    padding: 6px; 
    height: 35px;
    min-width: 150px;
}
.searchandfilter input[type="submit"] { 
    font-size: 15px; 
}

/* Buttons */
input[type="button"], input[type="reset"], input[type="submit"], button[type="button"], button[type="reset"], button[type="submit"], button, a.button {
  background: #78b159;
  color: #FFF;
  font-size: 22px;
  padding: 8px 14px;
  display: inline-block;
  border: none !important;
  cursor: pointer;
  -webkit-border-radius: 10px;
  border-radius: 10px; }
input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, button[type="button"]:hover, button[type="reset"]:hover, button[type="submit"]:hover, button:hover, a.button:hover {
  background: #666 !important;
  color: #FFF !important; }
a.button, a.button:link, a.button:visited, a.button:hover, a.button:active { color: #FFF !important; text-decoration: none !important; }
input[disabled] { background: #e3ebdd; color: #333; padding: 8px 14px; display: inline-block; border: none; cursor: pointer; -webkit-border-radius: 10px; border-radius: 10px; }

/* Auto-respond-buttons */
.arb { margin-top:15px; } 	
button.small, input[type="submit"].small { font-size: 15px !important; padding: 5px 10px; margin: 0; }
button.green, a.button.green { background: #77b255; }
button.red, a.button.red { background: #FF969D; }
button.blue, a.button.blue { background: #69A8D6; }
button.purple, a.button.purple { background: #E0AADC; }
button.orange, a.button.orange { background: #FFBC82; }
button.yellow, a.button.yellow { background: #FFE18C; color: #333 !important; }
button.grey, a.button.grey { background: #ddd; color: #000 !important; }
button.black, a.button.black { background: #333; }
button.admin-style { border: 2px dotted #FF969D !important; }
button.waiting { background: #333 !important; color: #FFF !important; } /* Used when submitting forms */
.admin-style { border: 2px dotted #FF969D !important; }

/* Post bottom stuff */
.value { font-size: 14px; background: none; color: #777; padding: 5px 0; margin: 0 }
#copy_url { display: inline; font-size: 14px; background: none; color: #777 !important; padding: 5px 10px 0 0; }
#copy_url:hover { color: #333 !important; background: none !important; }
a[href$="/edit"] { font-size: 14px; background: none; color: #777; padding: 5px 10px 0 0; }
a[href$="/edit"]::before { content:"🔧 " }
a[href$="/edit"]:hover { color: #333; }
button.option { display: inline; float: left; font-size: 14px; background: none; color: #777 !important; padding: 5px 10px 0 0; }
button.option:hover { background: none !important; color: #333 !important; }

/* Comment list */
/*#commentlist-container { }*/
.commentlist { margin-bottom: 10px;}
.commentlist li { padding-left: 50px; font-size: 13px; line-height: 22px; }
.commentlist .comment-body { margin-top: 10px; clear: both; position: relative; }
.commentlist .comment-author { display: block; float: left; }
.commentlist .comment-meta { display: block; float: right; }
.commentlist .fn { color: #333; font-style: normal; font-weight: 600; }
.commentlist .fn a { color: #333 !important; }  /* author url */
.commentlist .says { display: none; }
.commentlist .avatar { position: absolute; left: -50px; top: 0px; width: 45px; height: 45px;}
.commentlist .comment-meta a, .pinglist .ping-meta { color: #aaa; }
.commentlist .reply { font-size: 13px; line-height: 16px; }
.commentlist .reply a { color: #777; }
.commentlist .reply a:hover { color: #333; }

/* Comment reply */
/*#respond { }*/
.commentlist ul.children .comment-body { margin: 0 0 10px 0; }
.commentlist ul.children .comment-body p { font-size: 14px; line-height: 18px; padding: 6px 8px; }
/*.commentlist li ul {  }*/
.commentlist li li { padding-left: 35px; }
.commentlist li li .avatar { width: 30px; height: 30px; left: -36px; top: 2px; }
#cancel-comment-reply-link { display: block; position: absolute; bottom: 14px; left: 70px; font-size: 13px; color: #777; }
#cancel-comment-reply-link:hover { color: #333; }

/* Comment text */
.commentlist .comment-body p { margin: 0; padding: 8px 10px; font-size: 16px; background: #f5f5f5; border-radius: 10px; clear: both; }
.commentlist .comment-body p a.comment-mention { text-decoration: none; cursor: default; pointer-events: none; color: inherit; font-size: 15px; padding:3px; background: #fff; white-space: nowrap; }  /* disable + style mentioned user */
.commentlist .comment-body strong { font-weight: bold; }
.commentlist .comment-body em { font-style: italic; }
.commentlist .comment-body ol li { list-style: decimal; margin-left: 2em; padding: 0; }
.commentlist .comment-body ul li { list-style: square; margin-left: 2em; padding: 0; }
.commentlist .comment-body p span {font-size: 15px; padding:4px; background: #fff; }

/* Comment background */
.orange_light, .participate { background: #FFF1E4 !important; }
.yellow_light, .unparticipate, .queue, .reminder { background: #FFFAEE !important; }
.red_light, .lotten, .book, .remove .warning { background: #FFEEEE !important; }
.green_light, .locker, .confirm, .unremove { background: #EFF6EC !important; }
.blue_light, .fetched, .returned, .unqueue, .regret, .cancel { background: #E4F4FF !important; }
.purple_light, .forward, .retrieved { background: #FAF2FA !important; }

/* Comment form */
.logged-in-as,
.comment-notes, 
.form-allowed-tags { display: none; }
#respond { position: relative; }
#reply-title { font-size: 16px; margin: 5px 0; }
li #reply-title { font-size: 0; margin: 0!important; padding: 0; height: 0; border-top: 0; }

#commentform { margin-bottom: 10px; border-radius: 10px; }
#commentform input[type="text"], 
#commentform textarea { height: 55px; font-size: 16px; width: 100%; }
#commentform p.comment-form-comment { margin-top: 10px; }
#commentform p.comment-form-comment label { display: none; }
#commentform .comment-form-cookies-consent { padding: 10px 0; }
#commentform .comment-form-cookies-consent label { display: inline; }

/* Comments navigation */
.comments-nav { margin-bottom: 20px; }
.comments-nav a { font-weight: 600; }
.comments-nav .nav-previous { float: left; }
.comments-nav .nav-next { float: right;  }

/* PLUGIN STYLES */

/* WPUM profile*/
.wpum-form fieldset label { font-size:14px }
#header-profile-details { border:0px }
.profile-navbar { display: flex; justify-content: flex-start; align-items: flex-end; gap: 5px; padding-top:20px; border-top: 0px; border-bottom: 5px solid #f5f5f5; }
.profile-navbar>a.active:first-child, 
.profile-navbar>a:hover:first-child, 
.profile-navbar>button.active:first-child, 
.profile-navbar>button:hover:first-child { border-top-left-radius: 10px }
.profile-navbar > a { padding: 8px 16px; margin-right: 5px; border-radius: 10px 10px 0 0; background: #e8e8e8; }
.profile-navbar>a:hover { background: #f5f5f5}
.profile-navbar>a.active { background: #f5f5f5 }
#profile-posts .wpum-post-thumbnail { float: left; width: 50px; margin-right: 10px; }
.wpum-post-thumbnail img { width: 50px; height: 50px; object-fit: cover; }
#profile-posts .wpum-post { border-bottom:0px; padding:0px; margin:0px; background: #f5f5f5; }
.wpum-account-page { padding-top:20px; }
.profile-tab-content { padding: 10px 0; margin-bottom: 10px; }

/* Tabs - styling to prevent flash of all tabs' content */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* WPUM forms */
.wpum-form fieldset.fieldset-privacy { line-height: 1em; }
.wpum-form fieldset.fieldset-location { line-height: 1.6em; padding-bottom:5px;}
.wpum-form fieldset div.field label { font-size: 22px; } /* radio buttons */
.wpum-form fieldset label[for="custom_location"] { display:none }
.wpum-form fieldset #custom_location { font-size:14px }
.wpum-form fieldset small.description { font-size: 13px; font-style:italic; margin-top: 5px; opacity: 1; color: #777; white-space: normal; }
.wpum-form fieldset select { width: 100%; }
.select2-selection { height: 38px; }
.select2-selection--multiple { border: 2px solid #e5e5e5 !important; border-radius: 0px !important; }
.select2-selection__rendered { font-size: 22px; padding: 0 !important; }
.select2-search__field { padding-left: 10px !important; }
.select2-dropdown--below { margin-top: 32px; } /* flyttar ner alternativen */
.select2-selection__choice { font-size: 16px; height: 30px; margin-top: 2px !important; margin-left: 10px; padding-right: 10px !important; background: #f5f5f5; border-radius: 0 !important; border: none !important; }
.select2-selection__choice__remove {padding:0 7px; }
.wpum-form fieldset .required-field { background: none }
.wpum-form wpum-required { background: none }
.wpum-form span.field { background: none }
input:is([type="hidden"], [type="image"], [type="file"]) { padding-top: 3px; display: flex; flex-direction: column; align-items: flex-start; } /* snyggar till "ingen fil vald"/filnamn */
.wpum-form input[name="submit_registration"].waiting { background: #777; } /* publish button */

/* WPUM addon Registration forms (added here because it hides the button on edit post) */
input[name="submit_registration"].button { display: inline-block !important; }

/* WPUM message */
.wpum-message { border: 0; border-radius: 10px; text-shadow: none; padding: 7px 7px 1px 7px; font-size: 16px; font-style: normal; }
.wpum-message p { padding:0; margin:0 0 6px 0; }
.wpum-message.information { background-color: #D9EDf7; color: #000; }
.wpum-message.warning { background-color: #FFE5E7; color: #000; }
.wpum-message.error { background-color: #FFE5E7; color: #000; }
.wpum-message.notification { background-color: #FFF1E4; color: #000; }
.wpum-message.success { background-color: #dff0d8; color: #000; }

/* LOOPIS message (replacing WPUM version above) */
.loopis-message { 
  border-radius: 10px;
  padding: 7px 7px 1px 7px;
  margin: 12px 0;
  font-size: 16px; }
.loopis-message p { padding: 0; margin: 0 0 6px 0; }
.loopis-message.information { background-color: #D9EDf7; }
.loopis-message.warning { background-color: #FFE5E7; }
.loopis-message.notification { background-color: #FFF1E4; }
.loopis-message.success { background-color: #dff0d8; }

/* LOOPIS forms (replacing WPUM version above) */
.loopis-form { 
  padding: 20px; 
  background-color: #f5f5f5; 
  border-radius: 10px; 
}

/* Support post form */
#support { max-width: 300px; margin: 0px auto; text-align: center; }
#support textarea[name="post_content"] {
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  resize: none;
}

/* Gift post form*/
#checkbox_container {
  width: 100%;
  height: 150px;
  border: 1px solid #000;
  justify-content: space-between; 
  border-radius: 2px;
  overflow-y: auto;
  padding: 10 px;
}

#checkbox_container label{
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between; 
  align-items: center;
  display:flex;
  padding: 5px 0;
}

.checkbox-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #c3c1c1;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s;
}
.checkbox-row:has(input[type="checkbox"]:checked) {
  background-color: #e2f0fe; 
}
.checkbox-row input[type="checkbox"] {
  display: none;
}

#image-previews img {
  cursor: pointer;
  transition: transform 0.2s;
  flex-wrap: wrap;
  margin-right: 10px;
  gap:10px; 
  margin-top:10px;
}

#image-previews img:hover {
  transform: scale(1.05);
}

#loopis-form {
    background: #f5f5f5;
    background-color: rgb(245, 245, 245);
    padding: 15px;
    border-radius: 10px;
}
.form-subcontainer {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.form-subcontainer label.required {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: bold;
}

/* Css for support post-form, used everywhere*/
#support {
  display: flex;
  justify-content: center; 
  flex-direction: column;
  align-items: center;   
  justify-content: flex-start;  
  margin: 0 auto;
  border-radius: 2px;
  padding: 10px ;
  height: 100%;          
  max-width: 300px;
  box-sizing: border-box;
}
#support textarea[name="post_content"] {
  width: 100%;            
  max-width: 300px;  
  height: 120px;
  box-sizing: border-box; 
  margin: 0;
  resize: none;
}

#support p {
  height: auto;
}



/* Css for gift-post-form*/
#checkbox_container {
  width: 100%;
  height: 150px;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  overflow-y: auto;
  padding: 5px;
}

#checkbox_container label{
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  padding: 5px 0;
}

.checkbox-row {
  display: flex;
  width : 100%;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #c3c1c1;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.checkbox-row:has(input[type="checkbox"]:checked) {
  display: none; 
}
.checkbox-row input[type="checkbox"] {
  margin-left: 10px;
  visibility: hidden;
}

#file-label {
  display       : flex;
  align-items   : center;
  justify-content: center;
  width         : 100px;
  height        : 40px;
  margin        : 0;
  background    : #78b159;
  color         : white;
  text-align    : center;
  border        : none;
  border-radius : 4px;
  cursor        : pointer;
}

.image-previews img {
  cursor: pointer;
  transition: transform 0.2s;
  flex-wrap: wrap;
  margin-right: 10px;
  gap:10px;  
} 

img.image-prev:hover, label.image-prev:hover{
  transform: scale(1.05);
}


.image-prev{
    width:120px;
    height:120px;
    border:1px solid #ccc;
    border-radius:6px;
    object-fit      : cover;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    vertical-align:top;
    margin:0;
    padding:0;
    line-height:0 !important;
}

#loopis-form {
    background: #f5f5f5;
    background-color: rgb(245, 245, 245);
    padding: 15px;
    border-radius: 10px;
}
.form-subcontainer {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}


#post_title {
   width: 100%;
}


#post_content {
  width: 100%;
  height: 200px;
  resize: none; 
  overflow-y: auto;
}



.secret{
  opacity: 0;
  height: 0;
  transition: opacity 0.3s ease, height 0.3s ease;
}

/* JH: Added ID (loopis-form) because of conflict with existing warning messages */
#loopis-form .warning{
  color: red;
  opacity: 1 !important;
  font-size: 22px;
  height: auto;
  max-height: 14px;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.radio-box{
  font-size: 22px;
  width: 100%;
}

.radio-box label.buttons {
  display:flex;
  align-items: center;
  font-size: 20px;
  width: 100%;
}
.radio-box label.buttons input[type="radio"]{
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 5px;
  width: 1em;
  height: 1em;
}


#radio-box:has(input#annan:checked) .hidden-container{
  transition: opacity 0.3s ease,  height 0.5s ease;
  visibility: visible;  
  height: 40px;
  opacity: 1;
}

#radio-box .hidden-container{
  display: flex;
  align-items: center;
  margin-top: 5px;
  opacity: 0;          
  visibility: hidden;  
  height: 0px;
  transition: opacity 0.3s ease,  height 0.5s ease;
}
#radio-box .hidden-container label{
  width: 120px;
}
#radio-box .hidden-container input{
  flex-grow: 1;
}

/* Overlay class */
.loopis-overlay {
  position        : fixed;
  top             : 0;
  left            : 0;
  width           : 100%;
  height          : 100%;
  background      : rgba(0,0,0,0.7);
  align-items     : center;
  justify-content : center;
  display: flex;
  z-index         : 1000;
  opacity         : 0;
  pointer-events  : none;
  transition      : all 0.3s ease;  
}

.overlay-visible {
  pointer-events  : auto;
  opacity         : 1;
  transition      : all 0.3s ease;  
}


/* alert class */
.loopis-alert {
  width           : 80%;
  height          : 20%;
  background      : white;
  border-radius   : 8px;
  gap             : 8px;
}

.loopis-alert-head {
  position        : center;
  gap             : 8px;
  align-items     : center;
  justify-content : space-between;
  padding         : 10px 20px;
  display         : flex;
  flex-direction  : row;
  border-bottom: 1px #ccc solid;
  button {
    background      : none;
    border          : none;
  }
  h2 {
    margin          : 0;
  }
}

.loopis-box {
  padding         : 8px 15px;
  display: flex;
  border-radius: 15px;
  background:  #ebebeb;
  button {
    background      : none;
    border          : none;
  }
  p {margin-top: 8px;
  }
}

.loopis-alert-body {
  position        : center;
  gap             : 8px;
  align-items     : center;
  justify-content : space-between;
  padding         : 5px 5px;
  display         : flex;
  flex-direction  : row;
}

/* Button class */
.loopis-button {
  flex-shrink   : 0; 
  width         : 20%;
  height        : 40%;
  background    : #78b159;
  color         : white;
  border        : none;
  border-radius : 4px;
  cursor        : pointer;
  font-size     : 1.0em;
}


.green-border{
  border      : 4px solid #78b159;
  box-shadow  : 0 0 8px #78b159;
}

/* ============================================
   MAIN PAGE EXTRA
   ============================================ */

/* Override: Centering content for main site! */
.page-padding { padding: 20px 15px; text-align: center; }

.frontpage-map {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 5px;
}

.frontpage-map__legend {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.frontpage-map__legend p {
  margin: 0 0 6px 0;
  font-size: 0.95em;
  line-height: 1.35;
}

.frontpage-map__legend p:last-child {
  margin-bottom: 0;
}

.sweden-map {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  display: block;
}

.frontpage-interest-form {
  padding: 30px 0;
  text-align: center;
}

.interest-heading {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

.interest-intro {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 24px;
}

.interest-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}

.interest-form__field {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.interest-form__label {
  font-size: 0.85em;
  font-weight: 400;
  color: #555;
  margin-bottom: 4px;
}

.interest-form__input {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}

.interest-form__input:focus {
  outline: none;
  border-color: #1e73be;
}

.interest-form__submit {
  padding: 13px;
  background: #1e73be;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.interest-form__submit:hover {
  background: #155a99;
}
