/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Banner */
#occ-banner {
    position: fixed;
    width: 100%;
    padding: 15px;
    z-index: 99999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px -5px 10px #00000050;
}
.occ-banner-text {
    font-size: 16px;
}
.occ-banner-text p {
    margin: 0;
}
.occ-banner-buttons {
    min-width: 40%;
    text-align: end;
    display: flex;
    gap: 10px;
    justify-content: right;
}

/* Modal */
.occ-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}
.occ-modal.active {
    display: flex;
}
.occ-modal-content {
    background: white;
    padding: 25px;
    max-width: 650px;
    width: 90%;
    border-radius: 8px;
    margin: 10px;
}
.occ-modal-header {
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto;
}
.occ-modal-description {
    font-size: 16px;
    margin: 0 auto 20px auto;
}
.occ-category {
    border-top: solid 1px #ccc;
    padding: 20px 5px;
}
.occ-category-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.occ-category-block:nth-child(1) {
    margin-bottom: 10px;
}
.occ-category-header {
    font-size: 17px;
    font-weight: bold;
}
.occ-category-description {
    font-size: 16px;
}
.occ-modal-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
}
.occ-modal-buttons-block {
    display: flex;
    gap: 10px;
}


/* Buttons */
.occ-btn {
    padding: 8px 15px;
    border: none;
    background: #1976d2;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}
.occ-btn:hover {
    background: #0f5aa6;
}

/* Toggle Switch */
.occ-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.occ-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.occ-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.occ-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

/* When checked */
.occ-switch input:checked + .occ-slider {
    background-color: #1976d2;
}

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

/* Disabled */
.occ-switch input:disabled + .occ-slider {
    background-color: #999;
    cursor: not-allowed;
}


@media (max-width: 1024px) {
    .occ-modal-content {
        overflow: scroll;
        max-height: calc(100% - 100px);
    }
    #occ-banner {
        flex-direction: column;
        gap: 30px;
    }
    .occ-banner-text {
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .occ-banner-buttons {
        flex-direction: column;
    }
    .occ-modal-buttons {
        flex-direction: column;
    }
}