/* Aviso de cookies — Gerimedical · @spec SPEC-004 */

.gmc-root {
    font-family: inherit;
}

.gmc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #1c2b36;
    color: #ffffff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
}

.gmc-banner__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.gmc-banner__text {
    flex: 1 1 520px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
}

.gmc-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.gmc-btn {
    font: inherit;
    font-size: 14px;
    line-height: 1;
    padding: 12px 18px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.gmc-btn--link {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, .55);
}

.gmc-btn--link:hover,
.gmc-btn--link:focus {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}

.gmc-btn--accept {
    background: #2392c5;
    border-color: #2392c5;
    color: #ffffff;
}

.gmc-btn--accept:hover,
.gmc-btn--accept:focus {
    background: #1b779f;
    border-color: #1b779f;
    color: #ffffff;
}

.gmc-btn--reject {
    background: #ffffff;
    border-color: #ffffff;
    color: #1c2b36;
}

.gmc-btn--reject:hover,
.gmc-btn--reject:focus {
    background: #e6e6e6;
    border-color: #e6e6e6;
}

.gmc-btn--save {
    background: #2392c5;
    border-color: #2392c5;
    color: #ffffff;
}

/* Panel */

.gmc-panel {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.gmc-panel__box {
    background: #ffffff;
    color: #2b2b2b;
    width: 100%;
    max-width: 620px;
    border-radius: 6px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    max-height: 90vh;
    overflow-y: auto;
}

.gmc-panel__title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
    color: #1c2b36;
}

.gmc-panel__intro,
.gmc-panel__note {
    font-size: 13px;
    line-height: 1.55;
    color: #4a4a4a;
    margin: 0 0 16px;
}

.gmc-panel__note a {
    color: #1b779f;
    text-decoration: underline;
}

.gmc-panel__global {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.gmc-panel__global .gmc-btn--reject {
    background: #ffffff;
    border-color: #1c2b36;
    color: #1c2b36;
}

.gmc-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    border-top: 1px solid #e6e6e6;
}

.gmc-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #e6e6e6;
}

.gmc-item__info strong {
    display: block;
    font-size: 14px;
    color: #1c2b36;
    margin-bottom: 3px;
}

.gmc-item__desc {
    display: block;
    font-size: 12.5px;
    line-height: 1.45;
    color: #666666;
}

/* Interruptor */

.gmc-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
    margin-top: 2px;
}

.gmc-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.gmc-switch__slider {
    position: absolute;
    inset: 0;
    background: #c9c9c9;
    border-radius: 999px;
    transition: background-color .15s ease;
}

.gmc-switch__slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform .15s ease;
}

.gmc-switch input:checked + .gmc-switch__slider {
    background: #2392c5;
}

.gmc-switch input:checked + .gmc-switch__slider::before {
    transform: translateX(20px);
}

.gmc-switch input:disabled + .gmc-switch__slider {
    background: #9aa5ad;
    cursor: not-allowed;
}

.gmc-panel__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.gmc-panel__actions .gmc-btn--link {
    color: #1c2b36;
    border-color: #c9c9c9;
}

.gmc-panel__actions .gmc-btn--link:hover {
    background: #f2f2f2;
    color: #1c2b36;
}

/* Enlace del pie */

.gmc-footer-link {
    text-align: center;
    padding: 8px 0 14px;
}

.gmc-footer-link a {
    font-size: 13px;
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .gmc-banner__inner {
        padding: 14px 16px;
    }

    .gmc-banner__actions {
        width: 100%;
    }

    .gmc-banner__actions .gmc-btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .gmc-panel__box {
        padding: 20px;
    }
}
