css-html-code-playground:not(#incspec),
css-html-code-playground:not(#incspec) *,
css-html-code-playground:not(#incspec) ::before,
css-html-code-playground:not(#incspec) ::after {
  box-sizing: border-box;
}

css-html-code-playground:not(#incspec) {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  margin-bottom: 1.2em;
  --inactive-opacity: 0.8;
  --active-opacity: 1;
  --cp-height: 400px;
  height: var(--cp-height);
}

css-html-code-playground:not(#incspec).height-510 {
  --cp-height: 510px;
}

css-html-code-playground:not(#incspec).height-610 {
  --cp-height: 610px;
}

css-html-code-playground:not(#incspec) .cp-container {
  display: flex;
  flex-direction: column;
  background-color: #444;
  height: var(--cp-height);
  border: 10px solid #444;
  border-top-width: 0;
  border-radius: 10px;
}

css-html-code-playground:not(#incspec) .cp-row-panel-container {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  background-color: var(--very-light);
  overflow: hidden;
}


css-html-code-playground:not(#incspec) .cp-top-panel {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: var(--very-light);
  width: 100%;
}

css-html-code-playground:not(#incspec) .cp-top-panel img {
  width: 40px;
}

css-html-code-playground:not(#incspec) .cp-code_playground_title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: var(--h4);
  padding: 0.1em 0;
  color: var(--very-light);
}

css-html-code-playground:not(#incspec) .cp-button-reset {
  all: unset;
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  cursor: pointer;
  position: relative;
}

css-html-code-playground:not(#incspec) .cp-button-reset::before,
css-html-code-playground:not(#incspec) .cp-button-reset::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translate(-50%, -6px);
}

css-html-code-playground:not(#incspec) .cp-button-reset::before {
  content: "Reset Playground";
  bottom: 100%;
  margin-bottom: 8px;
  background: #111;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 2;
}

css-html-code-playground:not(#incspec) .cp-button-reset::after {
  content: "";
  bottom: 100%;
  margin-bottom: 3px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
  z-index: 1;
}

css-html-code-playground:not(#incspec) .cp-button-reset:hover::before,
css-html-code-playground:not(#incspec) .cp-button-reset:hover::after,
css-html-code-playground:not(#incspec) .cp-button-reset:focus-visible::before,
css-html-code-playground:not(#incspec) .cp-button-reset:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -10px);
}
css-html-code-playground:not(#incspec) .cp-radios-container {
    overflow-x: auto;
    flex-shrink: 0;
}
css-html-code-playground:not(#incspec) .cp-radio-group {
  border: none;
  color: var(--very-light);
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: center;
  gap: 30px;
  font-size: 1.2rem;
  padding-bottom: 12px;
}

css-html-code-playground:not(#incspec) .cp-radio-group legend {
  padding: 6px;
  font-weight: bold;
}

css-html-code-playground:not(#incspec) .cp-radio-group label {
  border-bottom: 1px solid var(--very-light);
  padding: 0 10px 4px 10px;
  cursor: pointer;
  margin: 0;
  color: var(--very-light);
}

css-html-code-playground:not(#incspec) .cp-radio-group input:checked+label {
  border-bottom: 3px solid var(--very-light);
}

css-html-code-playground:not(#incspec) .cp-range-sliders {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 10px;
  background-color: #f7f7f7;
  border-bottom: 1px solid #ccc;
}

css-html-code-playground:not(#incspec) .cp-range-slider label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
  color: #333;
}

css-html-code-playground:not(#incspec) .cp-range-slider input[type="range"] {
  width: 100%;
}

css-html-code-playground:not(#incspec) .cp-left-panel {
  min-width: 300px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ccc;
  min-height: 0;
}

css-html-code-playground:not(#incspec) .cp-tab-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #ccc;
  background-color: #f7f7f7;
}

css-html-code-playground:not(#incspec) .cp-tab-button {
  border: 1px solid #ccc;
  background: #fff;
  color: #444;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

css-html-code-playground:not(#incspec) .cp-tab-button.active {
  border: none;
  color: #ffffff;
  font-weight: 600;
  background-color: #444;
}

css-html-code-playground:not(#incspec) .cp-tab-panels {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

css-html-code-playground:not(#incspec) .cp-tab-panel {
  display: none;
  padding: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}

css-html-code-playground:not(#incspec) .cp-tab-panel.active {
  display: block;
}

css-html-code-playground:not(#incspec) .cp-tab-panel.active[data-tab="html"],
css-html-code-playground:not(#incspec) .cp-tab-panel.active[data-tab="default-css"] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

css-html-code-playground:not(#incspec) .cp-css-snippets {
  display: block;
}

css-html-code-playground:not(#incspec) .cp-css-snippet {
  position: relative;
  margin-bottom: 10px;
  opacity: var(--inactive-opacity);
  border: 3px solid #ccc;
  padding: 6px 29px 6px 6px;
  border-radius: 5px;
}

css-html-code-playground:not(#incspec) .cp-css-snippet.active {
  opacity: var(--active-opacity);
  border-color: #007BFF;
}

css-html-code-playground:not(#incspec) .cp-css-snippet:not(.active) {
  cursor: pointer;
}

/* to have the cursor pointer on the whole snippet, we add an invisible layer on top of it, otherwise we have the text edit pointer */
css-html-code-playground:not(#incspec) .cp-css-snippet:not(.active)::after {
    content: '';
    inset: 0;
    position: absolute;
}

css-html-code-playground:not(#incspec) .cp-checkmark {
  position: absolute;
  top: 6px;
  right: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 9;
}

css-html-code-playground:not(#incspec) .cp-checkmark input {
  position: absolute;
  opacity: 0;
  z-index: 1;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

css-html-code-playground:not(#incspec) .cp-checkmark label {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

css-html-code-playground:not(#incspec) .cp-css-snippet.active .cp-checkmark label {
  background-color: #444;
  border-color: #444;
  border-radius: 50%;
}

css-html-code-playground:not(#incspec) .cp-css-snippet.active .cp-checkmark label::after {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9.55 15.15l8.475-8.475q.3-.3.7-.3t.7.3t.3.713t-.3.712l-9.175 9.2q-.3.3-.7.3t-.7-.3L4.55 13q-.3-.3-.288-.712t.313-.713t.713-.3t.712.3z'/%3E%3C/svg%3E");
  background-size: contain;
  z-index: 3;
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

css-html-code-playground:not(#incspec) .cp-editor-container {
  width: 100%;
  height: 100%;
  min-height: 0;
}

css-html-code-playground:not(#incspec) .cp-html-container {
  flex-grow: 1;
  position: relative;
  overflow: auto;
}

css-html-code-playground:not(#incspec) .cp-html-editor-container {
  min-height: 70px;
  overflow: hidden;
}

css-html-code-playground:not(#incspec) .cp-default-css-editor {
  overflow: hidden;
}

css-html-code-playground:not(#incspec) .cp-rendered-html {
  background-color: #fff;
  max-height: calc(100vh - 20px);
}

css-html-code-playground:not(#incspec)>pre.cp-css-snippet,
css-html-code-playground:not(#incspec)>pre.cp-default-css,
css-html-code-playground:not(#incspec)>pre.cp-raw-html {
  display: none;
}

@media (max-width: 768px) {

  css-html-code-playground:not(#incspec) .cp-row-panel-container {
    flex-direction: column;
  }

  css-html-code-playground:not(#incspec) .cp-left-panel {
    min-width: initial;
    max-width: initial;
    width: 100%;
  }

  css-html-code-playground:not(#incspec),
  css-html-code-playground:not(#incspec) .cp-container {
    height: auto;
  }

  css-html-code-playground:not(#incspec) .cp-range-sliders {
    flex-direction: column;
    align-items: flex-start;
  }

}




.sr-only {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}