/* Coding Puzzles — shared embed styles (no preprocessor) */

.cp-wrapper {
  width: 100%;
  margin: 1.5rem 0;
  border: 1px solid #dfe2e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

.cp-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f6f8fa;
  border-bottom: 1px solid #dfe2e5;
}

.cp-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #24292f;
}

.cp-iframe {
  display: block;
  width: 100%;
  height: 680px; /* default; overridden inline by the shortcode */
  border: none;
}

.cp-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  border-top: 1px solid #dfe2e5;
  background: #f6f8fa;
}

.cp-reset {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: #24292f;
  background: #fff;
  border: 1px solid #d0d5da;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.cp-reset:hover {
  background: #f3f4f6;
}

.cp-error {
  margin: 1rem 0;
  padding: 0.9rem 1.1rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 0.95rem;
}