/* ---------- Banner ---------- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid #ddd;
    z-index: 9999; font-size: 14px;
    box-shadow: 0 -2px 6px rgba(0,0,0,.08);
}
#cookie-banner .cb-wrap{
    max-width: 1200px; margin: 0 auto; padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 16px; row-gap: 10px;
    align-items: center;
}
#cookie-banner .cb-top{
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    color:#666;
    padding: 1rem 2rem 0 0;
}
#cookie-banner .cb-top a{
    color:#666;
    text-decoration: underline;
}
#cookie-banner .cb-text{
    grid-column: 1;
    grid-row: 2;
    line-height: 1.45;
    min-width: 0;
    color:#666;
}
@media (min-width: 1280px) {
    #cookie-banner .cb-text {
        width: 55%;
    }
}
@media (min-width: 1024px) {
    #cookie-banner .cb-text {
        width: 60%;
    }
}
@media (min-width: 550px) {
    #cookie-banner .cb-text {
        width: 65.3333333333%;
    }
}
#cookie-banner .cb-actions{
    grid-column: 2; grid-row: 2; justify-self: end;
    display: flex; gap: 10px; flex-wrap: nowrap; align-items: center;
}
#cookie-banner .btn{
    padding:8px 14px;
    border-radius:4px;
    cursor:pointer;
    font-weight:600;
}
#cookie-banner .btn-outline{
    border:1px solid #900;
    background:#fff;
    color:#900;
}
.cb-actions button:first-child {
    background-color: #cccccc !important;
}
.cb-actions button:first-child:hover {
    background-color: #999999 !important; /* darker grey on hover */
}
#cookie-banner .btn-danger{ background:#c00; color:#fff; border:0; }

@media (max-width: 768px){
    #cookie-banner .cb-wrap{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    }
    #cookie-banner .cb-top{
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
    }
    #cookie-banner .cb-text{ grid-column: 1; grid-row: 2; }
    #cookie-banner .cb-actions{ grid-column: 1; grid-row: 3; justify-self: start; flex-wrap: wrap; }
}
/* Combined row spanning both grid columns */
#cookie-banner .cb-row{
    grid-column: 1 / -1;   /* span both columns in the banner grid */
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between; /* text left, buttons right */
    gap: 16px;
    padding: 1rem 2rem 2rem 2rem;
  }

  /* Text grows, can shrink, and wraps nicely */
  #cookie-banner .cb-row .cb-text{
    flex: 1 1 auto;
    min-width: 0;          /* allows wrapping instead of overflowing */
    color: #666;
    line-height: 1.45;
  }

  /* Buttons sit on the right; add right margin on large screens */
  #cookie-banner .cb-row .cb-actions{
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    margin-right: 20px;    /* visible on large screens */
  }

  /* On small screens, stack and remove right margin */
  @media (max-width: 768px){
    #cookie-banner .cb-row{
      flex-direction: column;
      align-items: flex-start;
    }
    #cookie-banner .cb-row .cb-actions{
      margin-right: 0;     /* disappears on small screens */
      margin-top: 8px;
      flex-wrap: wrap;
    }
  }


/* ---------- Tabs / Modal column styling ---------- */
.nav-pills .nav-link {
    margin-bottom: 0 !important;
    border-radius: 0;
    background-color: #f7f7f7;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e6e6e6;
    width: 100%;
    text-align: left;
    font-size: .8em;
    color: #696969;
    font-weight:bold;
}
.nav-pills .nav-link.active {
    background-color: #fff;
    border-left: 10px solid #c00;
    color: #696969;
}

/* Remove Bootstrap gutter spacing for this modal */
#cookieSettingsModal .row {
    --bs-gutter-x: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
#cookieSettingsModal [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ---------- Buttons ---------- */
.btn-red {
    background-color: #c00;
    color: #fff;
    border: none;
}
.btn-red:hover {
    background-color: #900;
    color: #fff;
}

/* ---------- Modal header / body / footer ---------- */
.modal-header {
    align-items: center;
    padding: 1rem !important;
}
.modal-header img {
    height: 30px;
    margin-right: 10px;
}
/* Remove default modal paddings so content can be flush-left */
.modal-body {
    padding: 0 !important;
}
#cookieSettingsModal .modal-content {
    padding: 0 !important;
}
#cookieSettingsModal .modal-body {
    padding: 0 !important;
}
#cookieSettingsModal .row {
    margin: 0 !important;
}
.modal-body .row {
    min-height: 300px;
}
.modal-footer {
    padding: 1rem !important;
}
#cookieSettingsModal .modal-footer .btn{
    color: #000;
    font-weight:bold;
    font-size: 1rem;
}

/* Tab/content tweaks */
.nav-pills {
    width: 100%;
}
.col-8 .tab-content {
    border: none !important;
    background: transparent !important;
    display: inline-block;
    vertical-align: middle;
    font-size: .8em;
    color: #696969;
}
.col-8 .tab-content h6 {
    font-weight: bold;
}

/* ---------- Floating cookie button (FAB) ---------- */
#cookie-fab {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none; /* hidden until consent chosen */
    align-items: center;
    justify-content: center;
    z-index: 11000;
    background: #4CAF50;   /* green background */
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border .15s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: none;
}

/* SVG inside */
#cookie-fab svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* Outline only on hover/focus */
#cookie-fab:hover,
#cookie-fab:focus {
    border: 2px solid #2e7d32;  /* dark green outline */
    transform: scale(1.05);
    outline: none;
}

/* small accessible label visually hidden but available to screen readers */
.sr-only {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important;
    white-space: nowrap !important; border: 0 !important;
}

/* Toggle customization */
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.3em;
    cursor: pointer;
    background-color: #ccc;       /* default grey */
    border: none;
}
.form-switch .form-check-input:checked {
    background-color: #0d6efd;    /* bootstrap blue when active */
}

.always-active {
    color: #0d6efd; /* Bootstrap blue */
    font-weight: bold;
    margin-left: 8px;
    font-size: 0.9em;
}
