/* =========================================================
   FIRSTSOFT TECHNOLOGIES
   COOKIE SETTINGS
   COMPLETE RESPONSIVE CSS
   1600px TO 320px
========================================================= */


/* =========================================================
   COOKIE SETTINGS BUTTON
========================================================= */

#fsCookieSettingsButton {
    position: fixed;

    left: 20px;
    bottom: 20px;

    width: 54px;
    height: 54px;

    min-width: 54px;
    min-height: 54px;

    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.20);

    cursor: pointer;

    z-index: 2147483646;

    visibility: visible;
    opacity: 1;

    pointer-events: auto;

    box-sizing: border-box;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   COOKIE ICON
========================================================= */

#fsCookieSettingsButton::before {
    content: "";

    display: block;

    width: 27px;
    height: 27px;

    min-width: 27px;
    min-height: 27px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 30%,
            #ffffff 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle at 65% 40%,
            #ffffff 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle at 45% 70%,
            #ffffff 0 2px,
            transparent 3px
        ),
        #0066ff;

    box-shadow:
        0 3px 10px rgba(0, 102, 255, 0.35);

    box-sizing: border-box;
}


/* =========================================================
   COOKIE BUTTON HOVER
========================================================= */

#fsCookieSettingsButton:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28);
}


/* =========================================================
   COOKIE SETTINGS OVERLAY
========================================================= */

#fsCookieSettingsOverlay {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 15, 40, 0.55);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    z-index: 2147483640;

    display: none;

    opacity: 0;

    transition:
        opacity 0.3s ease;
}


/* =========================================================
   SHOW OVERLAY
========================================================= */

#fsCookieSettingsOverlay.show {
    display: block;

    opacity: 1;
}


/* =========================================================
   COOKIE SETTINGS PANEL
========================================================= */

#fsCookieSettingsPanel {
    position: fixed;

    top: 50%;
    left: 50%;

    width: min(620px, calc(100% - 40px));

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: #ffffff;

    border-radius: 22px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.30);

    z-index: 2147483641;

    display: none;

    flex-direction: column;

    transform:
        translate(-50%, -46%)
        scale(0.94);

    opacity: 0;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    box-sizing: border-box;
}


/* =========================================================
   SHOW PANEL
========================================================= */

#fsCookieSettingsPanel.show {
    display: flex;

    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/* =========================================================
   SETTINGS INNER
========================================================= */

.fs-cookie-settings-inner {
    width: 100%;

    padding: 35px;

    box-sizing: border-box;
}


/* =========================================================
   SETTINGS HEADER
========================================================= */

.fs-cookie-settings-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}


/* =========================================================
   SETTINGS LABEL
========================================================= */

.fs-cookie-settings-label {
    display: inline-block;

    margin-bottom: 8px;

    color: #0066ff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;

    line-height: 1.4;
}


/* =========================================================
   SETTINGS HEADING
========================================================= */

.fs-cookie-settings-header h2 {
    margin: 0;

    color: #071a33;

    font-size: 28px;

    font-weight: 700;

    line-height: 1.25;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

#fsCookieSettingsClose {
    flex-shrink: 0;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #f1f6fc;

    color: #071a33;

    font-size: 26px;

    line-height: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


#fsCookieSettingsClose:hover {
    background: #0066ff;

    color: #ffffff;

    transform: rotate(90deg);
}


/* =========================================================
   SETTINGS DESCRIPTION
========================================================= */

.fs-cookie-settings-description {
    margin: 0 0 25px 0;

    color: #40516a;

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   SETTINGS OPTION
========================================================= */

.fs-cookie-settings-option {
    position: relative;

    padding: 20px;

    margin-bottom: 15px;

    border: 1px solid #e3ebf5;

    border-radius: 14px;

    background: #f8fbff;

    overflow: hidden;

    box-sizing: border-box;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}


/* =========================================================
   OPTION LEFT LINE
========================================================= */

.fs-cookie-settings-option::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: #0066ff;
}


/* =========================================================
   OPTION HOVER
========================================================= */

.fs-cookie-settings-option:hover {
    border-color: #bcd5f5;

    box-shadow:
        0 8px 25px rgba(0, 102, 255, 0.08);

    transform: translateY(-2px);
}


/* =========================================================
   OPTION HEADER
========================================================= */

.fs-cookie-settings-option-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 8px;
}


/* =========================================================
   OPTION HEADING
========================================================= */

.fs-cookie-settings-option-header h3 {
    margin: 0;

    color: #071a33;

    font-size: 17px;

    font-weight: 700;

    line-height: 1.4;
}


/* =========================================================
   OPTION DESCRIPTION
========================================================= */

.fs-cookie-settings-option p {
    margin: 0;

    color: #56677d;

    font-size: 17px;

    line-height: 1.6;
}


/* =========================================================
   ALWAYS ACTIVE
========================================================= */

.fs-cookie-settings-always-active {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 5px 10px;

    border-radius: 20px;

    background: #e7f7ed;

    color: #17833b;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   ANALYTICS STATUS
========================================================= */

.fs-cookie-settings-disabled {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 5px 10px;

    border-radius: 20px;

    background: #eef1f5;

    color: #697789;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   ANALYTICS ENABLED
========================================================= */

.fs-cookie-settings-enabled {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 5px 10px;

    border-radius: 20px;

    background: #e7f7ed;

    color: #17833b;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   CURRENT PREFERENCE
========================================================= */

.fs-cookie-settings-current {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 22px;

    padding: 15px 18px;

    border-radius: 12px;

    background: #eef6ff;

    color: #29415d;

    font-size: 14px;

    line-height: 1.5;

    box-sizing: border-box;
}


.fs-cookie-settings-current strong {
    color: #071a33;

    font-weight: 700;
}


#fsCookieCurrentPreference {
    color: #0066ff;

    font-weight: 700;

    text-align: right;
}


/* =========================================================
   SETTINGS ACTIONS
========================================================= */

.fs-cookie-settings-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    margin-top: 25px;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

#fsCookieSettingsReject,
#fsCookieSettingsAccept {
    min-height: 46px;

    padding: 0 22px;

    border-radius: 9px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* =========================================================
   REJECT BUTTON
========================================================= */

#fsCookieSettingsReject {
    border: 1px solid #d8e1ec;

    background: #ffffff;

    color: #26384f;
}


#fsCookieSettingsReject:hover {
    background: #f3f6fa;

    transform: translateY(-2px);
}


/* =========================================================
   ACCEPT BUTTON
========================================================= */

#fsCookieSettingsAccept {
    border: 1px solid #0066ff;

    background: #0066ff;

    color: #ffffff;

    box-shadow:
        0 7px 18px rgba(0, 102, 255, 0.20);
}


#fsCookieSettingsAccept:hover {
    background: #0052cc;

    box-shadow:
        0 10px 25px rgba(0, 102, 255, 0.30);

    transform: translateY(-2px);
}


/* =========================================================
   PANEL SCROLLBAR
========================================================= */

#fsCookieSettingsPanel::-webkit-scrollbar {
    width: 6px;
}

#fsCookieSettingsPanel::-webkit-scrollbar-track {
    background: #f4f7fb;
}

#fsCookieSettingsPanel::-webkit-scrollbar-thumb {
    background: #b7c9df;

    border-radius: 10px;
}

#fsCookieSettingsPanel::-webkit-scrollbar-thumb:hover {
    background: #0066ff;
}


/* =========================================================
   LARGE DESKTOP
   1400px+
========================================================= */

@media (min-width: 1400px) {

    #fsCookieSettingsButton {
        left: 25px;

        bottom: 25px;

        width: 56px;
        height: 56px;

        min-width: 56px;
        min-height: 56px;
    }

    #fsCookieSettingsButton::before {
        width: 28px;
        height: 28px;

        min-width: 28px;
        min-height: 28px;
    }

    .fs-cookie-settings-inner {
        padding: 40px;
    }
}


/* =========================================================
   DESKTOP
   1200px - 1399px
========================================================= */

@media (min-width: 1200px) and (max-width: 1399px) {

    #fsCookieSettingsButton {
        left: 22px;

        bottom: 22px;

        width: 54px;
        height: 54px;
    }

    #fsCookieSettingsButton::before {
        width: 27px;
        height: 27px;
    }
}


/* =========================================================
   LAPTOP
   1024px - 1199px
========================================================= */

@media (min-width: 1024px) and (max-width: 1199px) {

    #fsCookieSettingsButton {
        left: 20px;

        bottom: 20px;

        width: 52px;
        height: 52px;

        min-width: 52px;
        min-height: 52px;
    }

    #fsCookieSettingsButton::before {
        width: 26px;
        height: 26px;

        min-width: 26px;
        min-height: 26px;
    }

    .fs-cookie-settings-inner {
        padding: 32px;
    }
}


/* =========================================================
   TABLET
   768px - 1023px
========================================================= */

@media (min-width: 768px) and (max-width: 1023px) {

    #fsCookieSettingsButton {
        left: 18px;

        bottom: 18px;

        width: 50px;
        height: 50px;

        min-width: 50px;
        min-height: 50px;
    }

    #fsCookieSettingsButton::before {
        width: 25px;
        height: 25px;

        min-width: 25px;
        min-height: 25px;
    }

    #fsCookieSettingsPanel {
        width: min(600px, calc(100% - 40px));
    }

    .fs-cookie-settings-inner {
        padding: 30px;
    }
}


/* =========================================================
   LARGE MOBILE
   576px - 767px
========================================================= */

@media (min-width: 576px) and (max-width: 767px) {

    #fsCookieSettingsButton {
        left: 15px;

        /*
           30PX SPACE ABOVE BOTTOM MENU
        */
        bottom: 75px;

        width: 48px;
        height: 48px;

        min-width: 48px;
        min-height: 48px;
    }

    #fsCookieSettingsButton::before {
        width: 24px;
        height: 24px;

        min-width: 24px;
        min-height: 24px;
    }

    #fsCookieSettingsPanel {
        width: calc(100% - 30px);

        max-height: calc(100vh - 30px);

        border-radius: 18px;
    }

    .fs-cookie-settings-inner {
        padding: 25px;
    }

    .fs-cookie-settings-header h2 {
        font-size: 24px;
    }
}


/* =========================================================
   MOBILE
   481px - 575px
========================================================= */

@media (min-width: 481px) and (max-width: 575px) {

    #fsCookieSettingsButton {
        left: 15px;

        /*
           BOTTOM MENU SAFE SPACE
           50PX MENU + 30PX GAP
        */
        bottom: 80px;

        width: 47px;
        height: 47px;

        min-width: 47px;
        min-height: 47px;
    }

    #fsCookieSettingsButton::before {
        width: 23px;
        height: 23px;

        min-width: 23px;
        min-height: 23px;
    }

    #fsCookieSettingsPanel {
        width: calc(100% - 30px);

        max-height: calc(100vh - 30px);

        border-radius: 18px;
    }

    .fs-cookie-settings-inner {
        padding: 24px;
    }

    .fs-cookie-settings-header h2 {
        font-size: 23px;
    }

    .fs-cookie-settings-description {
        font-size: 14px;
    }
}


/* =========================================================
   SMALL MOBILE
   376px - 480px
========================================================= */

@media (min-width: 376px) and (max-width: 480px) {

    #fsCookieSettingsButton {
        left: 15px;

        /*
           30PX GAP ABOVE BOTTOM MENU
        */
        bottom: 80px;

        width: 46px;
        height: 46px;

        min-width: 46px;
        min-height: 46px;
    }

    #fsCookieSettingsButton::before {
        width: 23px;
        height: 23px;

        min-width: 23px;
        min-height: 23px;
    }

    #fsCookieSettingsPanel {
        width: calc(100% - 24px);

        max-height: calc(100vh - 24px);

        border-radius: 17px;
    }

    .fs-cookie-settings-inner {
        padding: 20px;
    }

    .fs-cookie-settings-header {
        gap: 10px;

        margin-bottom: 18px;
    }

    .fs-cookie-settings-header h2 {
        font-size: 21px;
    }

    .fs-cookie-settings-label {
        font-size: 10px;

        letter-spacing: 1.2px;
    }

    #fsCookieSettingsClose {
        width: 36px;
        height: 36px;

        font-size: 23px;
    }

    .fs-cookie-settings-description {
        font-size: 13px;

        line-height: 1.6;
    }

    .fs-cookie-settings-option {
        padding: 17px;
    }

    .fs-cookie-settings-option-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .fs-cookie-settings-option-header h3 {
        font-size: 16px;
    }

    .fs-cookie-settings-option p {
        font-size: 13px;
    }

    .fs-cookie-settings-current {
        flex-direction: column;

        align-items: flex-start;

        gap: 5px;

        font-size: 13px;
    }

    #fsCookieCurrentPreference {
        text-align: left;
    }

    .fs-cookie-settings-actions {
        flex-direction: column;

        gap: 10px;

        width: 100%;
    }

    #fsCookieSettingsReject,
    #fsCookieSettingsAccept {
        width: 100%;

        min-height: 44px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   321px - 375px
========================================================= */

@media (min-width: 321px) and (max-width: 375px) {

    #fsCookieSettingsButton {
        left: 14px;

        /*
           30PX GAP ABOVE BOTTOM MENU
        */
        bottom: 80px;

        width: 45px;
        height: 45px;

        min-width: 45px;
        min-height: 45px;
    }

    #fsCookieSettingsButton::before {
        width: 22px;
        height: 22px;

        min-width: 22px;
        min-height: 22px;
    }

    #fsCookieSettingsPanel {
        width: calc(100% - 20px);

        max-height: calc(100vh - 20px);

        border-radius: 16px;
    }

    .fs-cookie-settings-inner {
        padding: 18px;
    }

    .fs-cookie-settings-header h2 {
        font-size: 20px;
    }

    .fs-cookie-settings-label {
        font-size: 9px;
    }

    #fsCookieSettingsClose {
        width: 34px;
        height: 34px;

        font-size: 21px;
    }

    .fs-cookie-settings-description {
        font-size: 13px;
    }

    .fs-cookie-settings-option {
        padding: 15px;
    }

    .fs-cookie-settings-option-header h3 {
        font-size: 15px;
    }

    .fs-cookie-settings-option p {
        font-size: 12px;
    }

    .fs-cookie-settings-current {
        padding: 13px 14px;

        font-size: 12px;
    }

    #fsCookieSettingsReject,
    #fsCookieSettingsAccept {
        min-height: 43px;

        font-size: 13px;
    }
}


/* =========================================================
   320px
========================================================= */

@media (max-width: 320px) {

    #fsCookieSettingsButton {
        left: 12px;

        /*
           30PX GAP ABOVE BOTTOM MENU
        */
        bottom: 80px;

        width: 44px;
        height: 44px;

        min-width: 44px;
        min-height: 44px;
    }

    #fsCookieSettingsButton::before {
        width: 21px;
        height: 21px;

        min-width: 21px;
        min-height: 21px;
    }

    #fsCookieSettingsPanel {
        width: calc(100% - 16px);

        max-height: calc(100vh - 16px);

        border-radius: 15px;
    }

    .fs-cookie-settings-inner {
        padding: 16px;
    }

    .fs-cookie-settings-header {
        gap: 8px;

        margin-bottom: 15px;
    }

    .fs-cookie-settings-header h2 {
        font-size: 19px;
    }

    .fs-cookie-settings-label {
        font-size: 8px;

        letter-spacing: 1px;
    }

    #fsCookieSettingsClose {
        width: 32px;
        height: 32px;

        font-size: 20px;
    }

    .fs-cookie-settings-description {
        font-size: 12px;

        line-height: 1.55;
    }

    .fs-cookie-settings-option {
        padding: 13px;

        margin-bottom: 10px;
    }

    .fs-cookie-settings-option-header {
        gap: 7px;
    }

    .fs-cookie-settings-option-header h3 {
        font-size: 14px;
    }

    .fs-cookie-settings-option p {
        font-size: 12px;

        line-height: 1.5;
    }

    .fs-cookie-settings-always-active,
    .fs-cookie-settings-disabled,
    .fs-cookie-settings-enabled {
        padding: 4px 8px;

        font-size: 9px;
    }

    .fs-cookie-settings-current {
        padding: 12px;

        font-size: 11px;
    }

    .fs-cookie-settings-actions {
        margin-top: 18px;

        gap: 8px;
    }

    #fsCookieSettingsReject,
    #fsCookieSettingsAccept {
        width: 100%;

        min-height: 42px;

        padding: 0 15px;

        font-size: 12px;
    }
}


/* =========================================================
   FINAL MOBILE SAFETY
========================================================= */

@media (max-width: 767px) {

    #fsCookieSettingsButton {
        top: auto !important;

        /*
           KEEP 30PX GAP ABOVE BOTTOM MENU
        */
        bottom: 80px !important;

        padding: 0 !important;

        visibility: visible !important;

        opacity: 1 !important;

        pointer-events: auto !important;

        z-index: 2147483646 !important;
    }
}