/* Flismy Packs - WPBakery Element Styles */

.flismy-pack {
    font-family:
        "Montserrat",
        -apple-system,
        sans-serif;
}

/* Error Messages */
.flismy-pack-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

/* ========== CARD BUTTON ========== */
.fp-card-btn {
    height: -webkit-fill-available !important;
    max-height: 100px !important;
    background: #fff;
    border-radius: 16px;
    color: inherit;
    cursor: pointer;
    width: 100px;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-card-btn img {
    margin: 0 !important;
}

.fp-card-btn:hover,
.fp-card-btn:focus {
    text-decoration: none;
    color: inherit;
}

.fp-arrow-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
}

/* ========== FULL STYLE (Card) ========== */
.flismy-pack-full {
    border-radius: 20px;
    overflow: hidden;
    max-width: 430px;
    transition: background 0.2s ease;
}

.fp-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    transition: background 0.2s ease;
    border-radius: 16px;
}

.fp-card-image .fp-main-image {
    max-width: 70%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 1;
}

.fp-card-image .fp-secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.fp-same-color:hover .fp-card-image,
.fp-same-color:hover .fp-card-info,
.fp-same-color:hover .fp-card-btn {
    background: rgba(110, 165, 194, 0.7);
    backdrop-filter: blur(8px);
}

/* Hover image swap only on devices that support hover and when secondary image exists */
@media (hover: hover) and (pointer: fine) {
    .flismy-pack-full:not(.fp-no-swap):has(.fp-secondary-image):hover .fp-main-image {
        opacity: 0;
    }

    .flismy-pack-full:not(.fp-no-swap):hover .fp-secondary-image {
        opacity: 1;
    }

    .flismy-pack-full:not(.fp-same-color):hover .fp-card-image,
    .flismy-pack-full:not(.fp-same-color):hover .fp-card-info,
    .flismy-pack-full:not(.fp-same-color):hover .fp-card-btn {
        background: #96c2d7;
    }
}

/* Touch-triggered image swap class (JS) */
.fp-card-image--touched:has(.fp-secondary-image) .fp-main-image {
    opacity: 0;
}

.fp-card-image--touched .fp-secondary-image {
    opacity: 1;
}

.flismy-pack-full:has(.fp-card-image--touched) .fp-card-image,
.flismy-pack-full:has(.fp-card-image--touched) .fp-card-info,
.flismy-pack-full:has(.fp-card-image--touched) .fp-card-btn {
    background: #96c2d7;
}

.fp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fp-card-info {
    background: #fff;
    border-radius: 16px;
    flex: 1;
    min-width: 0;
    transition: background 0.2s ease;
    height: stretch;
    min-height: 100px !important;
    padding: 20px;
    align-items: center;
    display: flex;
    flex-direction: column;
    align-items: baseline;
}

.fp-card-info .fp-title {
    margin: 0 0 2px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    transition: color 0.2s ease;
    border-bottom: 3px;
}

.fp-card-info .fp-subtitle {
    margin: 0 !important;
    font-size: 16px !important;
    color: #1a1a1a;
    line-height: 1.3;
    font-style: italic;
    font-weight: 400;
    transition: color 0.2s ease;
}

.fp-card-info:not(:has(.fp-subtitle)) {
    justify-content: center !important;
}

.fp-card-info:not(:has(.fp-subtitle)) .fp-title {
    margin: 0px !important;
}

/* ========== BODY SCROLL LOCK ========== */
body.fp-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

body.fp-modal-open #header-outer {
    z-index: -1 !important;
}

/* ========== MODAL (fullscreen) ========== */
.fp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;
}

.fp-modal--active {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.fp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 50, 60, 0.5);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.fp-modal--visible .fp-modal-overlay {
    opacity: 1;
}

.fp-modal-panel {
    position: relative;
    width: 100%;
    min-height: 100%;
    background: #c6d4dc;
    overflow-y: visible;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.2s ease,
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 50px 70px;
    box-sizing: border-box;
    z-index: 1;
}

.fp-modal--visible .fp-modal-panel {
    opacity: 1;
    transform: translateY(0);
}

.fp-modal-close {
    position: fixed;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
    line-height: 0;
    transition: transform 0.2s ease;
}

.fp-modal-close:hover {
    transform: scale(1.15);
}

.fp-modal-close img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.fp-modal-header {
    margin-bottom: 40px;
    padding-right: 60px;
}

.fp-modal-title {
    border-bottom: 3px solid #000;
    padding-bottom: 15px !important;
    line-height: 1em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #000 !important;
    --min: 48;
    --max: 64;
    --mintrans: 430;
    --maxtrans: 1920;
    font-size: clamp(var(--min) * 1px, calc((var(--max) - var(--min)) * ((100vw - var(--mintrans) * 1px) / (var(--maxtrans) - var(--mintrans))) + var(--min) * 1px), var(--max) * 1px) !important;
    margin-bottom: 50px;
}

/* Modal two-column layout */
.fp-modal-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
}

/* ========== INSTRUCTIONS (modal left column) ========== */
.fp-instructions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fp-instructions-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fp-instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fp-instruction-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 100px;
}

.fp-instruction-number {
    position: absolute;
    top: -6px;
    left: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
    z-index: 1;
}

.fp-instruction-number--standalone {
    position: static;
    width: 28px;
    height: 28px;
    font-size: 14px;
    flex-shrink: 0;
}

.fp-instruction-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    background: #c8d3da;
    border: 1px solid #b0bec5;
}

.fp-instruction-text {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.5;
    flex: 1;
}

.fp-instruction-text p {
    margin: 0;
}

/* ========== INCLUDES (modal right column) ========== */
.fp-includes {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-includes-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.fp-includes-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.fp-include-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 80px;
    text-align: center;
}

.fp-include-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.fp-include-label,
.fp-include-label p {
    margin: 0;
    font-size: 10px;
    color: #1a1a1a;
    line-height: 1.3;
    text-align: center;
}

/* ========== VIDEO (modal right column) ========== */
.fp-video {
    margin-top: 20px;
}

.fp-video h3 {
    display: none;
}

.fp-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #c8d3da;
    border: 1px solid #b0bec5;
}

.fp-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
}

/* ========== RESPONSIVE ========== */

@media screen and (min-width: 1133px) and (max-width: 1472px) {
    .row_gris .row_col_wrap_12_inner {
        row-gap: 30px;
    }

    .row_gris .vc_col-sm-3 {
        flex: 0 0 33.333%;
    }

}

@media screen and (min-width: 1000px) and (max-width: 1132px) {
    .row_gris .row_col_wrap_12_inner {
        row-gap: 30px;
    }

    .row_gris .vc_col-sm-3 {
        flex: 0 0 50%;
    }

}

@media (max-width: 768px) {
    .fp-modal-panel {
        padding: 24px 20px;
    }

    .fp-modal-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fp-modal-title {
        font-size: 28px;
        padding-right: 40px;
    }

    .fp-modal-close {
        position: absolute;
        top: 14px;
        right: 14px;
    }

    .fp-modal-close img {
        width: 28px;
        height: 28px;
    }

    .fp-card-image .fp-secondary-image {
        padding: 20px;
    }

    .fp-compact-content {
        grid-template-columns: auto 1fr;
        gap: 15px;
        padding: 15px;
    }

    .fp-compact-image img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .fp-instruction-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .fp-instruction-img-wrap {
        width: 80px;
    }

    .fp-compact-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .fp-compact-image {
        display: flex;
        justify-content: center;
    }
}