/* Product task 7: demo button, messengers, tabs and popup polish. */
body.single-product div.product .summary.entry-summary .faeton-product-extra-actions {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

body.single-product .faeton-product-demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 22px;
  color: #fff;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.25;
  text-align: center;
  background: #215bc2;
  border: 1px solid #215bc2;
  border-radius: 8px;
  cursor: pointer;
}

body.single-product .faeton-product-demo-button:hover,
body.single-product .faeton-product-demo-button:focus-visible {
  color: #fff;
  background: #5f6470;
  border-color: #5f6470;
}

body.single-product .faeton-product-messengers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.single-product .faeton-product-messenger {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: #111827;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.1;
  text-decoration: none;
  background: #f4f7fb;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
}

body.single-product .faeton-product-messenger:hover {
  color: #fff;
  background: #215bc2;
  border-color: #215bc2;
}

.faeton-demo-modal[hidden] {
  display: none !important;
}

.faeton-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.faeton-demo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .62);
}

.faeton-demo-modal__dialog {
  position: relative;
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 34px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .26);
}

.faeton-demo-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: #111827;
  font-size: 26px !important;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.faeton-demo-modal h2 {
  margin: 0 34px 12px 0;
  color: #111827;
  font-size: 32px;
  font-weight: 400 !important;
  line-height: 1.15;
}

.faeton-demo-modal p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 16px !important;
  line-height: 1.45;
}

.faeton-demo-modal .wpcf7-form {
  display: grid;
  gap: 12px;
}

.faeton-demo-modal .wpcf7-form p {
  margin: 0;
}

.faeton-demo-modal label {
  display: grid;
  gap: 7px;
  color: #111827;
  font-size: 15px !important;
  line-height: 1.3;
}

.faeton-demo-modal input[type="text"],
.faeton-demo-modal input[type="tel"] {
  width: 100%;
  height: 50px;
  padding: 10px 14px;
  color: #111827;
  font-size: 16px !important;
  background: #fff;
  border: 1px solid #d3dae3;
  border-radius: 8px;
}

.faeton-demo-modal input[type="submit"] {
  width: 100%;
  height: 52px;
  color: #fff;
  font-size: 17px !important;
  font-weight: 400 !important;
  background: #111827;
  border: 1px solid #111827;
  border-radius: 8px;
}

.faeton-demo-modal input[type="submit"]:hover {
  background: #215bc2;
  border-color: #215bc2;
}

.faeton-demo-modal .wpcf7-acceptance,
.faeton-demo-modal .wpcf7-acceptance *,
.blockMsgAwooc .wpcf7-acceptance,
.blockMsgAwooc .wpcf7-acceptance *,
.blockMsgAwooc .wpcf7-acceptance a {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.faeton-demo-modal .wpcf7-acceptance label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.faeton-demo-modal .wpcf7-spinner {
  display: none;
}

.blockMsgAwooc input[type="submit"]:hover,
.blockMsgAwooc button[type="submit"]:hover,
.blockMsgAwooc .wpcf7-submit:hover {
  color: #fff !important;
  background: #215bc2 !important;
  border-color: #215bc2 !important;
}

body.single-product .woocommerce-tabs .faeton-product-docs a {
  color: #215bc2;
  font-size: inherit !important;
}

@media (max-width: 600px) {
  body.single-product .faeton-product-messengers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faeton-demo-modal__dialog {
    padding: 28px 18px;
  }

  .faeton-demo-modal h2 {
    font-size: 26px;
  }
}
