/*
 * "Get Featured in This Article" on Image Studio's editorial articles
 * (includes/featured.php). The pill sits in the date line under the title -
 * white on the English articles' black header, dark on the Italian ones - so
 * it takes its colour from that line. The panel is the client's design
 * (okPInmTvoyUs.jpg) in Image Studio's own type: white card, black button.
 */

.cps-single-date.isb-has-feature {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.isb-feature-trigger,
.isb-feature-trigger:hover,
.isb-feature-trigger:focus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 600 13px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
}
.isb-feature-trigger:hover,
.isb-feature-trigger[aria-expanded="true"] {
  background: rgba(127, 127, 127, 0.16);
}
.isb-feature-trigger:focus-visible,
.isb-feature-panel :focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
}
.isb-feature-row {
  margin: 0 0 16px;
}

.isb-icon {
  width: 14px;
  height: 14px;
  flex: none;
}

/* The panel. Positioned under the pill by featured.js. */
.isb-feature-panel {
  position: absolute;
  z-index: 9999;
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  color: #111;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  font: 400 15px/1.55 Arial, Helvetica, sans-serif;
  text-align: left;
}
.isb-feature-panel[hidden] {
  display: none;
}
.isb-feature-panel:focus {
  outline: none;
}
.isb-feature-panel p {
  margin: 0;
}
.isb-feature-panel .isb-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.isb-feature-panel .isb-title {
  margin: 12px 0 0;
  padding: 0;
  color: #000;
  font: 400 24px/1.25 VogueAvantGarde, Tajawal, Helvetica, sans-serif;
  letter-spacing: -0.02em;
  text-transform: none;
}
.isb-feature-panel .isb-description {
  margin-top: 10px;
  color: #555;
}
.isb-feature-panel .isb-notice {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #f6f6f6;
  font-size: 14px;
}
.isb-feature-panel .isb-notice[hidden],
.isb-feature-panel .isb-error[hidden],
.isb-feature-panel [hidden] {
  display: none;
}

.isb-feature-panel .isb-card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #f7f7f7;
}
.isb-feature-panel .isb-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
}
.isb-feature-panel .isb-label {
  color: #666;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.isb-feature-panel .isb-price {
  margin-top: 4px;
  font: 400 32px/1.1 VogueAvantGarde, Tajawal, Helvetica, sans-serif;
}
.isb-feature-panel .isb-terms {
  font-size: 14px;
  text-align: right;
}
.isb-feature-panel .isb-terms p + p {
  margin-top: 6px;
  color: #666;
}
.isb-feature-panel .isb-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.isb-feature-panel .isb-check .isb-icon {
  color: #15803d;
  width: 16px;
  height: 16px;
}

.isb-feature-panel .isb-buy,
.isb-feature-panel .isb-buy:hover,
.isb-feature-panel .isb-buy:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 16px 0 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: 700 16px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
}
.isb-feature-panel .isb-buy:hover {
  background: #222;
}
.isb-feature-panel .isb-buy[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.isb-feature-panel .isb-approval {
  margin-top: 12px;
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* The three questions. */
.isb-feature-panel .isb-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}
.isb-feature-panel .isb-back,
.isb-feature-panel .isb-back:hover,
.isb-feature-panel .isb-back:focus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 0;
  background: none;
  color: #666;
  font: 400 14px/1.2 Arial, Helvetica, sans-serif;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
}
.isb-feature-panel .isb-back:hover {
  color: #000;
}
.isb-feature-panel .isb-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.isb-feature-panel .isb-details > p {
  margin-top: 16px;
}
.isb-feature-panel label {
  display: block;
  margin-bottom: 6px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
}
.isb-feature-panel input[type="email"],
.isb-feature-panel input[type="text"],
.isb-feature-panel textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: 400 16px/1.4 Arial, Helvetica, sans-serif;
  box-shadow: none;
}
.isb-feature-panel textarea {
  min-height: 84px;
  resize: vertical;
}
.isb-feature-panel input:focus,
.isb-feature-panel textarea:focus {
  border-color: #000;
  outline: 2px solid rgba(0, 0, 0, 0.12);
}
.isb-feature-panel .isb-error {
  margin-top: 12px;
  color: #b42318;
  font-size: 14px;
}
/* Only bots fill this in. */
.isb-feature-panel .isb-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .isb-feature-panel {
    padding: 18px;
  }
  .isb-feature-panel .isb-title {
    font-size: 21px;
  }
  .isb-feature-panel .isb-card {
    padding: 16px;
  }
  .isb-feature-panel .isb-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .isb-feature-panel .isb-terms {
    text-align: left;
  }
}
