/* ==========================================================================
   PM Consent Manager — Banner Styles
   Minimal, accessible, mobile-responsive. No framework dependency.
   ========================================================================== */

/* Screen-reader only utility */
.pmcmp-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;
}

/* ---- Banner wrapper ---- */
.pmcmp-banner {
  position: fixed;
  z-index: 999999;
  max-width: 420px;
  width: calc(100% - 32px);
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid #e0e0e0;
  padding: 0;
  margin: 16px;

  /* Hidden state — start translated off-screen */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.pmcmp-banner.pmcmp-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---- Position variants ---- */
.pmcmp-pos-bottom-left {
  bottom: 0;
  left: 0;
}

.pmcmp-pos-bottom-right {
  bottom: 0;
  right: 0;
}

.pmcmp-pos-bottom-center {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  margin: 16px 0;
}

.pmcmp-pos-bottom-center.pmcmp-visible {
  transform: translateX(-50%) translateY(0);
}

/* ---- Inner padding ---- */
.pmcmp-inner {
  padding: 20px 20px 16px;
}

/* ---- Message ---- */
.pmcmp-message {
  font-size: 14px;
  line-height: 1.55;
  color: #333333;
  margin: 0 0 12px;
}

.pmcmp-message p {
  margin: 0 0 8px;
}

.pmcmp-message p:last-child {
  margin-bottom: 0;
}

/* ---- Links ---- */
.pmcmp-links {
  margin-bottom: 14px;
  font-size: 13px;
}

.pmcmp-links a {
  color: #0a6fbc;
  text-decoration: underline;
}

.pmcmp-links a:hover,
.pmcmp-links a:focus {
  color: #084e88;
  outline: 2px solid #0a6fbc;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Button row ---- */
.pmcmp-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pmcmp-btn {
  flex: 1 1 auto;
  min-width: 90px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pmcmp-btn:focus {
  outline: 3px solid #0a6fbc;
  outline-offset: 2px;
}

/* Accept — primary */
.pmcmp-btn-accept {
  background: #0a6fbc;
  color: #ffffff;
  border-color: #0a6fbc;
}

.pmcmp-btn-accept:hover {
  background: #084e88;
  border-color: #084e88;
}

/* Deny — secondary/ghost */
.pmcmp-btn-deny {
  background: #f5f5f5;
  color: #444444;
  border-color: #cccccc;
}

.pmcmp-btn-deny:hover {
  background: #e8e8e8;
  border-color: #aaaaaa;
}

/* ---- Manage consent link (shortcode) ---- */
.pmcmp-manage-link {
  font-size: 12px;
  color: #666666;
  text-decoration: underline;
  cursor: pointer;
}

.pmcmp-manage-link:hover {
  color: #333333;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .pmcmp-banner {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 8px 8px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .pmcmp-pos-bottom-left,
  .pmcmp-pos-bottom-right,
  .pmcmp-pos-bottom-center {
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(16px);
    margin: 0;
  }

  .pmcmp-pos-bottom-left.pmcmp-visible,
  .pmcmp-pos-bottom-right.pmcmp-visible,
  .pmcmp-pos-bottom-center.pmcmp-visible {
    transform: translateY(0);
  }

  .pmcmp-buttons {
    flex-direction: column;
  }

  .pmcmp-btn {
    width: 100%;
  }
}
