/* ================================
   MODALS
================================ */

.modal-content {

    border: 0;

    border-radius: 18px;

    box-shadow:
        0 22px 50px rgba(16, 35, 49, 0.18);
}

.modal-header,
.modal-footer {

    border-color:
        rgba(23, 48, 66, 0.08);
}

.ff-modal-label {

    font-size: 0.9rem;

    font-weight: 600;

    color: var(--ff-text);

    margin-bottom: 0.35rem;
}

/* ======================================
   MODAL HEADER
====================================== */

#ffModal .modal-header {

    border-bottom:
        1px solid #f1f3f5;

    padding-top: 14px;
    padding-bottom: 14px;
}

#ffModal .modal-title {

    width: 100%;
}

/* ======================================
   MODAL CONTENT ANIMATION
====================================== */

.ff-period-content {

    animation:
        ffFadeSlide .18s ease;
}

@keyframes ffFadeSlide {

    from {

        opacity: 0;

        transform:
            translateY(4px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}

/* ======================================
   PERIOD NAVIGATION
====================================== */

.ff-period-tabs {

    scrollbar-width: none;

    -ms-overflow-style: none;

    padding-bottom: 2px;
}

.ff-period-tabs::-webkit-scrollbar {

    display: none;
}

/* Pills */

.ff-period-tabs .btn {

    border-radius: 999px;

    white-space: nowrap;

    font-size: 12px;

    font-weight: 600;

    padding: 5px 12px;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        transform .08s ease;
}

.ff-period-tabs .btn:hover {

    transform:
        translateY(-1px);
}

.ff-period-tabs .btn:active {

    transform:
        scale(.97);
}

/* Active */

.ff-period-tabs .btn-primary {

    box-shadow:
        0 2px 8px rgba(13,110,253,.25);
}

/* ======================================
   PRODUCT LIST
====================================== */

.ff-product-list .list-group-item {

    border-radius: 10px !important;

    margin-bottom: 10px;

    border: 1px solid #e9ecef;

    transition:
        transform .12s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

.ff-product-list .list-group-item:hover {

    transform:
        translateY(-1px);

    border-color:
        #d0d7de;

    box-shadow:
        0 4px 14px rgba(0,0,0,.05);
}

/* ======================================
   NARRATIVE
====================================== */

.ff-narrative {

    background:
        linear-gradient(
            180deg,
            #f8f9fa,
            #ffffff
        );

    border:
        1px solid #e9ecef;

    border-radius: 12px;

    padding: 14px 16px;

    margin-bottom: 18px;
}

.ff-narrative-headline {

    font-size: 16px;

    font-weight: 700;

    line-height: 1.2;

    margin-bottom: 6px;
}

.ff-narrative-summary {

    font-size: 13px;

    color: #495057;

    line-height: 1.45;
}

/* ======================================
   MOBILE
====================================== */

@media (max-width: 576px) {

    .ff-period-tabs .btn {

        font-size: 11px;

        padding: 4px 10px;
    }

    .ff-species-dropdown {

        width: 100%;

        min-width: 0;
    }

    .ff-product-list img {

        width: 58px !important;

        height: 58px !important;
    }

    .ff-narrative {

        padding: 12px;
    }
}


/* ======================================
   CONDITIONS LIST
====================================== */

.ff-conditions-list {

    border: 1px solid #e9ecef;

    border-radius: 12px;

    overflow: hidden;

    background: #fff;
}

.ff-condition-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 9px 12px;

    border-bottom: 1px solid #f1f3f5;

    font-size: 13px;
}

.ff-condition-row:last-child {
    border-bottom: 0;
}

.ff-condition-label {

    color: #6c757d;

    font-weight: 500;
}

.ff-condition-value {

    font-weight: 600;

    text-align: right;
}