/* Cookieman - vanilla theme, no Bootstrap/jQuery. Reuses this project's own
   .card / .btn-green / .btn-border classes from style.css for visual consistency. */

.cookieman-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(28, 28, 28, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookieman-overlay[hidden] {
    display: none;
}

.cookieman-dialog {
    max-width: 640px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 0;
}

.cookieman-dialog__header {
    font-size: 20px;
    font-weight: 500;
    color: #43745c;
    padding: 24px 30px 0;
}

.cookieman-dialog__body {
    padding: 16px 30px;
}

.cookieman-dialog__intro {
    font-size: 15px;
    line-height: 24px;
    color: #1c1c1c;
    margin: 0 0 16px;
}

.cookieman-dialog__intro a {
    color: #43745c;
    text-decoration: underline;
}

.cookieman-dialog__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 30px 24px;
    border-top: 1px solid #ecece6;
}

.cookieman-settings > summary,
details.cookieman-acc > summary {
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    padding: 12px 0;
}

.cookieman-settings > summary::-webkit-details-marker,
details.cookieman-acc > summary::-webkit-details-marker {
    display: none;
}

.cookieman-settings > summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 8px;
    color: #43745c;
    transition: transform 0.2s;
}

.cookieman-settings[open] > summary::before {
    transform: rotate(90deg);
}

.cookieman-settings {
    border-top: 1px solid #ecece6;
    margin-top: 8px;
}

details.cookieman-acc {
    border-bottom: 1px solid #ecece6;
}

details.cookieman-acc > summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 8px;
    color: #43745c;
    transition: transform 0.2s;
}

details.cookieman-acc[open] > summary::before {
    transform: rotate(90deg);
}

.cookieman-acc__body {
    padding: 0 0 16px;
}

.cookieman-acc__desc {
    font-size: 14px;
    line-height: 20px;
    color: #555;
    margin: 8px 0;
}

.cookieman-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f6f6f4;
    border-radius: 8px;
    padding: 12px 14px;
}

.cookieman-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #43745c;
    flex: none;
}

.cookieman-checkbox-row label {
    font-size: 14px;
    font-weight: 500;
    color: #1c1c1c;
}

.cookieman-dnt-message {
    font-size: 13px;
    color: #8b6508;
    background: #fdf6e3;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.cookieman-table-wrap {
    overflow-x: auto;
    margin-top: 10px;
}

.cookieman-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cookieman-table th,
.cookieman-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #ecece6;
    vertical-align: top;
}

.cookieman-table th {
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.4px;
}

.cookieman-btn-save {
    margin-top: 16px;
}

.cookieman-dialog__footer .btn-green,
.cookieman-dialog__footer .btn-border,
.cookieman-btn-save {
    border: none;
    cursor: pointer;
    font-family: inherit;
}
