.sape-boliginfo-window-v2 ,
.sape-boliginfo-window-v2 .dd-c-card-text {
    font-size: 14px;
}
.sape-boliginfo-window-v2 .h1 {
    margin-top: 0;
    font-size: 2.6em;
}
.sape-boliginfo-window-v2 .h2 {
    margin-top: 0;
    font-size: 2.3em;
}
.sape-boliginfo-window-v2 .h3 {
    margin-top: 0;
    font-size: 2em;
}
@media screen AND (max-width:767px){
    .sape-boliginfo-window-v2 .h3 {
        font-size: 1.6em;
    }
}
.sape-boliginfo-window-v2 .h4 {
    margin-top: 0;
    font-size: 1.6em;
}
.sape-boliginfo-window table {
    font-size: 1em;
}

.favourite-button-next-to-close {
    position: absolute;
    top: 18px;
    right: 57px;
    width: 32px;
    height: 32px;
    padding: 1px;
}

.sape-sidebox-biw-v1 .sidebox-content {
    max-width: 1300px;
    margin: auto;
}


/* GENERAL */
.sape-no-padding-right {
    padding-right:0;
}
/* END: GENERAL */


/* BOLIG INFO WINDOW v2 */
.sape-sidebox-biw-v2 {
    position:absolute !important;
    top:0 !important;
    bottom:0 !important;
    left:0 !important;
    right:0 !important;
    padding:0!important;
    transform: none !important;
}

.sape-sidebox-biw-v2 a:not(.sape-button):not(.dd-button) {
    color: inherit;
}
.sape-sidebox-biw-v2 a:not(.sape-button):not(.dd-button):focus,
.sape-sidebox-biw-v2 a:not(.sape-button):not(.dd-button):active {
    color: inherit;
    text-decoration: underline;
}
@media screen AND (hover:hover) {
    .sape-sidebox-biw-v2 a:not(.sape-button):not(.dd-button):hover {
        color: inherit;
        text-decoration: underline;
    }
}

.sape-sidebox-biw-v2 .sidebox-content {
    position:absolute;
    left: 0;
    right: 0;
}
.sape-sidebox-biw-v2 .boligoversigt-closebutton {
    left: 30px;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 99px;
    opacity: 1;
}
.sape-sidebox-biw-v2 .boligoversigt-closebutton:before,
.sape-sidebox-biw-v2 .boligoversigt-closebutton:after {
    display: none;
}
.sape-sidebox-biw-v2 .sape-biw-v2-back-button-icon {
    display:block;
}
.sape-sidebox-biw-v2 .favourite-button-wrapper {
    right: 30px;
}

.sape-biw-tab {
    display: none;
}

.sape-biw-viewport {
    background-color: #e2e1df; /*VAR*/
}
.sape-biw-viewport .sape-biw-viewport-2dplan-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
}
.sape-biw-viewport .sape-biw-viewport-2dplan-wrapper img {
    height: -webkit-fill-available;
    object-fit: scale-down;
}

.sape-biw-tab.active {
    display: block;
}

.sape-biw-menu,
.sape-biw-buttons-group {
    display: flex;
    align-items: center;
    overflow-x: overlay;
    gap:12px;
}
.sape-biw-buttons-group {
    margin-bottom: 10px;
}

.sape-biw-menu {
    padding:15px;
}

.sape-biw-menu::-webkit-scrollbar,
.sape-biw-buttons-group::-webkit-scrollbar{
    display: none;
}

.sape-biw-button-label {
    width:180px;
}

.sape-biw-menu {
    position: sticky;
    top: -1px;
    background: white;
    z-index: 1;
    border-bottom: 1px solid #d4d4d4;
}

@media screen AND (max-width:767px){
    .sape-biw-menu .sape-button {
        min-width: 60vw;
    }
}
.sape-button.sape-bordered-button {
    background: transparent;
}
.sape-button .ipe-boliginfo-button-icon{
    margin:0;
    margin-left:10px;
}
.sape-button .ipe-boliginfo-button-icon svg{
    width:100%;
    height: 100%;
    min-width: 20px;
}



.sape-biw-info {
    padding: 30px;
}
.sape-biw-info:not(:last-of-type){
    padding-bottom: 0;
}

.sape-infoline .sape-label::after {
    content: ""; /* COULD BE A COLON, IF NEEDED */
}
.sape-infoline td {
    padding: 5px 10px;
}
.sape-infoline td:first-of-type {
    padding-left: 0;
    min-width: 15vw;
}
.sape-infoline td:last-of-type {
    padding-right: 0;
    /* text-align: left; */
}
body .sape-infoline .sape-button {
    display: inline-block;
    margin-right: 10px;
    margin-left: 10px;
    min-height: unset;
    padding: 0 15px;
}


/* BOLIG INFO LINE - BOLIGSTØTTEBEREGNER */
.sape-boligstoette-beregner-controller .sape-value {
    display: flex;
    flex-direction: row-reverse;
}

.sape-boligstoette-beregner-controller .calculate-button {
    flex: 1 1;
    margin: 0 0 0 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen AND (max-width:767px) {
    .sape-boligstoette-beregner-controller .sape-value {
        flex-direction: row;
    }

    .sape-boligstoette-beregner-controller .calculate-button {
        margin: 0 10px 0 0;
    }
}








.sape-accordion-content table td,
.sape-accordion-content table th {
    border:none;
}


@media screen AND (max-width:499px){
    .sape-accordion-content table {
        width: 100%;
    }
    .sape-value {
        text-align: right;
    }
}
.sape-label {
    font-weight: bold;
}

.sape-biw-close {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sape-biw-tab {
    background: white;
}

.sape-biw-tab.sape-animated-activation {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
}
.sape-biw-tab.sape-animated-activation:not(.active){
    pointer-events: none;
    max-height: 89vh;
    overflow: hidden;
}
.sape-biw-tab.sape-animated-activation {
    transition-delay: 0.2s;
}
.sape-biw-tab.sape-animated-activation,
.sape-biw-tab.sape-animated-activation > * {
    opacity: 0;
    transition: opacity 0.2s linear;
}
.sape-biw-tab.sape-animated-activation.active,
.sape-biw-tab.sape-animated-activation.active > div {
    opacity: 1;
}



.sape-biw-contact-persons {
    display: flex;
    justify-content: start;
    flex-direction: row;
    padding: 15px 0;
    gap: 30px;
    justify-content: center;
}

@media screen AND (min-width:768px){
    .sape-biw-contact-persons{
        padding-left: 50px;
        padding-right: 50px;
    }
}

.sape-biw-contact-person-info {
    flex: 1 1 auto;
    max-width: 50%;
    width: 100%;
    min-width: 5%;
}

.sape-biw-contact-person-info-text {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media screen AND (max-width:767px){
    .sape-biw-contact-persons {
        gap: 0;
        font-size: 0.8em;
    }
    .sape-biw-contact-person-info-text {
        padding: 20px 0;
    }
}



/* FAVOURITES SECTION */
.sape-favourites .ipe-boliginfo-button {
    justify-content: left;
    color: black;
    background-color: transparent;
    border: none;
}
.sape-favourites .ipe-boliginfo-button-label,
.sape-favourites .ipe-boliginfo-button-icon {
    margin-left: 0;
}

@media (hover: hover) {
    .sape-favourites .ipe-boliginfo-button:hover {
        background-color: transparent;
    }
}
/* END: FAVOURITES SECTION */



/* ACCORDIANS */
.sape-accordion-tab {
    position: relative;
    border-top: 1px solid #D4D4D4;
}
.sape-accordion-toggle {
    position: relative;
    padding: 16px 0;
    cursor: pointer;
}
.sape-accordion-tab:last-of-type {
    border-bottom: 1px solid #D4D4D4;
}
.sape-accordion-tab .sape-accordion-toggle {
    font-size: 1.6em;
    margin:0;
    font-weight: normal;
}
.sape-accordion-tab .sape-arrow-down {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    line-height: 0;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.sape-accordion-content-wrapper {
    max-height: 0px;
    transition: max-height 160ms ease-in-out;
    overflow: hidden;
}
.sape-accordion-content{
    padding-bottom: 16px;
    padding-left: 0px;
    padding-right: 15px;
}
.sape-accordion-content table {
    table-layout: fixed;
}
.sape-accordion-content p {
    font-size: 1em;
    max-width: unset;
}
.sape-arrow-down {
    transition: transform 160ms ease-in-out;
}
/* END: ACCORDIANS */



/* SCROLLBARS */
.sape-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.sape-scrollbar::-webkit-scrollbar-track {
    background: #D4D4D4; 
}
.sape-scrollbar::-webkit-scrollbar-thumb {
    background: #000; 
}
@media (hover: hover) {
    .sape-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #000; 
    }
}
/* Firefox */
.sape-scrollbar {
    scrollbar-color: #000 #D4D4D4;
}
/* END: SCROLLBARS */


/* CARDS */
.sape-cards {
    display: flex;
    overflow-x: scroll;
    padding-bottom: 16px;
}
.sape-cards.sape-scrollbar::-webkit-scrollbar-track {
    margin-right:30px;
}
.sape-card {
    flex: 0 0 auto;
    margin:5px;
}
.sape-card:first-of-type {
    margin-left:0px;
}
.sape-card:last-of-type {
    margin-right:30px;
}
.sape-cards .sape-card img {
    background-color: #D4D4D4;
    border-radius: 15px;
    overflow: hidden;
}
/* END: CARDS */
.sape-biw-nyhedsbrev {
    text-align: center;
}
.sape-biw-footer {
    background-color: #000;
    color:#FFF;
    margin-top:30px;
}

/* END: BOLIG INFO WINDOW v2 */


/* HELPERS */
/* USE:  <div style="--aspect-ratio:815/419;"> */
[style*="--aspect-ratio"] > :first-child {
    width: 100%;
  }
  [style*="--aspect-ratio"] > iframe {  
    height: auto;
  } 
  @supports (--custom:property) {
    [style*="--aspect-ratio"] {
      position: relative;
    }
    [style*="--aspect-ratio"]::before {
      content: "";
      display: block;
      padding-bottom: calc(100% / (var(--aspect-ratio)));
      pointer-events: none;
    }  
    [style*="--aspect-ratio"] > :first-child {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
    }  
}

/* VIEWPORT DISCLAIMER AND TUTORIAL */
.sape-biw-viewport-disclaimer,
.sape-biw-viewport-tutorial {
    background-color: #0004;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sape-biw-viewport-disclaimer-modal {
    background: white;
    padding: 40px 50px;
    border-radius: 30px;
    margin: 20px;
    max-width: 600px;
}

.sape-biw-viewport-tutorial-message {
    color: white;
    text-align: center;
}

.sape-bordered-button {
    border: 2px solid rgb(85, 85, 85);
    background-color: white;
}

@media screen AND (max-width:767px){
    .sape-biw-viewport-disclaimer-modal {
        padding: 20px 30px;
        border-radius: 10px;
    }
    .sape-biw-viewport-disclaimer-modal p {
        font-size: 0.85em;
    }
}
/* END: VIEWPORT DISCLAIMER */


.sape-flex-column {
    display:flex;
    flex-direction: column;
}
.sape-flex-column-reverse {
    display:flex;
    flex-direction: column-reverse;
}
.sape-flex-row {
    display:flex;
    flex-direction: row;
}
.sape-flex-row-reverse {
    display:flex;
    flex-direction: row-reverse;
}


/* VIEWPORTS (Multiple views) */
.sape-viewort-tab {
    display: none;
    z-index: -1;
}
.sape-viewort-tab.active {
    display: block;
    z-index: 0;
}


/* VIEWPORT -> CUSTOPIZER */
.sape-biw-viewport .dd-customizer-wrapper,
.sape-biw-viewport .dd-c-imagewrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.sape-biw-viewport .dd-c-imagewrapper .dd-c-image {
    object-fit: cover;
    height: 100%;
}

