/*
===============================================================================
YUBEEN OPTICS — CONTACT CONTEXT PREFILL STYLES
===============================================================================
*/

.ybn-ccp1-context {
  --ybn-ccp1-red: #ed2228;
  --ybn-ccp1-ink: #15161a;
  --ybn-ccp1-muted: #666a72;

  position: relative;
  isolation: isolate;

  width: 100%;

  margin:
    0
    0
    24px;

  padding:
    18px
    20px;

  overflow: hidden;

  border:
    1px solid
    rgba(18, 19, 22, 0.10);

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(248, 247, 244, 0.96) 0%,
      rgba(244, 242, 238, 0.96) 100%
    );

  box-shadow:
    0 12px 34px
    rgba(20, 22, 26, 0.055);

  font-family: inherit;
}


.ybn-ccp1-context::before {
  content: "";

  position: absolute;
  z-index: -1;

  right: -54px;
  top: -88px;

  width: 190px;
  height: 190px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(237, 34, 40, 0.10) 0%,
      rgba(237, 34, 40, 0.025) 47%,
      transparent 72%
    );

  pointer-events: none;
}


.ybn-ccp1-context__top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  margin-bottom: 12px;
}


.ybn-ccp1-context__eyebrow {
  display: flex;
  align-items: center;

  gap: 9px;

  margin: 0;

  color:
    var(--ybn-ccp1-red);

  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


.ybn-ccp1-context__eyebrow::before {
  content: "";

  width: 24px;
  height: 1px;

  background:
    currentColor;
}


.ybn-ccp1-context__clear {
  min-height: 28px;

  padding:
    6px
    10px;

  border:
    1px solid
    rgba(18, 19, 22, 0.11);

  border-radius: 999px;

  color:
    #656971;

  background:
    rgba(255, 255, 255, 0.54);

  cursor: pointer;

  font: inherit;
  font-size: 9px;
  font-weight: 650;

  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}


.ybn-ccp1-context__clear:hover,
.ybn-ccp1-context__clear:focus-visible {
  color:
    #202126;

  border-color:
    rgba(18, 19, 22, 0.22);

  background:
    rgba(255, 255, 255, 0.84);

  outline: none;
}


.ybn-ccp1-context__chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 11px;
}


.ybn-ccp1-context__chip {
  min-height: 30px;

  display: inline-flex;
  align-items: center;

  padding:
    7px
    11px;

  border:
    1px solid
    rgba(18, 19, 22, 0.11);

  border-radius: 999px;

  color:
    #33353b;

  background:
    rgba(255, 255, 255, 0.68);

  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}


.ybn-ccp1-context__chip--priority {
  color:
    #ffffff;

  border-color:
    rgba(237, 34, 40, 0.72);

  background:
    linear-gradient(
      135deg,
      #f02b31 0%,
      #dc1d23 100%
    );

  box-shadow:
    0 8px 22px
    rgba(237, 34, 40, 0.14);
}


.ybn-ccp1-context__description {
  max-width: 680px;

  margin: 0;

  color:
    var(--ybn-ccp1-muted);

  font-size: 11px;
  line-height: 1.55;
}


/*
Subtle feedback on the automatically selected product field.
*/
.ybn-ccp1-autofilled {
  border-color:
    rgba(237, 34, 40, 0.46) !important;

  box-shadow:
    0 0 0 3px
    rgba(237, 34, 40, 0.07) !important;
}


@media (max-width: 767px) {

  .ybn-ccp1-context {
    margin-bottom: 20px;

    padding:
      16px;
  }


  .ybn-ccp1-context__top {
    align-items: flex-start;
  }


  .ybn-ccp1-context__chips {
    align-items: stretch;
    flex-direction: column;
  }


  .ybn-ccp1-context__chip {
    width: 100%;

    justify-content: center;
  }

}


@media (prefers-reduced-motion: reduce) {

  .ybn-ccp1-context__clear {
    transition: none !important;
  }

}



/* 表单锚点跳转时，为固定Header预留空间 */
#thermal-inquiry-form {
  scroll-margin-top: 100px;
}

/* 登录WordPress后存在顶部管理栏 */
body.admin-bar #thermal-inquiry-form {
  scroll-margin-top: 132px;
}

@media (max-width: 767px) {
  #thermal-inquiry-form {
    scroll-margin-top: 78px;
  }

  body.admin-bar #thermal-inquiry-form {
    scroll-margin-top: 110px;
  }
}
