/* ============================================================
   Cookie-Consent Modal — Lausitzer Golfclub
   Standalone, no Bootstrap dependency.
   ============================================================ */

/* Backdrop */
#cookieman-modal.lgc-cm {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', Arial, sans-serif;
}
#cookieman-modal.lgc-cm.lgc-cm-open {
    display: flex;
}
body.lgc-cm-scroll-lock {
    overflow: hidden;
}

/* Dialog box */
.lgc-cm-dialog {
    background: #fff;
    border-radius: 4px;
    width: 100%;
    max-width: 620px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
}

/* Header */
.lgc-cm-header {
    background: linear-gradient(to bottom, #999, #000);
    padding: 14px 20px;
    border-radius: 4px 4px 0 0;
    flex-shrink: 0;
}
.lgc-cm-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

/* Body */
.lgc-cm-body {
    padding: 18px 20px 14px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #222;
}
.lgc-cm-intro {
    margin: 0 0 14px;
}
.lgc-cm-intro a {
    color: #1b5c18;
    text-decoration: underline;
}

/* Settings collapsible */
.lgc-cm-settings-details {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}
.lgc-cm-settings-toggle {
    cursor: pointer;
    font-size: 0.85rem;
    color: #1b5c18;
    font-weight: 600;
    list-style: none;
    user-select: none;
    padding: 4px 0;
}
.lgc-cm-settings-toggle::-webkit-details-marker { display: none; }
.lgc-cm-settings-toggle::before {
    content: '▶ ';
    font-size: 0.7em;
    transition: transform 0.2s;
    display: inline-block;
}
.lgc-cm-settings-details[open] > .lgc-cm-settings-toggle::before {
    transform: rotate(90deg);
}

/* Cookie groups */
.lgc-cm-form {
    margin-top: 12px;
}
.lgc-cm-group {
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fafafa;
}
.lgc-cm-group-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.lgc-cm-group-check input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1b5c18;
}
.lgc-cm-group-check input:disabled {
    opacity: 0.6;
    cursor: default;
}
.lgc-cm-group-desc {
    margin: 8px 0 8px 24px;
    font-size: 0.8rem;
    color: #555;
}
.lgc-cm-dnt {
    margin: 4px 0 0 24px;
    font-size: 0.8rem;
    color: #888;
}

/* Cookie table */
.lgc-cm-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}
.lgc-cm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.lgc-cm-table th,
.lgc-cm-table td {
    border: 1px solid #ddd;
    padding: 5px 8px;
    text-align: left;
    vertical-align: top;
}
.lgc-cm-table th {
    background: #f0f0f0;
    font-weight: 600;
    white-space: nowrap;
}

/* Footer buttons */
.lgc-cm-footer {
    padding: 14px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: #f7f7f7;
    border-radius: 0 0 4px 4px;
}
.lgc-cm-btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.lgc-cm-btn:hover {
    opacity: 0.85;
}
.lgc-cm-btn-deny {
    background: #888;
    color: #fff;
}
.lgc-cm-btn-save {
    background: #e0e0e0;
    color: #333;
}
.lgc-cm-btn-accept {
    background: linear-gradient(to bottom, #2e6b28, #1b5c18);
    color: #fff;
}

/* ============================================================
   YouTube consent placeholder
   ============================================================ */
.lgc-yt-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #ccc;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    min-height: 180px;
    width: 100%;
}
.lgc-yt-placeholder p {
    margin: 0 0 12px;
    max-width: 320px;
    line-height: 1.4;
}
.lgc-yt-placeholder button {
    background: linear-gradient(to bottom, #2e6b28, #1b5c18);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.lgc-yt-placeholder button:hover {
    opacity: 0.85;
}

/* Mobile */
@media (max-width: 480px) {
    #cookieman-modal.lgc-cm {
        padding: 10px;
        align-items: flex-start;
    }
    .lgc-cm-footer {
        flex-direction: column;
    }
    .lgc-cm-btn {
        width: 100%;
        text-align: center;
    }
}
