/* ===============================
   PIANISTA COOKIE CONSENT - PRO (1.3.6)
   Fixes: X hover always works (z-index), remove extra focus border, no roxo
   =============================== */

:root{
  --pcc-red:#CB1516;
  --pcc-black:#111111;
  --pcc-gray:#333333;
  --pcc-border:rgba(0,0,0,.10);
  --pcc-shadow:0 18px 60px rgba(0,0,0,.35);
}

/* remove focus ring/box-shadow (sem borda extra) */
#pianista-cookie-consent .pcc-btn:focus,
#pianista-cookie-consent .pcc-btn:focus-visible,
#pcc-modal .pcc-btn:focus,
#pcc-modal .pcc-btn:focus-visible,
#pcc-modal .pcc-modal-close:focus,
#pcc-modal .pcc-modal-close:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

/* Banner */
#pianista-cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  background: #ffffff;
  color: var(--pcc-black);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.08);
  font-family: "Space Grotesk", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

#pianista-cookie-consent.pcc-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pcc-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pcc-text { flex: 1 1 auto; min-width: 420px; }
.pcc-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--pcc-gray);
  text-wrap: pretty;
}

.pcc-inline-link {
  color: var(--pcc-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.pcc-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.pcc-btn {
  font-family: "Space Grotesk", sans-serif !important;
  border-radius: 0 !important;
  padding: 12px 22px !important;
  font-size: 13px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s ease-out;
}

.pcc-btn-primary {
  background: var(--pcc-red) !important;
  border: 1px solid var(--pcc-red) !important;
  color: #ffffff !important;
}

.pcc-btn-primary:hover{
  background: transparent !important;
  color: var(--pcc-red) !important;
  border-color: var(--pcc-red) !important;
  transform: translateY(-1px);
}

.pcc-btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(0,0,0,.22) !important;
  color: var(--pcc-black) !important;
}

.pcc-btn-ghost:hover{
  border-color: var(--pcc-red) !important;
  color: var(--pcc-red) !important;
  transform: translateY(-1px);
}

/* Responsivo */
@media (max-width: 880px) {
  .pcc-inner { flex-direction: column; align-items: stretch; padding: 14px 16px 16px; }
  .pcc-text { min-width: 0; }
  .pcc-actions { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
}

@media (max-width: 520px) {
  .pcc-btn { width: 100%; text-align: center; }
}

/* Modal */
.pcc-modal.pcc-hidden { display: none; }
.pcc-modal.pcc-visible { display: block; position: fixed; inset: 0; z-index: 99999; }

.pcc-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }

.pcc-modal-card {
  position: relative;
  width: min(760px, calc(100% - 24px));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 0;
  box-shadow: var(--pcc-shadow);
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
}

/* bring header/close above any custom cursor overlays */
.pcc-modal-header,
.pcc-modal-close{
  position: relative;
  z-index: 999999 !important;
}

.pcc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.pcc-modal-title {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pcc-black);
}

/* Close (X): normal red outline, hover filled red */
.pcc-modal-close {
  border: 1px solid var(--pcc-red) !important;
  background: transparent !important;
  color: var(--pcc-red) !important;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.pcc-modal-close:hover{
  background: var(--pcc-red) !important;
  color: #fff !important;
  border-color: var(--pcc-red) !important;
}

.pcc-modal-body { padding: 18px 20px 20px; }
.pcc-modal-desc {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pcc-gray);
}

.pcc-toggle-list { display: flex; flex-direction: column; gap: 12px; }
.pcc-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 14px;
  border: 1px solid var(--pcc-border);
}

.pcc-toggle-text{ padding-right: 10px; }
.pcc-toggle-name { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pcc-black); }
.pcc-toggle-help { margin-top: 6px; font-size: 13px; line-height: 1.55; color: rgba(0,0,0,.62); }

/* checkboxes: vermelho Pianista */
#pcc-modal input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: var(--pcc-red);
}

.pcc-modal-links{
  margin-top: 14px;
}

.pcc-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid rgba(0,0,0,.08);
}

@media (max-width: 520px) {
  .pcc-modal-footer { flex-direction: column; }
  .pcc-modal-footer .pcc-btn { width: 100%; }
}
