/* ConsentWebFormScript drawer styles.
   Visual structure/interaction states (slide-in transform, scrim, Yes/No pill
   buttons, accordion chevron rotation, toast) mirror the reference
   "PrivEzi Two-Form Demo.html" drawer, with classes renamed under a pvcf-
   prefix so this never collides with cookieConsentSDKSIT.js's classes if
   both scripts are ever loaded on the same page. */

.pvcf-scrim {
  position: fixed;
  inset: 0;
  background: rgba(14, 24, 38, 0.35);
  z-index: 1000000;
}

.pvcf-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(540px, 100%);
  background: #fff;
  z-index: 1000001;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.2);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #18212d;
}
.pvcf-drawer.pvcf-open {
  transform: translateX(0);
}

.pvcf-head {
  background: #162940;
  color: #fff;
  padding: 18px 20px 16px;
  display: grid;
  gap: 6px;
  flex-shrink: 0;
}
.pvcf-head-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pvcf-head-row span {
  margin-right: auto;
  font-size: 12px;
  opacity: 0.75;
}
.pvcf-close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.pvcf-who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
}
.pvcf-who b {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: normal;
}

.pvcf-body {
  /* flex: 1; */
  /* A flex child defaults to min-height:auto, which stops it from ever
     shrinking below its own content's height - overflow:auto then never
     actually triggers (content just grows past the fixed-height .pvcf-drawer
     instead of scrolling in place, so only what fits in the viewport shows
     and the rest is invisible with no scrollbar). min-height:0 lets it
     shrink to the flex-allocated space so the scrollbar is the one that
     actually shows the rest. */
  /* min-height: 0; */
  overflow: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pvcf-section {
  border: 1px solid #dde2ea;
  border-radius: 10px;
  /* overflow: hidden; */
}
.pvcf-section-required {
  border-color: #e8c7c9;
  background: #fdf7f7;
}
.pvcf-section-title {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: bold;
}
.pvcf-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #5f6b7b;
}
.pvcf-lang select {
  border: 1px solid #dde2ea;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  color: #18212d;
}
.pvcf-section .pvcf-row-text p{
      margin-block-start: 0px;
}
.pvcf-row {
  padding: 12px 16px;
  border-top: 1px solid #dde2ea;
  display: grid;
  gap: 6px;
}
.pvcf-row-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pvcf-row-text {
  flex: 1;
  min-width: 0;
}
.pvcf-row-text b {
  display: block;
  line-height: 1.35;
  font-weight: normal;
}
.pvcf-purpose-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #8a93a3;
  margin-bottom: 2px;
}
.pvcf-required-mark {
  color: #d32027;
  font-weight: bold;
}
.pvcf-row-error {
  animation: pvcf-row-flash 1.6s ease;
}
@keyframes pvcf-row-flash {
  0%, 100% {
    background: transparent;
  }
  20%, 60% {
    background: #fbeaea;
  }
}
.pvcf-learn-more {
  font-size: 12px;
  color: #162940;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-family: inherit;
  margin-top: 4px;
}
.pvcf-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #5f6b7b;
  margin-top: 6px;
}
.pvcf-meta-table th {
  text-align: left;
  font-weight: 600;
  color: #18212d;
  padding: 3px 12px 3px 0;
  white-space: nowrap;
  vertical-align: top;
}
.pvcf-meta-table td {
  padding: 3px 0;
}

.pvcf-yn {
  display: inline-flex;
  border: 1.5px solid #dde2ea;
  border-radius: 6px;
  overflow: hidden;
  flex: none;
}
.pvcf-yn button {
  border: 0;
  background: #fff;
  padding: 7px 11px;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  font-family: inherit;
}
.pvcf-yn button + button {
  border-left: 1.5px solid #dde2ea;
}
.pvcf-yn .pvcf-no[aria-pressed="true"] {
  background: #fbeaea;
  color: #d32027;
}
.pvcf-yn .pvcf-yes[aria-pressed="true"] {
  background: #e5f3eb;
  color: #18794a;
}

.pvcf-foot {
  border-top: 1px solid #dde2ea;
  padding: 12px 20px 14px;
  display: grid;
  gap: 8px;
  flex-shrink: 0;
}
.pvcf-save {
  background: #d32027;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 13px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.pvcf-save:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pvcf-foot-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5f6b7b;
}

.pvcf-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #18212d;
  color: #fff;
  padding: 9px 14px;
  border-radius: 6px;
  z-index: 1000002;
  font-size: 13px;
  max-width: calc(100% - 40px);
}

@media (max-width: 480px) {
  .pvcf-drawer {
    width: 100%;
  }
}
