.pdc-fullwidth-shell {
  position: relative !important;
  left: 50% !important;
  width: calc(100vw - 32px) !important;
  max-width: none !important;
  margin-left: calc(-50vw + 16px) !important;
  margin-right: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.pdc-tool {
  --pdc-border: #d7dce3;
  --pdc-text: #18202b;
  --pdc-muted: #687385;
  --pdc-accent: #1a73e8;
  --pdc-accent-dark: #155fc2;
  width: 100% !important;
  max-width: none !important;
  margin: 12px 0 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 240px 360px !important;
  gap: 24px !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  color: var(--pdc-text);
  font-family: inherit;
}

.pdc-debug {
  grid-column: 1 / -1;
  border: 1px solid var(--pdc-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.pdc-debug pre {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  background: #f7f9fc;
  color: var(--pdc-text);
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
}

.pdc-panel {
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  border: 1px solid var(--pdc-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.pdc-output-panel {
  width: 100% !important;
  min-width: 24ch !important;
  max-width: 360px !important;
}

.pdc-input-panel,
#pdc-input,
.pdc-input-textarea {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

#pdc-output,
.pdc-output-textarea {
  width: 100% !important;
  min-width: 24ch !important;
  max-width: 100% !important;
}

.pdc-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pdc-border);
}

.pdc-panel__head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.pdc-panel__tools,
.pdc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pdc-actions {
  flex-direction: column;
  justify-content: flex-start;
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  align-items: stretch;
  padding-top: 90px;
  box-sizing: border-box !important;
}

.pdc-actions .pdc-btn,
.pdc-actions input,
.pdc-coupon,
.pdc-status {
  width: 100%;
  box-sizing: border-box;
}

.pdc-coupon {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pdc-coupon input {
  min-height: 36px;
  border: 1px solid var(--pdc-border);
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
}

.pdc-member-note {
  margin: 2px 0 0;
  color: var(--pdc-muted);
  font-size: 12px;
  line-height: 1.55;
}

.pdc-textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 620px !important;
  height: 68vh !important;
  max-height: 850px !important;
  resize: vertical;
  border: 0;
  padding: 16px;
  font: 15px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--pdc-text);
  background: #fff;
  box-sizing: border-box;
  white-space: pre;
}

.pdc-textarea:focus {
  outline: 2px solid rgba(26, 115, 232, 0.2);
  outline-offset: -2px;
}

.pdc-btn {
  min-height: 36px;
  border: 1px solid var(--pdc-border);
  border-radius: 6px;
  padding: 7px 12px;
  background: #fff;
  color: var(--pdc-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.pdc-btn:hover {
  border-color: #aeb8c5;
  background: #f7f9fc;
}

.pdc-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pdc-btn--primary {
  border-color: var(--pdc-accent);
  background: var(--pdc-accent);
  color: #fff;
  font-weight: 700;
}

.pdc-btn--primary:hover {
  border-color: var(--pdc-accent-dark);
  background: var(--pdc-accent-dark);
}

.pdc-status {
  max-width: none;
  color: var(--pdc-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.pdc-status.is-error {
  color: #b42318;
}

.pdc-output-wrapper {
  position: relative;
  width: 100% !important;
  min-height: 620px !important;
  height: 68vh !important;
  max-height: 850px !important;
  overflow: hidden;
}

.pdc-output-preview {
  margin: 0;
  width: 100% !important;
  min-height: 620px !important;
  height: 68vh !important;
  max-height: 850px !important;
  padding: 16px;
  box-sizing: border-box;
  background: #fff;
  color: var(--pdc-text);
  font: 15px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
}

.pdc-output-wrapper.is-locked .pdc-output-preview {
  max-height: none;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  filter: none;
  opacity: .96;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 42%,
    rgba(0, 0, 0, .78) 68%,
    rgba(0, 0, 0, .48) 90%,
    rgba(0, 0, 0, .32) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 42%,
    rgba(0, 0, 0, .78) 68%,
    rgba(0, 0, 0, .48) 90%,
    rgba(0, 0, 0, .32) 100%
  );
}

.pdc-output-wrapper.is-locked::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  bottom: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, .06) 0%,
    rgba(255, 255, 255, .18) 46%,
    rgba(255, 255, 255, .38) 100%
  );
  backdrop-filter: blur(.75px);
}

.pdc-output-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 150px 18px 18px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: none;
  cursor: not-allowed;
  pointer-events: none;
}

.pdc-output-wrapper.is-unlocked .pdc-output-lock-overlay {
  display: none;
}

.pdc-output-full {
  min-height: 620px !important;
  height: 68vh !important;
  max-height: 850px !important;
}

.pdc-lock-card {
  width: min(100%, 360px);
  border: 1px solid var(--pdc-border);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 34px rgba(24, 32, 43, 0.14);
  text-align: center;
  pointer-events: auto;
  backdrop-filter: blur(1px);
}

.pdc-lock-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.pdc-lock-description {
  color: var(--pdc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.pdc-lock-list {
  list-style: none;
  margin: 10px 0 14px;
  padding: 0;
  color: var(--pdc-text);
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

.pdc-lock-list li::before {
  content: "✓";
  color: var(--pdc-green);
  font-weight: 700;
  margin-right: 7px;
}

.pdc-lock-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  background: var(--pdc-green);
  color: #fff;
  font-weight: 700;
}

.pdc-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 32, 43, 0.35);
}

.pdc-payment-modal[hidden] {
  display: none;
}

.pdc-payment-dialog {
  width: min(100%, 420px);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(24, 32, 43, 0.22);
}

.pdc-payment-dialog h3 {
  margin-top: 0;
}

.pdc-member-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  width: 100%;
}

.pdc-member-toolbar a {
  color: var(--pdc-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pdc-member-toolbar a:hover {
  text-decoration: underline;
}

.pdc-member-choice {
  display: grid;
  gap: 10px;
}

.pdc-member-choice[hidden] {
  display: none;
}

.pdc-member-choice h4 {
  margin: 8px 0 0;
}

.pdc-member-choice p {
  margin: 0;
  color: var(--pdc-muted);
}

.pdc-member-choice ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.pdc-member-choice .pdc-btn {
  width: 100%;
}

@media (max-width: 900px) {
  .pdc-fullwidth-shell {
    left: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 12px !important;
  }

  .pdc-tool {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .pdc-output-panel {
    max-width: none !important;
  }

  .pdc-actions {
    flex-direction: row;
    justify-content: flex-start;
    width: 100% !important;
    max-width: none !important;
    padding-top: 0;
  }

  .pdc-status {
    max-width: none;
    text-align: left;
  }

  .pdc-textarea {
    min-height: 440px !important;
    height: 440px !important;
  }

  .pdc-output-wrapper,
  .pdc-output-preview,
  .pdc-output-full {
    min-height: 440px !important;
    height: 440px !important;
  }
}
