.yp-comment-layer {
  margin: clamp(18px, 3vw, 34px) auto;
  max-width: min(100%, 1120px);
  color: #12233f;
}

.yp-comment-layer-inner {
  display: flex;
  justify-content: flex-end;
}

.yp-comment-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(41, 70, 109, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
  color: #163457;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 30px rgba(20, 48, 82, 0.12);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.yp-comment-pill:hover,
.yp-comment-pill:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(32, 82, 129, 0.34);
  box-shadow: 0 16px 34px rgba(20, 48, 82, 0.16);
  outline: none;
}

.yp-comment-pill-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(35, 87, 137, 0.1);
  color: #235789;
  font-size: 14px;
}

.yp-comment-panel {
  margin-top: 12px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(41, 70, 109, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(35, 87, 137, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  box-shadow: 0 18px 42px rgba(20, 48, 82, 0.12);
}

.yp-comment-panel[hidden] {
  display: none !important;
}

.yp-comment-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.yp-comment-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.25;
  font-weight: 850;
  color: #12233f;
}

.yp-comment-copy {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 0.96rem;
}

.yp-comment-form {
  display: grid;
  gap: 12px;
}

.yp-comment-input {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  border: 1px solid rgba(41, 70, 109, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #10213b;
  font: inherit;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.yp-comment-input:focus {
  border-color: rgba(35, 87, 137, 0.42);
  outline: 3px solid rgba(35, 87, 137, 0.12);
}

.yp-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.yp-comment-action,
.yp-comment-mail {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(41, 70, 109, 0.18);
  background: #ffffff;
  color: #17395f;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.yp-comment-action-primary {
  border-color: rgba(35, 87, 137, 0.42);
  background: linear-gradient(135deg, #1d416b 0%, #2f679b 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(29, 65, 107, 0.2);
}

.yp-comment-status {
  margin: 0;
  min-height: 1.3em;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .yp-comment-layer-inner {
    justify-content: stretch;
  }

  .yp-comment-pill {
    width: 100%;
    justify-content: center;
  }

  .yp-comment-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .yp-comment-action,
  .yp-comment-mail {
    width: 100%;
    text-align: center;
  }
}
