/*
Buttons
*/
.cp__button-container {
  display: flex;
  flex-direction: column-reverse;
  margin-top: 40px;
  border-top: 1px solid #868686;
  padding-top: 40px;
}

@media screen and (min-width: 1026px) {
  .cp__button-container {
    flex-direction: row;
  }
}

.cp__confirm-button {
  text-align: center;
  margin-bottom: 8px;
  cursor: pointer;
}

@media screen and (min-width: 1026px) {
  .cp__confirm-button {
    margin-bottom: 0;
    text-align: left;
  }
}

.cp__cancel-button {
  border: 1px solid;
  color: #0d123d;
  text-decoration: none;
  cursor: pointer;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: 1rem;
}

@media screen and (min-width: 1026px) {
  .cp__cancel-button {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-top: 0;
  }
}

/*
Form Fields
*/
.cp__form-field__container {
  border: 1px solid #ccc;
  min-width: 200px;
  width: 350px;
}

.cp__form-field {
  width: 100%;

  height: 50px;
  padding: 10px 40px 10px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #404040;
}

.cp__form-field.cp__active {
  border: 1px solid #0392cf;
}

.cp__form-field.cp__invalid {
  border: 1px solid #ea5e5f;
}

.cp__form-field__invalid-icon {
  display: none;
}

.cp__form-field.cp__invalid .cp__form-field__invalid-icon {
  display: flex;
}

@media screen and (min-width: 1026px) {
  .cp__form-field {
    min-width: 350px;
  }
}

.cp__form-field__label {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 32px;
  color: #868686;
  font-size: 1rem;
  margin-left: 0.25rem;
  margin-top: -1.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  background-image: linear-gradient(0deg, #fff 0.675rem, transparent 0);
  transition: all linear 0.1s;
}

.cp__form-field__input {
  outline: none !important;
}

.cp__form-field__input__invalid {
  outline: none !important;
}

.cp__form-field__label.cp__active {
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.875rem;
  /* color: #0392CF; */
}

/* ====================
Customer Portal - Modal
==================== */

/* Account Settings - Modal - Main Overlay and wrapper */
.cp__modal_overlay {
  display: flex;
  align-items: flex-start;
  padding-top: 90px;
  pointer-events: auto;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  justify-content: center;
  align-items: center;

  background-color: rgba(0, 0, 0, 0.3);

  z-index: 10;
}

@media screen and (min-width: 1026px) {
  .cp__modal_overlay {
    align-items: center;
    padding-top: 0;
  }
}

.cp__modal__bill-estimate,
.cp__modal {
  display: flex;
}

/* Customer Portal - Modal - Wrapper */
.cp__modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 106px);

  justify-content: flex-start;
  align-items: center;
  flex-direction: column;

  background-color: white;

  padding: 32px;
  margin-right: 16px;
  margin-left: 16px;

  overflow-y: auto;
}

@media screen and (min-width: 1026px) {
  .cp__modal {
    justify-content: center;
    padding: 64px;
  }
}

/* Customer Portal - Modal - Close Button */

.cp__modal__close-button {
  position: absolute;
  top: 0;
  right: 0;
  padding: 24px;
  cursor: pointer;
}

/* Customer Portal - Modal - Content */

.cp__modal__content {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

/*
Utility
*/

.cp__hide {
  display: none !important;
  pointer-events: none !important;
}
