.nanito-cookie,
.nanito-cookie-modal {
    font-family: inherit;
    color: #111827;
}

.nanito-cookie[hidden],
.nanito-cookie-modal[hidden],
.nanito-cookie-floating[hidden] {
    display: none !important;
}

.nanito-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999999;
}

.nanito-cookie__box {
    max-width: 1180px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nanito-cookie__content {
    flex: 1;
}

.nanito-cookie__title {
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 8px;
    font-weight: 700;
}

.nanito-cookie__text {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.nanito-cookie__link {
    font-size: 14px;
    text-decoration: underline;
    color: #111827;
}

.nanito-cookie__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nanito-cookie__btn {
    border: 1px solid transparent;
    border-radius: 0;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.nanito-cookie__btn--primary {
    background: #111827;
    color: #ffffff;
}

.nanito-cookie__btn--primary:hover {
    background: #000000;
}

.nanito-cookie__btn--secondary {
    background: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

.nanito-cookie__btn--secondary:hover {
    background: #f9fafb;
}

.nanito-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
}

.nanito-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
}

.nanito-cookie-modal__dialog {
    position: relative;
    width: calc(100% - 32px);
    max-width: 640px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 24px auto;
    background: #ffffff;
    border-radius: 0;
    padding: 26px;
    box-shadow: 0 20px 70px rgba(15, 23, 42, 0.28);
}

.nanito-cookie-modal__title {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 800;
}

.nanito-cookie-modal__close {
    position: absolute;
    right: 18px;
    top: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 30px;
    cursor: pointer;
    border-radius: 0;
}

.nanito-cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid #e5e7eb;
}

.nanito-cookie-option p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
}

.nanito-cookie-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.nanito-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    min-width: 52px;
    height: 30px;
}

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

.nanito-switch span {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    transition: 0.2s;
    border-radius: 0;
}

.nanito-switch span:before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 4px;
    top: 4px;
    background: #ffffff;
    transition: 0.2s;
    border-radius: 0;
}

.nanito-switch input:checked + span {
    background: #111827;
}

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

.nanito-switch input:disabled + span {
    opacity: 0.65;
    cursor: not-allowed;
}

.nanito-cookie-floating {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 999998;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    border-radius: 0;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nanito-cookie__box {
        display: block;
        padding: 18px;
    }

    .nanito-cookie__actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .nanito-cookie__btn {
        width: 100%;
    }

    .nanito-cookie-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nanito-cookie-option {
        align-items: flex-start;
    }
}