/* WP Cookie Consent - Frontend styles */
:root {
    --wpcc-primary: #2563eb;
    --wpcc-bg:      #ffffff;
    --wpcc-text:    #1f2937;
    --wpcc-radius:  14px;
    --wpcc-shadow:  0 8px 40px rgba(0,0,0,.18);
}

/* Overlay */
#wpcc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999997;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Banner */
#wpcc-banner {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999998;
    padding: 12px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#wpcc-banner[data-pos='bottom'] { bottom: 0; }
#wpcc-banner[data-pos='top']    { top: 0; }
#wpcc-banner[data-pos='bottom-left']  { bottom: 16px; left: 16px; right: auto; max-width: 420px; }
#wpcc-banner[data-pos='bottom-right'] { bottom: 16px; right: 16px; left: auto; max-width: 420px; }

.wpcc-banner-inner {
    background: var(--wpcc-bg);
    color: var(--wpcc-text);
    border-radius: var(--wpcc-radius);
    padding: 18px 22px;
    box-shadow: var(--wpcc-shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    border: 1px solid rgba(0,0,0,.07);
}
.wpcc-banner-body  { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 240px; }
.wpcc-banner-icon  { font-size: 28px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.wpcc-banner-text  { flex: 1; }
.wpcc-banner-title { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--wpcc-text); }
.wpcc-banner-desc  { margin: 0; font-size: 13px; line-height: 1.55; color: var(--wpcc-text); opacity: .85; }
.wpcc-link         { color: var(--wpcc-primary); text-decoration: none; }
.wpcc-link:hover   { text-decoration: underline; }
.wpcc-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Buttons */
.wpcc-btn {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    transition: opacity .15s, transform .1s;
}
.wpcc-btn:focus-visible { outline: 3px solid var(--wpcc-primary); outline-offset: 2px; }
.wpcc-btn:hover  { opacity: .87; }
.wpcc-btn:active { transform: scale(.97); }
.wpcc-btn-primary { background: var(--wpcc-primary); color: #fff; }
.wpcc-btn-outline { background: transparent; color: var(--wpcc-primary); border: 2px solid var(--wpcc-primary); padding: 8px 18px; }
.wpcc-btn-ghost   { background: transparent; color: var(--wpcc-text); opacity: .55; padding: 10px 10px; }
.wpcc-btn-ghost:hover { opacity: 1; }

/* Modal */
#wpcc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.wpcc-modal-box {
    background: var(--wpcc-bg);
    color: var(--wpcc-text);
    border-radius: calc(var(--wpcc-radius) + 4px);
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    overflow: hidden;
}
.wpcc-modal-head  { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(0,0,0,.07); flex-shrink: 0; }
.wpcc-modal-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--wpcc-text); }
.wpcc-modal-close {
    background: rgba(0,0,0,.07);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    color: var(--wpcc-text);
    flex-shrink: 0;
}
.wpcc-modal-close:hover { background: rgba(0,0,0,.14); }
.wpcc-modal-body  { flex: 1; overflow-y: auto; padding: 20px 24px; }
.wpcc-modal-intro { margin: 0 0 20px; font-size: 13px; line-height: 1.65; opacity: .72; }
.wpcc-modal-foot  { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid rgba(0,0,0,.07); flex-wrap: wrap; flex-shrink: 0; }

/* Category */
.wpcc-cat     { border: 1px solid rgba(0,0,0,.08); border-radius: calc(var(--wpcc-radius) - 2px); margin-bottom: 12px; overflow: hidden; }
.wpcc-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.wpcc-cat-info { flex: 1; min-width: 0; }
.wpcc-cat-name { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--wpcc-text); }
.wpcc-cat-desc { margin: 0; font-size: 12px; line-height: 1.5; opacity: .68; }

/* Toggle */
.wpcc-toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.wpcc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.wpcc-toggle-track {
    width: 50px;
    height: 27px;
    background: rgba(0,0,0,.18);
    border-radius: 14px;
    transition: background .25s;
    position: relative;
    display: block;
}
.wpcc-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 50%;
    transition: transform .25s;
    box-shadow: 0 1px 5px rgba(0,0,0,.22);
    display: block;
}
.wpcc-toggle input:checked ~ .wpcc-toggle-track                  { background: var(--wpcc-primary); }
.wpcc-toggle input:checked ~ .wpcc-toggle-track .wpcc-toggle-thumb { transform: translateX(23px); }
.wpcc-toggle--required { opacity: .55; cursor: not-allowed; }

/* Details / table */
.wpcc-details { padding: 0 16px 14px; }
.wpcc-details-summary { font-size: 12px; font-weight: 600; color: var(--wpcc-primary); cursor: pointer; padding: 6px 0; list-style: none; }
.wpcc-details-summary::-webkit-details-marker { display: none; }
.wpcc-details-summary::before { content: '\25B6  '; font-size: 10px; }
details[open] .wpcc-details-summary::before { content: '\25BC  '; }
.wpcc-table    { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.wpcc-table th { text-align: left; padding: 6px 10px; background: rgba(0,0,0,.04); font-weight: 600; border-bottom: 1px solid rgba(0,0,0,.07); }
.wpcc-table td { padding: 6px 10px; border-bottom: 1px solid rgba(0,0,0,.04); vertical-align: top; line-height: 1.45; }
.wpcc-table code { font-size: 11px; background: rgba(0,0,0,.07); padding: 1px 5px; border-radius: 3px; }

/* Re-open button */
#wpcc-reopen {
    display: none;
    position: fixed;
    z-index: 999996;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wpcc-primary);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.24);
    transition: transform .2s, box-shadow .2s;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
#wpcc-reopen:hover { transform: scale(1.12); box-shadow: 0 6px 24px rgba(0,0,0,.32); }
#wpcc-reopen[data-pos='bottom'],
#wpcc-reopen[data-pos='bottom-left'],
#wpcc-reopen[data-pos='bottom-right'] { bottom: 20px; left: 20px; }
#wpcc-reopen[data-pos='top']          { top: 20px; left: 20px; }

/* Responsive */
@media (max-width: 640px) {
    .wpcc-banner-inner   { flex-direction: column; align-items: flex-start; padding: 16px; }
    .wpcc-banner-actions { width: 100%; }
    .wpcc-btn            { flex: 1; text-align: center; }
    .wpcc-modal-box      { border-radius: 16px; max-height: 95vh; }
    .wpcc-modal-head,
    .wpcc-modal-body,
    .wpcc-modal-foot     { padding-left: 16px; padding-right: 16px; }
    .wpcc-table          { display: block; overflow-x: auto; }
}