/*
 * Open6Hosting Consent Manager
 */

.o6h-consent,
.o6h-modal {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.o6h-consent *,
.o6h-modal * {
    box-sizing: border-box;
}

.o6h-consent[hidden],
.o6h-modal[hidden] {
    display: none !important;
}


/* ---------------------------------------------------------
   BANNER
   --------------------------------------------------------- */

.o6h-consent {
    position: fixed;
    z-index: 99999;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #d8d8d8;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.o6h-consent__inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;

    display: flex;
    align-items: center;
    gap: 40px;
}

.o6h-consent__text {
    flex: 1 1 auto;
}

.o6h-consent__text h2 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.3;
    color: #222;
}

.o6h-consent__text p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.55;
    color: #444;
}

.o6h-consent__text a {
    color: #067b29;
    text-decoration: underline;
}

.o6h-consent__more {
    font-size: 13px !important;
}

.o6h-consent__actions {
    width: 260px;
    flex: 0 0 260px;

    display: flex;
    flex-direction: column;
    gap: 9px;
}


/* ---------------------------------------------------------
   BOTONES
   --------------------------------------------------------- */

.o6h-btn {
    width: 100%;
    min-height: 44px;

    border-radius: 3px;
    border: 2px solid #087b2c;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    padding: 10px 18px;
}

.o6h-btn--primary {
    background: #087b2c;
    color: #fff;
}

.o6h-btn--primary:hover,
.o6h-btn--primary:focus {
    background: #066322;
    border-color: #066322;
}

.o6h-btn--secondary {
    background: #fff;
    color: #222;
}

.o6h-btn--secondary:hover,
.o6h-btn--secondary:focus {
    background: #f2f2f2;
}

.o6h-btn:focus-visible,
.o6h-switch input:focus-visible + .o6h-slider {
    outline: 3px solid rgba(8, 123, 44, 0.35);
    outline-offset: 2px;
}


/* ---------------------------------------------------------
   MODAL
   --------------------------------------------------------- */

.o6h-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.o6h-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.o6h-modal__box {
    position: relative;
    z-index: 1;

    width: min(650px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;

    background: #fff;

    border-radius: 5px;

    padding: 30px;

    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.3);
}

.o6h-modal__box h2 {
    margin: 0 40px 12px 0;
    color: #222;
}

.o6h-modal__box > p {
    font-size: 14px;
    line-height: 1.55;
    color: #444;
}

.o6h-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;

    border: 0;
    background: transparent;

    font-size: 30px;
    line-height: 1;

    color: #444;
    cursor: pointer;
}


/* ---------------------------------------------------------
   CATEGORÍAS
   --------------------------------------------------------- */

.o6h-category {
    margin-top: 15px;
    padding: 17px 0;

    border-top: 1px solid #ddd;
}

.o6h-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 25px;
}

.o6h-category h3 {
    margin: 0 0 5px;

    font-size: 16px;

    color: #222;
}

.o6h-category p {
    margin: 0;

    font-size: 13px;
    line-height: 1.45;

    color: #555;
}


/* ---------------------------------------------------------
   SWITCH
   --------------------------------------------------------- */

.o6h-switch {
    position: relative;

    display: inline-block;

    width: 50px;
    height: 28px;

    flex: 0 0 50px;
}

.o6h-switch input {
    opacity: 0;

    width: 0;
    height: 0;
}

.o6h-slider {
    position: absolute;

    cursor: pointer;

    inset: 0;

    background-color: #aaa;

    border-radius: 28px;

    transition: 0.2s;
}

.o6h-slider::before {
    content: "";

    position: absolute;

    height: 22px;
    width: 22px;

    left: 3px;
    bottom: 3px;

    background: white;

    border-radius: 50%;

    transition: 0.2s;
}

.o6h-switch input:checked + .o6h-slider {
    background-color: #087b2c;
}

.o6h-switch input:checked + .o6h-slider::before {
    transform: translateX(22px);
}

.o6h-switch--disabled .o6h-slider {
    opacity: 0.7;
    cursor: default;
}


/* ---------------------------------------------------------
   ACCIONES MODAL
   --------------------------------------------------------- */

.o6h-modal__actions {
    margin-top: 25px;

    display: flex;
    gap: 10px;
}


/* ---------------------------------------------------------
   GOOGLE MAPS
   --------------------------------------------------------- */

.o6h-external-placeholder {
    display: flex;

    min-height: 350px;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: #f5f5f5;

    border: 1px solid #ddd;

    text-align: center;
}

.o6h-external-placeholder__content {
    max-width: 480px;
}

.o6h-external-placeholder h3 {
    margin: 0 0 10px;

    font-size: 18px;
}

.o6h-external-placeholder p {
    margin: 0 0 18px;

    line-height: 1.5;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 800px) {

    .o6h-consent__inner {
        width: calc(100% - 30px);

        flex-direction: column;

        align-items: stretch;

        gap: 18px;

        padding: 20px 0;
    }

    .o6h-consent__actions {
        width: 100%;
        flex: none;
    }

    .o6h-modal__box {
        padding: 25px 20px;
    }

    .o6h-modal__actions {
        flex-direction: column;
    }
}
