/*.inputfont{ 
    font-size: 18px; font-family: sans-serif; 
}
.inputfontmsg{ 
    font-size: 17px; font-family: sans-serif; 
}

.langoverlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:1000;
    background-color:#c9c9c99c;
    display:none;
}
*/

.dk_options{
    display: none;
    position: absolute;
}

.dk_options_inner{
    list-style-type: none;
    text-decoration: none;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #000000a8;
    margin-top: 4px;
}

.dk_options_inner li a{
    list-style-type: none;
    text-decoration: none;
}

.translate_link{
    cursor:pointer;
}

.custom_photo_references{
    max-width: 300px!important;
    min-width: 300px;
    margin-left: 40px!important;
}



@media screen and (max-width: 450px) {
    .button-primary.small-v2 {
        padding: 15px;
    }

    .button-primary-gradient.header-button {
        margin-right: 5px;
    }
    

}

@media screen and (max-width: 767px) {

    .fixmobilepalet{
        grid-template-columns: auto!important;
    }
    .bg-gradient-blur-wrapper.contact-hero{
        display:none!important;
    }
}



.inva-form-error {
    margin-top: 32px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 12px;
    background-color: #ff4b4e;
    color: #fff;
    font-weight: 600;
    text-align: center;

    display: none;
    margin-top: 10px;
    padding: 10px;
    /* background-color: #ffdede; */

}

.inva-form-ok {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 12px;
    background-color: #302c3f;
    color: #fff;
    font-weight: 700;
    text-align: center;

    display: none;
    padding: 10px;
    text-align: center;
   /* background-color: #dddddd; */
}


.xliinvantaselector{
    z-index: 1;
    max-width: 1246px;
    text-align: left;
    margin-top: 161px;
    margin-bottom: 40px;
    position: relative;
}



.xliinvantaselectorcontainer{
    max-width: 634px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.mylistinv{
    margin-top: 2px; 
    padding-left: 40px;
    text-align: left;

}


.button-primary-gradient.header-button {
    display: inline-block;
}

/* Fix: gradient blur elements should not intercept clicks */
.bg-gradient-blur-wrapper {
    pointer-events: none;
}

/* ============================================================
   Downloads page — Card Grid + Flipbook Overlay
   ============================================================ */

/* --- Card Selection Grid --- */
.downloads-grid-wrapper {
    position: relative;
    z-index: 1;
}

.downloads-grid-subtitle {
    text-align: center;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.downloads-grid {
    grid-row-gap: 26px;
}

.downloads-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-direction: column;
    align-items: flex-start;
}

.downloads-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.55);
}

.downloads-card:focus-visible {
    outline: 2px solid #b372ce;
    outline-offset: 4px;
}

.downloads-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

/* Badges */
.downloads-card-meta {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.downloads-card-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(179, 114, 206, 0.15);
    color: #b372ce;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Full-Screen Overlay Viewer --- */
body.dl-overlay-open {
    overflow: hidden;
}

.downloads-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.downloads-overlay-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 24px;
    background: rgba(29, 26, 39, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.downloads-overlay-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.downloads-overlay-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.downloads-overlay-title {
    flex: 1;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Download button (in overlay header) */
.downloads-download-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 48px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.downloads-download-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Flipbook container — fills available vertical space */
.downloads-flipbook-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 0;
    /* Prevent mobile scroll/bounce */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

.downloads-flipbook {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}


/* Loading indicator */
.downloads-loading {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    text-align: center;
    padding: 40px;
    width: 100%;
    flex-shrink: 0;
}

.downloads-loading-hidden {
    display: none;
}

/* Overlay controls bar (bottom) */
.downloads-overlay-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(29, 26, 39, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    justify-content: center;
    flex-shrink: 0;
}

.downloads-pdf-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.downloads-pdf-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.downloads-page-info {
    font-size: 14px;
    min-width: 100px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}


/* StPageFlip page styling */
.downloads-flipbook .page-wrapper {
    /* Override site's .page-wrapper if needed */
}

.downloads-flipbook .stf__parent {
    margin: 0 auto;
}

/* --- Responsive: Tablet + mobile (single-page mode threshold) --- */
@media screen and (max-width: 991px) {
    .downloads-overlay-header {
        padding: 12px 16px;
    }
    .downloads-overlay-title {
        font-size: 16px;
    }
    .downloads-flipbook-container {
        touch-action: pan-x;
        overflow: hidden;
    }
    .downloads-flipbook {
        /* Lock position so StPageFlip animation doesn't shift the element */
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }
}

/* --- Responsive: Mobile landscape --- */
@media screen and (max-width: 767px) {
    .downloads-overlay-header {
        padding: 10px 12px;
        gap: 10px;
    }
    .downloads-overlay-title {
        font-size: 14px;
    }
    .downloads-download-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .downloads-overlay-controls {
        padding: 8px 12px;
    }
}

/* --- Responsive: Mobile portrait --- */
@media screen and (max-width: 479px) {
    .downloads-overlay-header {
        flex-wrap: wrap;
        padding: 8px 10px;
    }
    .downloads-overlay-title {
        order: 2;
        width: 100%;
        font-size: 13px;
    }
    .downloads-overlay-close {
        order: 1;
    }
    .downloads-download-btn {
        order: 1;
        margin-left: auto;
    }
}