* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    background: var(--color-background);
    font-family: var(--font-body);
    margin: 0;
}

i{
    cursor: pointer;
}
button, .woocommerce-Button{
    border-radius:30px;
    border: none;
    cursor: pointer;
    position:relative;
}
button:hover, .woocommerce-Button:hover{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
a{
    color: inherit;
    text-decoration: none;
}

h1, h3.sidebar-heading{
    font-size: 1.4rem;
    font-family: var(--font-heading);
}
h1.post-title{
    font-size: 2rem;
}
h1, h2{
    text-transform: uppercase;
}
h2{
    font-size: 1.2rem;
    font-family: var(--font-heading);
}
h3{
    font-size: 1rem;
}
blockquote {
    margin: 2.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #b6b8b7; /* naturlig grön ton */
    background: #fafaf7; /* varm off-white */
    font-style: italic;
    line-height: 1.7;
    max-width: 700px;
}
input{
    position: relative;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    text-align: left;
    padding: 0.8rem;
    border: solid 1px #b6beb6;
    border-radius: 2rem;
    background-color: #efefef;
    margin-bottom:0.8rem;
}

label input{
    width: auto;
}
input[readonly],
textarea[readonly],
select[readonly] {
    background-color: #f3f4f6;  /* light gray */
    border: none !important; /* lighter border */
    cursor: not-allowed;       /* show not-allowed pointer */
}
/* Add a focus effect */
input:focus {
    outline: none; /* Remove the default outline */
    border-color: #f4f4f4; /* Darker blue when focused */
    background-color: #e6e3e3; /* Slightly darker background */
}
textarea{
    width: 100%;
    padding: 10px;
    line-height: 1.5;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 0.8rem;
}
.vm-btn{
    color:#3b3a3a;
    background-color: #fff;
    padding: 5px 10px;
    border: solid 1px #dddbdb;
    border-radius: 30px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}
.vm-btn.disabled{
    cursor: not-allowed;
    opacity: 0.4;
}

.vms-spinner{
    width:30px;
    height:30px;
    border-radius: 50%;
    background: conic-gradient(#0000 10%,#9ea0a1);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 9px),#000 0);
    animation: spinner-zp9dbg 1.2s infinite linear;
    margin-bottom:20px;
}

.vm-close {
    display: flex;
    width: 25px;
    height:25px;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    background-color: #f4f4f4 !important;
    color: #000 !important;
    justify-content: center;
    align-items: center;
}
.vm-close:hover{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
article .post-content p{
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.avatar.mini{
    
}
/* wordpress */
.media-modal {
    z-index: 1000000 !important;
}
.mce-panel.mce-menu, div.mce-inline-toolbar-grp, #wp-link-backdrop, #wp-link-wrap {
    z-index: 1000000 !important;
}

/* Popup container - hidden by default */
.popup{
    cursor: pointer;
}
#popup {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    /* Flexbox for centering */
    justify-content: center;
    align-items: center;
}

/* Popup content */
#popup-wrapper {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    margin: auto;
    background-color: #fff;
    padding: 20px;
    width: 800px;
    box-shadow: 0px 12px 28px 0px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}
#popup-top{
    height:30px;
    text-align: right;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}
#popup-content{
    overflow: auto;
}
#popup-content.overflow-hidden{
    overflow: hidden;
}
#popup h1{
    border-bottom: solid 1px #ddd;
    padding-bottom: 0.3rem;
}

.popup-content #messenger-conversation-messages{
    flex:1;
    overflow: auto;
}

.vm-success{
    color: #28A745;
}

.vm-warning{
    color: #FFA500;
}
/*forms */
.vm-error, .vms-form-error, .vms-form-error a {
    color: #FF6F61 !important;
    font-size:0.8rem;
    font-weight:600;
}

.vm-form-error{
    border:solid 3px #FF6F61;
}
.vms-form-group {
    margin-top: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #cbc9c9;
}
.vm-form-optional{
    font-size: 0.8rem;
}
.required{
    font-weight: bold;
}
.form-box{
    background-color:#efefef;
    margin-bottom:5px;
    border-radius: 2px;
    font-size:20px;
    width: 100%;
    display: inline-block;
}
.form-box.col2{
    width: 48%;
    margin-right:1%;
}
.vms-form-group label{
	display: block;
	font-size: 1.2rem;
	margin-bottom: 20px;
}
.form-box label{
    padding: 15px;
	margin-bottom:0;
	font-size: 18px;   
}
.form-box input{
    margin-right:5px;
}
.vms-form-group input, .vms-form-group textarea{
    border: 1px solid #9ea0a1;
}
.vms-form-group input[type="file"]{
    border:none;
}
.vms-form-group select{
    width: 100%;
    height: 2rem;
    border-radius: 1rem;
    padding: 0.2rem;
}
.vms-form-error{
    font-weight: 500;
    font-size: 14px;
}
.vm-section-body {
    display: none;
}
.vm-section{
    margin: 1rem 0;
}
.vm-section.open .vm-section-body {
    display: block;
}

.vm-section-header {
    cursor: pointer;
}

.vm-toggle{
    width: 100%;
}
.vm-toggle h3{
    margin:0;
}
.vm-toggle h3::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    transition: transform 0.3s;
}
.vm-section.open .vm-toggle h3::after {
    transform: rotate(180deg);
}
.vm-round-spinner {
    height: 10px;
    width: 10px;
    display: inline-block;
    margin-left: 5px;
    border: 3px solid #f3f3f3; /* Light gray */
    border-top: 3px solid #a4a2a2; 
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.vm-round-spinner.big{
    height: 40px;
    width: 40px;
}
.vm-spinner::after {
    content: '';
    position: absolute;
    height: 10px;
    width: 10px;
    right: 10px;
    top: 30px;
    border: 3px solid #f3f3f3; /* Light gray */
    border-top: 3px solid #b4b1b1; 
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@media (max-width: 768px) {
    #popup-wrapper {
        width:99%;
        max-height: 99vh;
        padding: 0.5rem;
    }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}