/**
 * Version 1's style for the form, loaded with it.
 *
 * Since 2.0.0 the form's rules apply only to forms in "the form's own look":
 * a block set to "the theme's look" (wp-cltb-container--theme-look) gets
 * none of them. :where() keeps each selector exactly as specific as before.
 */

/* 800px wide at most, unless the block is set to wide or full width (then the page's layout decides). */
.wp-cltb-container:where(:not(.wp-cltb-container--theme-look):not(.alignwide):not(.alignfull)) {
  max-width: 800px;
}

.wp-cltb-container:where(:not(.wp-cltb-container--theme-look)) {
  margin: 0 auto;
  padding: 20px;
}

:where(.wp-cltb-container:not(.wp-cltb-container--theme-look)) .wp-cltb-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

:where(.wp-cltb-container:not(.wp-cltb-container--theme-look)) .wp-cltb-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

:where(.wp-cltb-container:not(.wp-cltb-container--theme-look)) .wp-cltb-form input[type="text"],
:where(.wp-cltb-container:not(.wp-cltb-container--theme-look)) .wp-cltb-form input[type="url"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

:where(.wp-cltb-container:not(.wp-cltb-container--theme-look)) .wp-cltb-form .required {
  color: #dc3232;
}

:where(.wp-cltb-container:not(.wp-cltb-container--theme-look)) .wp-cltb-form .description {
  font-size: 12px;
  color: #666;
  margin-top: -10px;
  margin-bottom: 15px;
}

:where(.wp-cltb-container:not(.wp-cltb-container--theme-look)) .wp-cltb-result {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  margin-top: 20px;
}

:where(.wp-cltb-container:not(.wp-cltb-container--theme-look)) .wp-cltb-result-url {
  word-break: break-all;
  padding: 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 3px;
  margin-bottom: 10px;
}

.wp-cltb-copy-button {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.wp-cltb-copy-button .dashicons {
  margin-right: 5px;
}

/* Notice styles */
.wp-cltb-notice {
  background: #fff;
  border: 1px solid #ccd0d4;
  border-left-width: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  padding: 5px 12px;
  margin: 5px 0 10px;
}

.wp-cltb-info-notice {
  border-left-color: #00a0d2;
}

.wp-cltb-success-notice {
  border-left-color: #46b450;
}

.wp-cltb-warning-notice {
  border-left-color: #ffb900;
}

.wp-cltb-error-notice {
  border-left-color: #dc3232;
} 