/*!
 * Masa Cookie Consent — banner styles.
 * Deliberately minimal and namespaced under .mcc so it layers
 * cleanly on top of any client theme. Override --mcc-brand (set
 * inline from the plugin's Brand Color setting) or these custom properties
 * from the theme's own stylesheet to restyle without touching this file.
 */
:root {
  --mcc-brand: #1a5f7a;
  --mcc-bg: #ffffff;
  --mcc-text: #1c1c1c;
  --mcc-muted: #5a5a5a;
  --mcc-border: #e2e2e2;
  --mcc-radius: 10px;
}

.mcc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000; /* stay above everything, including most modals */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mcc-text);
}

.mcc--bottom-corner {
  left: auto;
  right: 16px;
  bottom: 16px;
  max-width: 380px;
}

.mcc__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: var(--mcc-bg);
  border-top: 1px solid var(--mcc-border);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
  padding: 16px 24px;
}

.mcc--bottom-corner .mcc__panel {
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--mcc-border);
  border-radius: var(--mcc-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
}

.mcc__body {
  flex: 1 1 320px;
}

.mcc__headline {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 15px;
}

.mcc__text {
  margin: 0;
  color: var(--mcc-muted);
}

.mcc__text a {
  color: var(--mcc-brand);
}

.mcc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.mcc__btn {
  appearance: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.mcc__btn:focus-visible {
  outline: 2px solid var(--mcc-brand);
  outline-offset: 2px;
}

.mcc__btn--solid {
  background: var(--mcc-brand);
  color: #fff;
}

.mcc__btn--outline {
  background: transparent;
  border-color: var(--mcc-brand);
  color: var(--mcc-brand);
}

.mcc__btn--ghost {
  background: transparent;
  color: var(--mcc-muted);
  text-decoration: underline;
}

/* ---- Customize modal ---- */
.mcc__modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mcc__modal[hidden] {
  display: none;
}

.mcc__modal-panel {
  background: var(--mcc-bg);
  border-radius: var(--mcc-radius);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}

.mcc__modal-panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.mcc__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--mcc-border);
}

.mcc__row:first-of-type {
  border-top: none;
}

.mcc__row-text label {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.mcc__row-text p {
  margin: 0;
  color: var(--mcc-muted);
}

.mcc__used {
  margin: 8px 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mcc-text);
}

.mcc__tags {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--mcc-muted);
}

.mcc__tags li {
  margin: 2px 0;
}

.mcc__cookies {
  display: block;
  font-size: 12px;
}

.mcc__cookies code {
  font-size: 12px;
}

.mcc__row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--mcc-brand);
}

.mcc__modal-actions {
  margin-top: 16px;
  text-align: right;
}

@media (max-width: 640px) {
  .mcc__panel {
    flex-direction: column;
    align-items: stretch;
  }
  .mcc__actions {
    justify-content: stretch;
  }
  .mcc__btn {
    flex: 1 1 auto;
  }
}
