.as-legal-admin,
.as-legal-front,
.as-legal-page {
    color: #1f2933;
    font-family: Arial, sans-serif;
}

.as-legal-head,
.as-legal-box,
.as-legal-row {
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 16px;
}

.as-legal-head h3,
.as-legal-box h3 {
    margin: 0 0 8px;
}

.as-legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
}

.as-legal-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.as-legal-nav {
    border: 1px solid #d8dee6;
    color: #1f2933;
    display: block;
    margin-bottom: 8px;
    padding: 10px 12px;
    text-decoration: none;
}

.as-legal-nav.active {
    background: #1f6f8b;
    border-color: #1f6f8b;
    color: #fff;
}

.as-legal-form label {
    display: block;
    font-weight: 700;
    margin: 10px 0;
}

.as-legal-form input[type="text"],
.as-legal-form input[type="number"],
.as-legal-form textarea,
.as-legal-form select {
    border: 1px solid #c8d1dc;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    margin-top: 5px;
    padding: 8px;
    width: 100%;
}

.as-legal-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, 2fr) minmax(90px, 1fr) minmax(180px, 1.5fr);
}

.as-legal-check {
    align-items: center;
    display: inline-flex !important;
    gap: 8px;
    margin-right: 16px !important;
}

.as-legal-button,
.as-legal-cookie button {
    background: #1f6f8b;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 14px;
}

.as-legal-button-danger {
    background: #b42318;
}

.as-legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.as-legal-cookie button:first-child {
    background: #394b59;
}

.as-legal-message {
    border-radius: 4px;
    margin: 10px 0;
    padding: 10px;
}

.as-legal-message-info {
    background: #e8f4fb;
    border: 1px solid #b7d7ea;
}

.as-legal-message-error {
    background: #fff1f1;
    border: 1px solid #efb2b2;
}

.as-legal-module-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.as-legal-module-row {
    align-items: center;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    padding: 12px;
}

.as-legal-module-row span {
    color: #52606d;
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.as-legal-module-cookie {
    background: #f8fafc;
}

.as-legal-note,
.as-legal-shortcode,
.as-legal-empty {
    color: #52606d;
}

.as-legal-editor {
    border: 1px solid #d8dee6;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.as-legal-editor summary {
    cursor: pointer;
}

.as-legal-editor summary span {
    color: #52606d;
    margin-left: 10px;
}

.as-legal-editor .trumbowyg-box,
.as-legal-editor .trumbowyg-editor,
.as-legal-editor .ck.ck-editor {
    width: 100%;
}

.as-legal-editor .trumbowyg-box,
.as-legal-editor .ck.ck-editor {
    margin-top: 8px;
}

.as-legal-editor .trumbowyg-editor,
.as-legal-editor .ck-editor__editable_inline {
    min-height: 280px;
}

.as-legal-page {
    margin: 0 auto;
    max-width: 900px;
    padding: 24px 16px;
}

.as-legal-text {
    line-height: 1.65;
}

.as-legal-text table {
    border-collapse: collapse;
    margin: 14px 0;
    width: 100%;
}

.as-legal-text th,
.as-legal-text td {
    border: 1px solid #c8d1dc;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.as-legal-text th {
    background: #f4f7fb;
    font-weight: 700;
}

.as-legal-footer-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 14px 8px;
}

.as-legal-footer-links a {
    color: inherit;
    text-decoration: underline;
}

.as-legal-cookie {
    background: rgba(15, 23, 42, 0.55);
    bottom: 0;
    left: 0;
    padding: 16px;
    position: fixed;
    right: 0;
    z-index: 9999;
}

.as-legal-cookie-inline {
    background: transparent;
    padding: 16px 0;
    position: static;
}

.as-legal-cookie-box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
    margin: 0 auto;
    max-width: 760px;
    padding: 18px;
}

.as-legal-cookie-box h3 {
    margin: 0 0 8px;
}

.as-legal-cookie-options {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.as-legal-cookie-option {
    align-items: flex-start;
    border: 1px solid #d8dee6;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    padding: 10px;
}

.as-legal-cookie-option small {
    color: #52606d;
    display: block;
    margin-top: 3px;
}

.as-legal-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .as-legal-layout,
    .as-legal-grid,
    .as-legal-module-row {
        grid-template-columns: 1fr;
    }
}

.as-legal-cookie-saved {
    margin: 10px 0;
    padding: 8px 10px;
    border-radius: 6px;
    background: #e7f7e7;
    border: 1px solid #9ad29a;
    color: #245f24;
    font-weight: 600;
}

.as-legal-frontend-info {
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    background: #f4f7fb;
    border: 1px solid #d8e2ef;
}

.as-legal-frontend-info input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
}
