/* Comfy only: compact horizontal strip. Existing consent API unchanged. */
.rp-v1-panel.rp-comfy-strip {
  left: 18px; right: auto; bottom: max(14px, env(safe-area-inset-bottom));
  transform: none; width: min(940px, calc(100% - 220px));
  padding: 14px 18px; border-top: 3px solid var(--rp-accent);
  border-radius: 12px; box-shadow: 0 5px 25px #0002;
  display: grid; grid-template-columns: minmax(150px,1fr) auto auto;
  column-gap: 18px; row-gap: 3px; align-items: center;
}
.rp-comfy-strip h2 { grid-column:1; grid-row:1; margin:0; font-size:16px; }
.rp-comfy-strip .rp-comfy-summary {grid-column:1;grid-row:2;margin:0;font-size:12px;line-height:1.35;}
.rp-comfy-strip:not(.rp-comfy-expanded) .rp-v1-close,
.rp-comfy-strip:not(.rp-comfy-expanded) .rp-v1-essential {display:none;}
.rp-comfy-strip .rp-v1-actions {grid-column:2;grid-row:1 / span 3;display:grid;grid-template-columns:repeat(2,minmax(125px,1fr));gap:7px;}
.rp-comfy-strip .rp-v1-btn {min-height:40px;padding:8px 13px;font-size:13px;border-radius:7px;}
.rp-comfy-strip .rp-v1-customize {grid-column:3;grid-row:1 / span 3;margin:0;padding:5px 0;min-height:40px;width:auto;font-size:12px;}
.rp-comfy-strip .rp-v1-policy {grid-column:1;grid-row:3;font-size:11px;width:fit-content;}
.rp-comfy-strip .rp-v1-status {grid-column:1 / -1;margin:0;min-height:0;}
.rp-comfy-strip .rp-v1-status:empty {display:none;}
.rp-comfy-strip.rp-comfy-expanded,
.rp-comfy-strip.rp-comfy-reminders {display:block;width:min(560px,calc(100% - 32px));padding:20px;}
.rp-comfy-strip.rp-comfy-expanded h2,.rp-comfy-strip.rp-comfy-reminders h2 {margin-bottom:9px;font-size:19px;}
.rp-comfy-strip.rp-comfy-expanded .rp-v1-customize,.rp-comfy-strip.rp-comfy-reminders .rp-v1-customize {width:100%;margin-top:5px;}
.rp-comfy-strip.rp-comfy-expanded .rp-v1-actions,.rp-comfy-strip.rp-comfy-reminders .rp-v1-actions {margin-top:10px;}
.rp-comfy-strip.rp-comfy-expanded .rp-v1-intro,.rp-comfy-strip.rp-comfy-reminders .rp-v1-intro {margin:8px 0;}
@media(max-width:850px){
  .rp-v1-panel.rp-comfy-strip {width:min(500px,calc(100% - 24px));left:12px;bottom:max(72px,calc(env(safe-area-inset-bottom) + 60px));padding:12px 14px;grid-template-columns:1fr 1fr;gap:6px 12px;}
  .rp-comfy-strip h2 {grid-column:1 / -1;grid-row:1;}
  .rp-comfy-strip .rp-comfy-summary {grid-column:1 / -1;grid-row:2;}
  .rp-comfy-strip .rp-v1-actions {grid-column:1 / -1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr));}
  .rp-comfy-strip .rp-v1-policy {grid-column:1;grid-row:4;}
  .rp-comfy-strip .rp-v1-customize {grid-column:2;grid-row:4;text-align:right;min-height:28px;}
  .rp-comfy-strip .rp-v1-status {grid-row:5;}
  .rp-comfy-strip.rp-comfy-expanded,.rp-comfy-strip.rp-comfy-reminders {max-height:calc(100dvh - 100px);}
}

/* tighter buttons + customize underneath */
.rp-comfy-strip .rp-v1-actions{
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.rp-comfy-strip .rp-v1-customize{
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
  align-self: start;
  margin: 4px 0 0 0;
  padding: 0;
  min-height: auto;
  width: auto;
  font-size: 12px;
}

.rp-comfy-strip .rp-v1-policy{
  grid-column: 1;
  grid-row: 3;
}

@media (max-width: 850px){
  .rp-comfy-strip .rp-v1-actions{
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 8px;
  }

  .rp-comfy-strip .rp-v1-customize{
    grid-column: 1 / -1;
    grid-row: 5;
    justify-self: center;
    text-align: center;
    margin-top: 4px;
  }

  .rp-comfy-strip .rp-v1-policy{
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

@media (min-width: 851px) {
  .rp-v1-panel.rp-comfy-strip:not(.rp-comfy-expanded):not(.rp-comfy-reminders) {
    width: fit-content;
    max-width: calc(100% - 220px);
    grid-template-columns: auto auto;
    column-gap: 22px;
  }
}
