/* Modal and layout specific for FSE */
.gp-cookies-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.gp-cookies-modal-inside {
    background: var(--wp--preset--color--base, #fff);
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--wp--preset--color--contrast);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    position: relative;
    border-radius: 0px;

    @media (max-width: 768px) {
        width: 85%;
        padding: 1.5rem;
    }
}

.gp-cookies-modal-inside h2 {
    font-family: var(--wp--preset--font-family--rubik);
    font-size: 32px; /* Matches h3 in theme.json for better balance */
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--wp--preset--color--contrast);
}

.gp-cookies-modal-inside p {
    margin: 0 0 1.2rem;
    line-height: 1.4; /* Matches theme.json typography */
    font-family: var(--wp--preset--font-family--work-sans);
}

.gp-cookies-modal-bt-row {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.gp-cookies-modal-yes,
.gp-cookies-modal-no {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 0px; /* Aligned with theme.json button radius */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gp-cookies-modal-yes {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
}

.gp-cookies-modal-yes:hover {
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
}

.gp-cookies-modal-no {
    background-color: var(--wp--preset--color--tertiary);
    color: var(--wp--preset--color--contrast);
}

.gp-cookies-modal-no:hover {
    background-color: var(--wp--preset--color--accent-4);
    color: var(--wp--preset--color--base);
}

[x-cloak] { display: none !important; }

