.ocm-banner,
.ocm-modal {
    font-family: inherit;
    z-index: 9999;
}

.ocm-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 940px;
    background: white;
    color: black;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    display: none;
}

.ocm-banner.is-visible {
    display: block;
}

.ocm-banner__content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ocm-banner__text {
    flex: 1;
}

.ocm-banner__text p {
    margin: 6px 0 0;
    color: #333333;
}

.ocm-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ocm-btn {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    padding: 10px 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ocm-btn:hover {
    opacity: 0.8;
}

.ocm-btn--ghost {
    background: white!important;
    color: black;
    border: 1px solid #6b7280;
}

.ocm-btn--ghost:hover {
    border-color: #fff;
    background-color: grey!important;
}

.ocm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ocm-modal.is-visible {
    display: flex;
}

.ocm-modal__dialog {
    background: #fff;
    color: #111827;
    max-width: 680px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.ocm-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ocm-modal__body {
    padding: 16px 20px;
    overflow-y: auto;
    gap: 12px;
    display: grid;
    grid-template-columns: 1fr;
}

.ocm-option {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ocm-option__info p {
    margin: 6px 0 0;
    color: #4b5563;
}

.ocm-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ocm-switch input {
    display: none;
}

.ocm-switch__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #545a64;
    transition: 0.2s;
    border-radius: 34px;
}

.ocm-switch__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ocm-switch input:checked + .ocm-switch__slider {
    background-color: green;
}

.ocm-switch input:checked + .ocm-switch__slider:before {
    transform: translateX(20px);
}

.ocm-modal__footer {
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ocm-modal__footer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ocm-modal__close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.ocm-manage {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #111827 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='M12 3a9 9 0 00-4.5 16.8 9 9 0 0011.3-3.2A9 9 0 0012 3zm-2 7.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM12 15.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0z'/%3E%3C/svg%3E") center/24px no-repeat!important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-indent: -9999px;
    overflow: hidden;
}

.ocm-manage:hover {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.ocm-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .ocm-option {
        padding: 12px 40px 12px 12px;
    }
    .ocm-manage {
        left: 15px;
        right: auto;
    }
    .ocm-banner__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .ocm-banner {
        bottom: 10px;
    }

    .ocm-modal__dialog {
        max-height: 100vh;
    }
}

