#local-cookieconsent-root {
    --local-cookieconsent-primary: #921f1d;
    position: relative;
    z-index: 99999;
}
.local-cookieconsent-banner {
    position: fixed;
    z-index: 99999;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .22);
    padding: 1.25rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.local-cookieconsent-bottom {left: 0; right: 0; bottom: 0;}
.local-cookieconsent-center {left: 50%; top: 50%; width: min(760px, calc(100% - 2rem)); transform: translate(-50%, -50%); border-radius: .75rem;}
.local-cookieconsent-copy {max-width: 760px;}
.local-cookieconsent-copy h2 {
    font-size: 1.25rem;
    margin: 0 0 .4rem;
    color: #f5a623;
    font-weight: 800;
}
.local-cookieconsent-copy p {margin: 0 0 .35rem;}
.local-cookieconsent-actions {display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end;}
.local-cookieconsent-btn {border: 2px solid var(--local-cookieconsent-primary); border-radius: .35rem; padding: .65rem 1rem; font-weight: 700; cursor: pointer; min-height: 44px;}
.local-cookieconsent-reject, .local-cookieconsent-configure {background: #fff; color: var(--local-cookieconsent-primary);}
.local-cookieconsent-accept, .local-cookieconsent-save {background: var(--local-cookieconsent-primary); color: #fff;}
.local-cookieconsent-overlay {position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 100000;}
.local-cookieconsent-modal {position: fixed; z-index: 100001; width: min(680px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: #1f2937; padding: 1.5rem; border-radius: .75rem; box-shadow: 0 14px 50px rgba(0, 0, 0, .35);}
.local-cookieconsent-close {position: absolute; right: .75rem; top: .5rem; border: 0; background: transparent; font-size: 2rem; cursor: pointer;}
.local-cookieconsent-category {display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #ddd;}
.local-cookieconsent-category p {margin: .25rem 0 0;}
.local-cookieconsent-switch input {position: absolute; opacity: 0;}
.local-cookieconsent-switch span {display: block; width: 48px; height: 26px; border-radius: 999px; background: #777; position: relative; cursor: pointer;}
.local-cookieconsent-switch span::after {content: ''; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; background: #fff; border-radius: 50%; transition: .2s;}
.local-cookieconsent-switch input:checked + span {background: var(--local-cookieconsent-primary);}
.local-cookieconsent-switch input:checked + span::after {transform: translateX(22px);}
.local-cookieconsent-switch input:disabled + span {opacity: .7; cursor: not-allowed;}
.local-cookieconsent-save {margin-top: 1.25rem; width: 100%;}
.local-cookieconsent-manage {
    position: fixed;
    z-index: 99998;
    right: 1rem;
    bottom: 1rem;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #164194;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .32);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.local-cookieconsent-manage:hover,
.local-cookieconsent-manage:focus-visible {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .38);
    outline: 3px solid rgba(245, 166, 35, .35);
    outline-offset: 2px;
}
.local-cookieconsent-manage img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.local-cookieconsent-placeholder {display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; padding: 1rem; text-align: center; border: 2px dashed #aaa; background: #f5f5f5;}
@media (max-width: 760px) {
    .local-cookieconsent-banner {flex-direction: column; align-items: stretch;}
    .local-cookieconsent-actions {justify-content: stretch;}
    .local-cookieconsent-actions .local-cookieconsent-btn {flex: 1 1 100%;}
}
@media (prefers-reduced-motion: reduce) {
    .local-cookieconsent-switch span::after {transition: none;}
}

/* Modal title: override Moodle theme heading colours. */
#local-cookieconsent-root .local-cookieconsent-modal #local-cookieconsent-modal-title,
#local-cookieconsent-root .local-cookieconsent-modal h2 {
    color: #f5a623 !important;
    opacity: 1 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}


/* Banner title: hard override for Moove and Bootstrap theme rules. */
html body #local-cookieconsent-root .local-cookieconsent-banner .local-cookieconsent-copy #local-cookieconsent-title {
    color: #f5a623 !important;
    -webkit-text-fill-color: #f5a623 !important;
    opacity: 1 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    background: transparent !important;
}


.local-cookieconsent-policy {
    max-width: 1050px;
    margin: 0 auto;
    padding: 1.5rem;
}
.local-cookieconsent-policy table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
}
.local-cookieconsent-policy th,
.local-cookieconsent-policy td {
    border: 1px solid #d8dee6;
    padding: .65rem;
    vertical-align: top;
}
.local-cookieconsent-policy th {
    background: #f4f6f8;
    font-weight: 700;
}
.local-cookieconsent-policy h2,
.local-cookieconsent-policy h3 {
    color: #f5a623;
}
@media (max-width: 700px) {
    .local-cookieconsent-policy {padding: 1rem;}
    .local-cookieconsent-policy table {display: block; overflow-x: auto;}
}

.local-cookieconsent-modal-policy {
    margin: 1rem 0;
    text-align: center;
}

.local-cookieconsent-modal-policy a {
    color: #e68a00;
    font-weight: 600;
    text-decoration: underline;
}

.local-cookieconsent-modal-policy a:focus,
.local-cookieconsent-modal-policy a:hover {
    color: #b96f00;
}

.local-cookieconsent-manage img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
