/* -------------------------------
    Global spacing variables
--------------------------------- */
/*** 1 - Breakpoint sizes for media queries ***/
/*
*  Global variables
*
*  Used across multiple components
*/
/*
*  Global colour variables
*
*  1 - Greyscale colours
*  2 - System colours
*  3 - Accent colours
*    3.1 - Main
*    3.2 - Light
*    3.3 - Dark
*    3.4 - Callout backgrounds
*/
/*** 1 - Greyscale colours ***/
/*** 2 - System colours ***/
/*** 3 - Accent colours ***/
/* Main */
/* Light */
/* Dark */
/* callout backgrounds */
/* icon colours */
/* service ontario header colours */
/* -------------------------------
    Global font-weight variables
--------------------------------- */
/* -------------------------------
    Global font variables
--------------------------------- */
/* -------------------------------
    Focus placeholder variables
--------------------------------- */
/* -------------------------------
    Focus placeholder
--------------------------------- */
.ontario-button:focus, .ontario-button:active {
  box-shadow: 0 0 0 4px #009ADB;
  outline: 4px solid transparent;
  transition: box-shadow 0.1s ease-in-out;
}

:host {
  display: inline-block;
}

.ontario-button {
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: none;
  display: inline-block;
  font-size: 1.125rem;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.5555555556;
  margin: 0;
  min-width: 10rem;
  padding: 0.625rem 1.5rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
@media screen and (max-width: 40em) {
  .ontario-button {
    margin-right: 0;
    display: block;
    width: 100%;
  }
}
.ontario-button .ontario-icon {
  margin-right: 4px;
}

.ontario-button--primary {
  background-color: #0066CC;
  color: #FFFFFF;
}
.ontario-button--primary:hover {
  background-color: #00478F;
  color: #FFFFFF;
}
.ontario-button--primary:focus {
  background-color: #00478F;
  color: #FFFFFF;
  transition: background-color 0.2s ease-out, box-shadow 0.1s ease-in-out;
}
.ontario-button--primary:active {
  background-color: #002142;
  color: #FFFFFF;
  transition: background-color 0s, box-shadow 0.1s ease-in-out;
}
.ontario-button--primary:visited {
  color: #FFFFFF;
}

.ontario-button--secondary {
  background-color: #FFFFFF;
  border: 2px solid #0066CC;
  color: #0066CC;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.ontario-button--secondary:hover {
  background-color: rgb(224.4, 239.7, 255);
  border-color: #00478F;
  color: #00478F;
}
.ontario-button--secondary:focus {
  background-color: rgb(224.4, 239.7, 255);
  border-color: #00478F;
  color: #00478F;
  transition: background-color 0.2s ease-out, box-shadow 0.1s ease-in-out;
}
.ontario-button--secondary:active {
  background-color: rgb(193.8, 224.4, 255);
  border-color: #002142;
  color: #002142;
  transition: background-color 0s, box-shadow 0.1s ease-in-out;
}
.ontario-button--secondary:visited {
  color: #0066CC;
}

.ontario-button--tertiary {
  background-color: transparent;
  color: #0066CC;
  text-decoration: underline;
}
.ontario-button--tertiary:hover {
  background-color: rgb(232.05, 232.05, 232.05);
  color: #00478F;
  text-decoration: underline;
}
.ontario-button--tertiary:focus {
  background-color: rgb(232.05, 232.05, 232.05);
  color: #00478F;
  text-decoration: underline;
  transition: background-color 0.2s ease-out, box-shadow 0.1s ease-in-out;
}
.ontario-button--tertiary:active {
  background-color: rgb(209.1, 209.1, 209.1);
  color: #002142;
  text-decoration: underline;
  transition: background-color 0s, box-shadow 0.1s ease-in-out;
}
.ontario-button--tertiary:visited {
  color: #0066CC;
}

.ontario-button--internalThemeDark {
  background-color: rgb(25.5, 25.5, 25.5);
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
}
.ontario-button--internalThemeDark:hover {
  background-color: rgb(76.5, 76.5, 76.5);
}
.ontario-button--internalThemeDark:focus {
  background-color: rgb(76.5, 76.5, 76.5);
  transition: background-color 0.2s ease-out, box-shadow 0.1s ease-in-out;
}
.ontario-button--internalThemeDark:active {
  background-color: rgb(76.5, 76.5, 76.5);
  transition: background-color 0s, box-shadow 0.1s ease-in-out;
}
.ontario-button--internalThemeDark:visited {
  color: #0066CC;
}

/**
* Tertiary button defaults are overridden to achieve the mini-button specifications
* width is unset in small screen size to remove unnecessary space being added to the button
* min-width and max-width are set for small screen size to ensure the "back" button doesn't break and protrude into the text to the right
*/
.ontario-back-button {
  display: flex;
  align-items: center;
  margin: 0.75rem 0 1rem;
  padding-left: 0.5rem;
  padding-right: 1rem;
  min-width: 3rem;
}
@media screen and (max-width: 40em) {
  .ontario-back-button {
    width: unset;
  }
}
.ontario-back-button .ontario-icon {
  margin: 0 0.375rem 0 0;
  padding: 0;
  min-width: 24px;
  min-height: 24px;
}

.ontario-back-button--disabled {
  pointer-events: none;
  opacity: 0.65;
  text-decoration: none;
}