/* ==========================================================
   Francherry Manager Portal
   Universal Drawer Engine
   Version: 1.1.1

   Primary Gold: #C89B3C
   Black:        #000000
   White:        #FFFFFF
========================================================== */


/* ==========================================================
   Universal Drawer
========================================================== */

.fb-drawer {

    position: fixed;

    inset: 0;

    display: none;

    z-index: 99999;

}

.fb-drawer.active {

    display: block;

}


/* ==========================================================
   Overlay
========================================================== */

.fb-drawer-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, .45);

    backdrop-filter: blur(2px);

}


/* ==========================================================
   Drawer Panel
========================================================== */

.fb-drawer-panel {

    position: absolute;

    top: 0;

    right: -520px;

    width: 500px;

    max-width: 100%;

    height: 100%;

    background: #FFFFFF;

    display: flex;

    flex-direction: column;

    transition: right .35s ease;

    box-shadow: -10px 0 40px rgba(0, 0, 0, .15);

    overflow: hidden;

}

.fb-drawer.active .fb-drawer-panel {

    right: 0;

}


/* ==========================================================
   Drawer Header
========================================================== */

.fb-drawer-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 16px;

    padding: 20px 24px;

    background: #FFFFFF;

    border-bottom: 1px solid #E8E8E8;

    flex: 0 0 auto;

}

.fb-drawer-title {

    margin: 0;

    color: #000000;

    font-size: 22px;

    font-weight: 700;

    line-height: 1.2;

}


/* ==========================================================
   Drawer Close
   ----------------------------------------------------------
   Normal:
   Black background
   Gold icon/text
   Black border

   Hover:
   Gold background
   Black icon/text
   Gold border
========================================================== */

.fb-drawer-close {

    width: 38px !important;

    height: 38px !important;

    padding: 0 !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    flex: 0 0 38px;

    border: 1px solid #000000 !important;

    border-radius: 6px !important;

    background: #000000 !important;

    color: #C89B3C !important;

    cursor: pointer !important;

    font-size: 22px !important;

    font-weight: 400 !important;

    line-height: 1 !important;

    box-shadow: none !important;

    outline: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;

}

.fb-drawer-close:hover,
.fb-drawer-close:focus {

    background: #C89B3C !important;

    color: #000000 !important;

    border-color: #C89B3C !important;

    box-shadow: none !important;

    outline: none !important;

}


/* Ensure the × character follows the button colour */

.fb-drawer-close::first-letter {

    color: currentColor !important;

}


/* ==========================================================
   Drawer Body
========================================================== */

.fb-drawer-body {

    flex: 1 1 auto;

    overflow-y: auto;

    overflow-x: hidden;

    padding: 28px;

    background: #FFFFFF;

    -webkit-overflow-scrolling: touch;

}


/* ==========================================================
   Drawer Forms
========================================================== */

.fb-form-group {

    margin-bottom: 20px;

}

.fb-form-group label {

    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: 600;

    color: #000000;

}

.fb-form-group input,
.fb-form-group select,
.fb-form-group textarea {

    width: 100%;

    padding: 12px 14px;

    min-height: 48px;

    border: 1px solid #D8D8D8;

    border-radius: 9px;

    background: #FFFFFF;

    color: #000000;

    font-size: 14px;

    line-height: 1.4;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}

.fb-form-group textarea {

    min-height: 110px;

    resize: vertical;

}

.fb-form-group input::placeholder,
.fb-form-group textarea::placeholder {

    color: #A0A0A0;

}

.fb-form-group input:focus,
.fb-form-group select:focus,
.fb-form-group textarea:focus {

    border-color: #000000;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(200, 155, 60, .15);

}

.fb-form-group input:disabled,
.fb-form-group select:disabled,
.fb-form-group textarea:disabled {

    background: #F5F5F5;

    color: #999999;

    cursor: not-allowed;

}


/* ==========================================================
   Radio Group
========================================================== */

.fb-radio-group {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

}

.fb-radio-group label {

    display: flex;

    align-items: center;

    gap: 8px;

    margin: 0;

    font-weight: 500;

    color: #000000;

    cursor: pointer;

}

.fb-radio-group input {

    accent-color: #000000;

}


/* ==========================================================
   Form Actions
========================================================== */

.fb-form-actions {

    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 10px;

    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid #E5E5E5;

}


/* ==========================================================
   Primary Button
========================================================== */

.fb-btn-primary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 46px;

    padding: 11px 20px;

    background: #C89B3C;

    color: #000000;

    border: 1px solid #000000;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.2;

    box-shadow: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;

}

.fb-btn-primary:hover {

    background: #000000;

    color: #C89B3C;

    border-color: #000000;

}

.fb-btn-primary:disabled {

    opacity: .6;

    cursor: not-allowed;

}


/* ==========================================================
   Secondary Button
========================================================== */

.fb-btn-secondary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 46px;

    padding: 11px 20px;

    background: #000000;

    color: #C89B3C;

    border: 1px solid #000000;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.2;

    box-shadow: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;

}

.fb-btn-secondary:hover {

    background: #C89B3C;

    color: #000000;

    border-color: #C89B3C;

}


/* ==========================================================
   Placeholder
========================================================== */

.fb-placeholder {

    padding: 14px;

    background: #F8F9FB;

    border: 1px dashed #D8D8D8;

    border-radius: 9px;

    color: #777777;

    font-size: 13px;

    line-height: 1.5;

    text-align: center;

}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 768px) {

    .fb-drawer-panel {

        width: 100%;

        right: -100%;

    }

    .fb-drawer-header {

        padding: 17px 18px;

    }

    .fb-drawer-title {

        font-size: 20px;

    }

    .fb-drawer-close {

        width: 36px !important;

        height: 36px !important;

        flex-basis: 36px;

        font-size: 21px !important;

    }

    .fb-drawer-body {

        padding: 18px;

    }

    .fb-form-group {

        margin-bottom: 17px;

    }

    .fb-form-actions {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 8px;

    }

    .fb-btn-primary,
    .fb-btn-secondary {

        width: 100%;

        min-height: 48px;

    }

}


/* ==========================================================
   Very Small Phones
========================================================== */

@media (max-width: 420px) {

    .fb-drawer-body {

        padding: 15px;

    }

    .fb-drawer-header {

        padding: 15px;

    }

    .fb-drawer-title {

        font-size: 19px;

    }

    .fb-form-actions {

        grid-template-columns: 1fr;

    }

}