/* Sherlock Homes - Cookie Consent
   Versione 1.1
*/

#sh-cookie-banner,
#sh-cookie-banner *,
#sh-cookie-settings {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

#sh-cookie-banner[hidden],
#sh-cookie-banner [hidden] {
    display: none !important;
}

#sh-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 720px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 0 auto;
    padding: 26px;
    background: #ffffff;
    color: #263746;
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 8px 35px rgba(0,0,0,0.20);
    z-index: 999999;
    text-align: left;
}

#sh-cookie-banner h2 {
    margin: 0 0 12px;
    padding-right: 42px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #263746;
}

#sh-cookie-banner p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
}

#sh-cookie-banner a {
    color: #245c89;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#sh-cookie-banner a:hover {
    color: #263746;
}

#sh-cookie-banner .sh-cookie-links {
    font-size: 14px;
    margin: 12px 0 16px;
}

#sh-cookie-banner button {
    appearance: none;
    cursor: pointer;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid #263746;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
    box-shadow: none;
}

#sh-cookie-banner #sh-cookie-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    background: transparent;
    color: #263746;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}

#sh-cookie-banner #sh-cookie-close:hover {
    background: #f0f2f4;
}

#sh-cookie-banner .sh-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

#sh-cookie-banner #sh-cookie-accept,
#sh-cookie-banner #sh-cookie-reject,
#sh-cookie-banner #sh-cookie-save {
    background: #263746;
    color: #ffffff;
}

#sh-cookie-banner #sh-cookie-accept,
#sh-cookie-banner #sh-cookie-reject {
    flex: 1 1 0;
}

#sh-cookie-banner #sh-cookie-accept:hover,
#sh-cookie-banner #sh-cookie-reject:hover,
#sh-cookie-banner #sh-cookie-save:hover {
    background: #354d60;
}

#sh-cookie-banner #sh-cookie-custom {
    width: 100%;
    background: #ffffff;
    color: #263746;
}

#sh-cookie-banner #sh-cookie-custom:hover {
    background: #f0f2f4;
}

#sh-cookie-options {
    padding: 16px;
    margin: 15px 0;
    background: #f5f6f7;
    border: 1px solid #e1e4e7;
    border-radius: 6px;
}

#sh-cookie-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
    cursor: pointer;
}

#sh-cookie-banner #sh-analytics-check {
    appearance: auto;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #263746;
    cursor: pointer;
}

#sh-cookie-banner #sh-cookie-status {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #fff3f3;
    color: #9c252d;
    border: 1px solid #e7c2c2;
    border-radius: 6px;
    font-size: 14px;
}

#sh-cookie-banner #sh-cookie-status:empty {
    display: none;
}

#sh-cookie-settings {
    position: fixed;
    bottom: 12px;
    left: 12px;
    z-index: 999998;
    appearance: none;
    background: #ffffff;
    color: #263746;
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 10px 12px;
    min-height: 44px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

#sh-cookie-settings:hover {
    background: #f0f2f4;
}

#sh-cookie-banner button:focus-visible,
#sh-cookie-settings:focus-visible,
#sh-cookie-banner input:focus-visible,
#sh-cookie-banner a:focus-visible,
#sh-cookie-title:focus-visible {
    outline: 3px solid #3276b1;
    outline-offset: 3px;
}

@media (max-width: 600px) {

    #sh-cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 20px;
        max-height: 80vh;
        max-height: 80dvh;
        overflow-y: auto;
    }

    #sh-cookie-banner h2 {
        font-size: 20px;
    }

    #sh-cookie-banner p {
        font-size: 14px;
    }

    #sh-cookie-banner #sh-cookie-close {
        top: 8px;
        right: 8px;
    }

    #sh-cookie-banner #sh-cookie-accept,
    #sh-cookie-banner #sh-cookie-reject {
        flex: 1 1 100%;
    }

    #sh-cookie-settings {
        bottom: 85px;
        left: 10px;
    }
}
