/*
Theme Name: Local Content Pro
Theme URI: https://localcontentpro.com
Description: A simple Block Theme for local content publishers.
Version: 1.0
*/

/* Main viewport container */
#lcp-viewport-outer {
    overflow: hidden;  /* Hide overflow */
    margin: 0 auto; /* Center the viewport container */
    min-height:100vh
}

.admin-bar #lcp-viewport-outer {
    min-height:calc(100vh - 32px)
}
/* Wrapper for side content and main content */
#lcp-viewport-inner {
    display: block;  /* Arrange the side content and main content side-by-side */
    width: 100%;
    position: relative; /* To ensure side content stays in place */

}

/* Side content */
#lcp-sidecontent {
    position: absolute; 
    left: 0;
    top: var(--my-top); 
    width: 340px; 
    height: 100%; 
    overflow: auto; 
    background: #fff;
    border-right: 2px solid #eee;
    z-index: 2;
    outline: 0;
}



#lcp-sidecontent.lcp-fixed {
    position:fixed
}

/* Main content */
.has-sidecontent #lcp-main-wrap {
    flex: 1; /* Main content takes up the rest of the space */
    margin-left: 340px; /* Space for side content */
    padding: 20px;
}

/* Sticky header styles (if applicable) */
#lcp-header-container {
    z-index: 3;
    width: 100%
}

#lcp-header-container.lcp-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

#lcp-header-container.lcp-sticky-on-scroll.lcp-fixed {
    position: fixed;
    top:0;
    left: 0;
    right: 0;
    z-index: 3;
}

.admin-bar #lcp-header-container.lcp-sticky-on-scroll.lcp-fixed {
    top:32px
}
.admin-bar #lcp-header-container.lcp-sticky,
.admin-bar #lcp-header-container.lcp-sticky-on-scroll,
.admin-bar #lcp-header-container.lcp-sticky-on-scroll.lcp-stuck {
    top: 32px; /* Adjust for admin bar visibility */
}


#lcp-header-container.lcp-sticky-on-scroll.lcp-fixed {
    position: fixed;
    top: 32px; /* Adjusted if admin bar is visible */
}


/* ---- POPUPS ----- */
.lcp-popup:not(.open) {
    display:none
}

.lcp-popup.open {
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    width:100vw;
    z-index: 999;
    background: red;
}




















#lcp-sidecontent-inner {
    height: 100%;
    overflow: auto; /* Enable scrolling for inner content */
    padding-right: 15px; /* Space for the custom scrollbar */
}

#lcp-scroll-track {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background-color: #e0e0e0;
}

#lcp-scroll-bar {
    width: 100%;
    background-color: #333;
    cursor: pointer;
    border-radius: 5px;
}

/* Highlight-to-share popup */
.popup {
    position: absolute;
    background-color: white;
    color: black;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    display: none; /* Hidden by default */
    z-index:8999
  }

  /* LCP Button */
  .lcp-button {
    display: inline-block; 
    background-color: var(--wp--preset--color--accent-2);
    border: none;
    color: var(--wp--preset--color--font-color-1);
    text-decoration: none;
    padding: 10px;
    font-weight: bold;
    font-size: var(--wp--preset--font-size--small);
    white-space: nowrap; 
    cursor: pointer;
    
}

.lcp-button .lcp-icon {
    height: 1.2em;
    max-height:100%;
    width: auto;
    vertical-align: middle; /* Aligns the icon with the text vertically */
    margin-right: 10px; /* Space between the icon and the text */
    fill: var(--wp--preset--color--font-color-1);
}


/* Backend */

.lcp-dimension-value-control .lcp-number-control {margin:0;flex:3;border:0}
.lcp-dimension-value-control .components-input-control__backdrop{border:0!important}
.lcp-padding-control .lcp-dimension-value-control,.lcp-padding-control .components-range-control {flex:1!important}
.lcp-dimension-value-control .lcp-select-control{padding:0;flex:1}
.lcp-dimension-value-control  .components-base-control__field   {margin-bottom:0!important}
.lcp-padding-control .components-input-control__suffix {display:none!important}
.lcp-dimension-value-control .components-select-control__input {padding:5px!important}
.lcp-padding-control .lcp-dimension-value-control .lcp-number-control input,.components-select-control__input  {height:25px!important;min-height:25px!important;line-height:13px!important}
.lcp-dimension-value-control .lcp-number-control input[type="number"]::-webkit-outer-spin-button,
.lcp-dimension-value-control .lcp-number-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
.lcp-dimension-value-control .lcp-number-control input[type="number"] {
    -moz-appearance: textfield; /* Hide the spinner */
}

/* Optional: Remove the appearance in other browsers */
.lcp-dimension-value-control .lcp-number-control input[type="number"] {
    appearance: none;
}