/*
Theme Name: Vericast Hubspot
Theme URI: https://vericast.com/
Description: Style for Hubspot embeds.
Author: Rivetica
Version: 22-09-10
*/

/* Hubspot Forms
   ========================================================================== */
/* Archivo font */
@font-face {
  font-family: 'Archivo';
  src: url('./assets/fonts/Archivo-VariableFont_wdth,wght.woff2') format('woff2'),
      url('./assets/fonts/Archivo-VariableFont_wdth,wght.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Vericast icons */
@font-face {
  font-family: 'vericast-icons';
  src:  url('./assets/fonts/vericast-icons.eot?qj1qzw');
  src:  url('./assets/fonts/vericast-icons.eot?qj1qzw#iefix') format('embedded-opentype'),
    url('./assets/fonts/vericast-icons.ttf?qj1qzw') format('truetype'),
    url('./assets/fonts/vericast-icons.woff?qj1qzw') format('woff'),
    url('./assets/fonts/vericast-icons.svg?qj1qzw#vericast-icons') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'vericast-icons' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
}

/* Overload CSS must have higher specifity,
 * so instead of the .hs-form-.... class specify form.hs-form.
 */
form.hs-form label {
  font-family: Archivo, sans-serif !important;
  color: #3D6074 !important;
  font-size: 1rem !important;
  font-weight: 500;
  margin-bottom: 8px;
}

form.hs-form .field {
  margin-bottom: 18px;
}

form.hs-form .hs-input:not([type=checkbox]):not([type=radio]) {
  font-family: Archivo, sans-serif !important;
  height: 47px;
  font-size: .875rem;
  border: 1px solid #c7d3dc;
  background-color: #fff;
  border-radius: 3px;
  padding: 0 12px;
  box-shadow: 0 1px 4px rgba(18, 25, 97, 0.0779552);
}

form.hs-form .actions {
  padding: 0;
}

form.hs-form .hs-button {
  font-family: Archivo, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  letter-spacing: .05em;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg,rgb(2,35,81) 0%,rgb(0,127,188) 33%,rgb(2,35,81) 66%,rgb(0,127,188) 100%) !important;
  background-size: 325% 100% !important;
  transition: all 0.4s ease-in-out;

  &:hover {
    background-position: 100% 0 !important;
  }
}

/* Nix default browser styling for select elements */
form.hs-form .hs-fieldtype-select select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
}
/* Container for select elements */
form.hs-form .hs-fieldtype-select .input {
  position: relative;
  background-color: #fff;
}
/* Append disclosure control to right of container.
 * Will show through select element */
form.hs-form .hs-fieldtype-select .input:after {
  content: "\e906";
  font-family: "vericast-icons" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  font-size: 14px;
  text-transform: none;
  line-height: 1;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  width: 60px;
  text-align: center;
  pointer-events: none;
}


/*
 * HubSpot Consent Buttons */
body #hs-eu-cookie-confirmation #hs-eu-confirmation-button, 
body #hs-eu-cookie-confirmation #hs-eu-cookie-settings-button, 
body #hs-eu-cookie-confirmation #hs-eu-decline-button,
body #hs-modal-content #hs-modal-accept-all, 
body #hs-modal-content #hs-modal-save-settings {
	border: 0;
	background: var(--wp--preset--gradient--button-gradient-blue-teal-ltr);
	color: var(--wp--preset--color--white);
	box-sizing: border-box;
	display: inline-block;
	padding-top: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--40);
	padding-left: var(--wp--preset--spacing--40);
	background-size: 325% 100% !important;
	transition: all 400ms ease-in-out;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--loose);
	line-height: var(--wp--custom--line-height--tiny);
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	word-break: break-word;
	white-space: nowrap;
}
body #hs-eu-cookie-confirmation #hs-eu-cookie-settings-button,
body #hs-modal-content #hs-modal-accept-all {
	background: var(--wp--preset--gradient--button-gradient-navy-blue-ltr);
}
body #hs-eu-cookie-confirmation #hs-eu-confirmation-button:hover, 
body #hs-eu-cookie-confirmation #hs-eu-cookie-settings-button:hover, 
body #hs-eu-cookie-confirmation #hs-eu-decline-button:hover,
body #hs-modal-content #hs-modal-accept-all:hover, 
body #hs-modal-content #hs-modal-save-settings:hover {
	background-position: 100% 0 !important;
}

