/* GDPR Cookie overlay backdrop */
#gdprcookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    backdrop-filter: blur(4px);
}

/* Prevent page scroll while consent dialog is open */
body.gdpr-active {
    overflow: hidden;
}

/* GDPR Cookie dialog */
.gdprcookie {
    width: 90%;
    max-width: 700px;
    border-radius: 16px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    padding: 48px;
    z-index: 99999;
    background: #ffffff;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
    color: #2e0547;
}

.gdprcookie-intro {
    color: #2e0547;
    margin-bottom: 32px;
}

.gdprcookie h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Euclid Circular B', 'Montserrat', sans-serif;
    color: #2e0547;
}

.gdprcookie h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    color: #2e0547;
}

.gdprcookie span {
    line-height: 1.6;
    color: #555555;
    display: block;
    margin-bottom: 8px;
}

.gdprcookie a {
    color: #ee5586;
    text-decoration: none;
    font-weight: 600;
}

.gdprcookie a:hover {
    color: #ff5a5b;
}


/* GDPR Cookie buttons */

.gdprcookie-buttons {
    clear: both;
    width: 100%;
    text-align: center;
    margin-top: 28px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    flex-wrap: nowrap;
}

.gdprcookie-buttons button {
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    margin-right: 0 !important;
    color: #fff !important;
    border: 2px solid transparent;
    cursor: pointer;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    transition: all 300ms ease;
    flex: 1;
    white-space: nowrap;
    width: 100%;
}

.gdprcookie-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gdprcookie-buttons button:active {
    transform: translateY(0);
}

.gdprcookie-buttons button:disabled {
    color: rgba(255,255,255,.5);
}

/* Accept All button - PRIMARY */
.gdprcookie-buttons .gdpr-btn-accept {
    background: linear-gradient(135deg, #6840db 0%, #5939b4 100%);
    box-shadow: 0 4px 12px rgba(104, 64, 219, 0.35);
}

.gdprcookie-buttons .gdpr-btn-accept:hover {
    background: linear-gradient(135deg, #5939b4 0%, #4a2fa0 100%);
    box-shadow: 0 8px 24px rgba(104, 64, 219, 0.45);
}

/* Manage Choices button - SECONDARY */
.gdprcookie-buttons .gdpr-btn-manage {
    background-color: #f5f5f5 !important;
    color: #2e0547 !important;
    border: 2px solid #e0e0e0;
    font-weight: 500;
}

.gdprcookie-buttons .gdpr-btn-manage:hover {
    background-color: #efefef !important;
    border-color: #6840db;
    color: #6840db !important;
    box-shadow: 0 4px 12px rgba(104, 64, 219, 0.15);
}

/* Reject Non-Essential button - SECONDARY */
.gdprcookie-buttons .gdpr-btn-reject {
    background-color: transparent !important;
    color: #2e0547 !important;
    border: 2px solid #2e0547;
    font-weight: 500;
}

.gdprcookie-buttons .gdpr-btn-reject:hover {
    background-color: #2e0547 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(46, 5, 71, 0.2);
}

/* Save Choices button in manage modal */
.gdprcookie-save-choices {
    margin-top: 28px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.gdprcookie-save-choices button {
    background: linear-gradient(135deg, #6840db 0%, #5939b4 100%);
    color: #fff !important;
    padding: 14px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(104, 64, 219, 0.35);
    border: none;
}

.gdprcookie-save-choices button:hover {
    background: linear-gradient(135deg, #5939b4 0%, #4a2fa0 100%);
    box-shadow: 0 8px 24px rgba(104, 64, 219, 0.45);
}


/* GDPR Cookie types */
.gdprcookie-types {
    padding-top: 24px;
    background-color: #fafafa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 0;
}

.gdprcookie-types h2 {
    margin-bottom: 12px;
    color: #2e0547;
}

.gdprcookie-types p {
    margin-bottom: 20px;
    color: #555555;
    font-size: 14px;
}

.gdprcookie-types ul {
    display: flex;
    flex-direction: row;
    padding: 0;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
}

.gdprcookie-types li {
    display: block;
    list-style: none;
    float: left;
    padding: 0;
    margin: 0;
    flex: 1;
    min-width: 120px;
}


/* Custom Checkbox */
.gdprcookie-types ul li {
    display: flex;
    cursor: pointer;
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
}

/* Hide the browser's default checkbox */
.gdprcookie-types ul li input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.gdprcookie-types ul li input:before {
    margin-right: 30px;
}

/* Create a custom checkbox */
.gdprcookie-types ul li label {
    border: 2px solid #e0e0e0;
    background-color: #ffffff;
    color: #2e0547;
    border-radius: 6px;
    position: relative;
    top: 0;
    left: 0;
    margin: 0px;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    box-sizing: border-box;
    font-weight: 500;
    font-size: 13px;
    transition: all 300ms ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    flex-direction: column;
}

.gdprcookie-types ul li label:hover {
    border-color: #3ab795;
    background-color: #f0fdf9;
}

/* Create the checkmark/indicator (hidden when not checked) */
.gdprcookie-types ul li label:after {
    content: "";
    position: absolute;
    display: none;
}

label:before {
    margin-right: 20px;
}

/* When the checkbox is checked */
.gdprcookie-types ul li input:checked ~ label {
    background: linear-gradient(135deg, #3ab795 0%, #2a9f7f 100%);
    border: 2px solid #2a9f7f;
    color: #fff;
    cursor: pointer;
}

.gdprcookie-types ul li input:checked ~ label:hover {
    background: linear-gradient(135deg, #2a9f7f 0%, #1d896d 100%);
    border-color: #1d896d;
}

/* When the checkbox is disabled (essential) */
.gdprcookie-types ul li input:disabled ~ label {
    background: linear-gradient(135deg, #66d978 0%, #4caf50 100%);
    border: 2px solid #4caf50;
    color: #fff;
    cursor: no-drop;
    opacity: 0.9;
}

/* Show the checkmark when checked */
.gdprcookie-types ul li input:checked ~ label:after {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    content: "✓";
    background: white;
    color: #2a9f7f;
    border-radius: 50%;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    padding: 0;
    border: 2px solid #2a9f7f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style the checkmark/indicator */
.gdprcookie-types ul li label:after {
    right: 12px;
    top: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    transform: none;
    -webkit-transform: none;
    -ms-transform: none;
    display: none;
}

@media (max-width: 1050px) {
    .gdprcookie-intro {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .gdprcookie {
        width: 94%;
        padding: 32px 24px;
        max-width: 600px;
    }

    .gdprcookie h1 {
        font-size: 24px;
    }

    .gdprcookie-types {
        padding: 20px;
    }

    .gdprcookie-types ul {
        flex-direction: column;
        gap: 12px;
    }

    .gdprcookie-types ul li {
        margin-top: 0;
        min-width: unset;
    }

    .gdprcookie-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .gdprcookie-buttons button {
        width: 100%;
    }

    .gdprcookie-save-choices {
        margin-top: 20px;
        padding-top: 16px;
    }
}
