/* AuthorWings AI — Cookie Consent (GDPR) notice bar.
   Colours are applied inline on the element from the admin settings, so this
   file only carries layout/structure and stays fully static (browser-cached).
   The bar is hidden until cookie-consent.js confirms consent has not yet been
   given, which keeps it correct behind full-page caches. */
.awg-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    box-sizing: border-box;
    padding: 14px 18px;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, .18);
    font-size: 14px;
    line-height: 1.5;
}

.awg-cookie-consent--bottom { bottom: 0; }

.awg-cookie-consent--top {
    top: 0;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}

.awg-cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.awg-cookie-consent__msg {
    flex: 1 1 320px;
    min-width: 240px;
}

.awg-cookie-consent__msg a { text-decoration: underline; }

.awg-cookie-consent__learn {
    margin-left: 6px;
    white-space: nowrap;
    font-weight: 600;
}

.awg-cookie-consent__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.awg-cookie-consent__accept,
.awg-cookie-consent__reject {
    cursor: pointer;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

/* Accept: solid (colours applied inline from settings). */
.awg-cookie-consent__accept { border: 0; }

/* Reject: same size for equal prominence (GDPR: refusing must be as easy as
   accepting), rendered as an outline so the two read as distinct choices.
   Border/text colours are applied inline from the bar's text colour. */
.awg-cookie-consent__reject {
    background: transparent;
    border: 1px solid currentColor;
}

.awg-cookie-consent__accept:hover,
.awg-cookie-consent__reject:hover { opacity: .92; }

@media (max-width: 600px) {
    .awg-cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    /* In the column layout the row basis (flex: 1 1 320px) is measured along the
       main axis — i.e. as a 320px HEIGHT — which left a tall empty gap above the
       button. Reset the message to its natural content height on small screens. */
    .awg-cookie-consent__msg {
        flex: 0 0 auto;
        min-width: 0;
    }
    /* Keep Accept/Reject as compact buttons sitting on one line (centered),
       instead of full-width bars that eat the whole screen height. */
    .awg-cookie-consent__actions { justify-content: center; }
    .awg-cookie-consent__accept,
    .awg-cookie-consent__reject {
        width: auto;
        padding: 9px 18px;
    }
}
