/**
 * @file
 * Styles for Corporate+'s buttons.
 */
a.button,
.button > a,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px 23px;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  border-width: 1px;
  border-style: solid;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  margin: 10px 0;
  text-align: center;
  background-color: transparent;
}
.headings-wide-spacing-enabled a.button,
.headings-wide-spacing-enabled .button > a,
.headings-wide-spacing-enabled input[type="submit"],
.headings-wide-spacing-enabled input[type="reset"],
.headings-wide-spacing-enabled input[type="button"] {
  letter-spacing: 0.25em;
}
input[type="submit"] + input[type="submit"],
.button + .button {
  margin-left: 20px;
}
@media (max-width: 767px) {
  .text-center .button + .button {
    margin-right: 5px;
  }
  .text-center .button {
    margin-right: 5px;
    margin-left: 5px;
  }
}
a.button:hover,
a.button:focus,
.button > a:hover,
.button > a:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="button"]:hover,
input[type="button"]:focus {
  color: #ffffff;
}
.region--light-typography a.button,
.region--light-typography .button > a,
.region--light-typography input[type="submit"],
.region--light-typography input[type="reset"],
.region--light-typography input[type="button"] {
  color: #ffffff;
  text-decoration: none;
  background-color: transparent;
  border-style: solid;
  border-width: 1px;
  border-color: #ffffff;
}
.region--light-typography a.button:hover,
.region--light-typography .button > a:hover,
.region--light-typography input[type="submit"]:hover,
.region--light-typography input[type="reset"]:hover,
.region--light-typography input[type="button"]:hover,
.region--light-typography a.button:focus,
.region--light-typography .button > a:focus,
.region--light-typography input[type="submit"]:focus,
.region--light-typography input[type="reset"]:focus,
.region--light-typography input[type="button"]:focus {
  background-color: #ffffff;
  border-color: #ffffff;
}
span.button-operator {
  margin: 0 10px 0 5px;
}
a.button i {
  padding-right: 10px;
}
a.button--no-margins {
  margin: 0;
}

/* ==========================================================================
   ProPipe Brand Buttons
   ========================================================================== */

/* ── Base ── */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: var(--text-button);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Filled variants ── */

.btn-primary,
.btn-primary:visited {
  background-color: var(--pp-reflex-blue);
  border-color: var(--pp-reflex-blue);
  color: var(--pp-white);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--pp-reflex-blue-dark);
  border-color: var(--pp-reflex-blue-dark);
  color: var(--pp-white);
}

.btn-secondary,
.btn-secondary:visited {
  background-color: var(--pp-bright-blue);
  border-color: var(--pp-bright-blue);
  color: var(--pp-white);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--pp-bright-blue-dark);
  border-color: var(--pp-bright-blue-dark);
  color: var(--pp-white);
}

.btn-accent,
.btn-accent:visited {
  background-color: var(--pp-orange);
  border-color: var(--pp-orange);
  color: var(--pp-white);
}
.btn-accent:hover,
.btn-accent:focus-visible {
  background-color: var(--pp-orange-dark);
  border-color: var(--pp-orange-dark);
  color: var(--pp-white);
}

.btn-danger,
.btn-danger:visited {
  background-color: var(--pp-red);
  border-color: var(--pp-red);
  color: var(--pp-white);
}
.btn-danger:hover,
.btn-danger:focus-visible {
  background-color: var(--pp-red-dark);
  border-color: var(--pp-red-dark);
  color: var(--pp-white);
}

.btn-dark,
.btn-dark:visited {
  background-color: var(--pp-dark-gray);
  border-color: var(--pp-dark-gray);
  color: var(--pp-white);
}
.btn-dark:hover,
.btn-dark:focus-visible {
  background-color: var(--pp-dark-gray-dark);
  border-color: var(--pp-dark-gray-dark);
  color: var(--pp-white);
}

.btn-white,
.btn-white:visited {
  background-color: var(--pp-white);
  border-color: var(--pp-white);
  color: var(--pp-reflex-blue);
}
.btn-white:hover,
.btn-white:focus-visible {
  background-color: var(--pp-light-gray);
  border-color: var(--pp-light-gray);
  color: var(--pp-reflex-blue);
}

/* ── Outline variants ── */

.btn-outline-primary,
.btn-outline-primary:visited {
  background-color: transparent;
  border-color: var(--pp-reflex-blue);
  color: var(--pp-reflex-blue);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  background-color: var(--pp-reflex-blue);
  border-color: var(--pp-reflex-blue);
  color: var(--pp-white);
}

.btn-outline-secondary,
.btn-outline-secondary:visited {
  background-color: transparent;
  border-color: var(--pp-bright-blue);
  color: var(--pp-bright-blue);
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
  background-color: var(--pp-bright-blue);
  border-color: var(--pp-bright-blue);
  color: var(--pp-white);
}

.btn-outline-accent,
.btn-outline-accent:visited {
  background-color: transparent;
  border-color: var(--pp-orange);
  color: var(--pp-orange);
}
.btn-outline-accent:hover,
.btn-outline-accent:focus-visible {
  background-color: var(--pp-orange);
  border-color: var(--pp-orange);
  color: var(--pp-white);
}

.btn-outline-white,
.btn-outline-white:visited {
  background-color: transparent;
  border-color: var(--pp-white);
  color: var(--pp-white);
}
.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background-color: var(--pp-white);
  border-color: var(--pp-white);
  color: var(--pp-reflex-blue);
}

/* ── Size modifiers ── */

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-button-sm);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-button-lg);
}

/* ── Full-width modifier ── */
.btn-block {
  display: block;
  width: 100%;
}

/* ── Rounded pill modifier ── */
.btn-pill {
  border-radius: 50px;
}

/* ── Legacy .green-btn alias ── */
.green-btn,
.green-btn:visited {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: var(--text-button);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  background-color: var(--pp-bright-blue);
  border-color: var(--pp-bright-blue);
  color: var(--pp-white);
}
.green-btn:hover,
.green-btn:focus-visible {
  background-color: var(--pp-bright-blue-dark);
  border-color: var(--pp-bright-blue-dark);
  color: var(--pp-white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.green-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/*Buttons hover style 2*/
a.button.button--hover-style-2,
.button.button--hover-style-2 > a {
  position: relative;
  z-index: 1;
}
a.button.button--hover-style-2:before,
.button.button--hover-style-2 > a:before {
  content:"";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform: scaleX(0);
  border-radius: 3px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
a.button.button--hover-style-2:hover:before,
a.button.button--hover-style-2:focus:before,
.button.button--hover-style-2 > a:hover:before,
.button.button--hover-style-2 > a:focus:before {
  transform: scaleX(1);
}

/*Colored Regions style 2*/
.region--colored-background a.button.button--hover-style-2:hover,
.region--dark-background a.button.button--hover-style-2:hover,
.region--black-background a.button.button--hover-style-2:hover,
.region--colored-background .button.button--hover-style-2 > a:hover,
.region--dark-background .button.button--hover-style-2 > a:hover,
.region--black-background .button.button--hover-style-2 > a:hover {
  background-color: #ffffff;
  border-color: #ffffff;
}
.region--light-typography a.button.button--hover-style-2:before,
.region--light-typography .button.button--hover-style-2 > a:before {
  background-color: #ffffff;
  border-color: #ffffff;
}
