/* --- Women Veterans Call Center Promo Block --- */
/* - Currently targeted for right-column of VHA Template, but the layout rules can be expanded to accommodate content area usage as well - */


.widget .promo {
  /* Override of right column .widget(parent) container's 3px gap above and bottom padding */
  margin-top: -3px;
  margin-bottom: -3px;
}

/* Container block for the promo */
.promo {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  font-family: "Myriad Pro Bold Condensed", "Arial Narrow", "Arial", sans-serif;
  font-weight: 500;
  background-color: #fff;
    border: 4px solid #1f89ca;
}

/* Block definition for the image with logo and slogan */
.promo .message {
  flex-basis: 100%;
  width: 100%;
  height: auto;
}



/* - Calls to Action blocks and adjustments to allow responsive layout - */
/* Facilitates responsive structure of cta > actions[single|multi] > action[phone|call|text] */
.promo .cta {
  flex-basis: 100%;
  margin-top: 7px;
}

.promo .cta .actions {
  display: flex;
  flex-direction: row;
  /* flex-wrap: nowrap; */
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

/* Single and Multi define whether there is one or more .action blocks within the .cta container */

.promo .cta .actions.single .action {
  flex-basis: 100%;
}

.promo .cta .actions.multi .action {
  flex-basis: 50%;
}

.promo .cta .actions.multi .action.chat {
    flex-basis: 100%;
    margin: 0px;
    padding: 0px;
}

/* Define interactive .action elements */

.promo .cta .actions .action {
  background-color: #fff;
  transition: 0.3s;
}

.promo .action:hover, .promo .action:focus, .promo .cta .actions .action:hover,
.promo .cta .actions .action:focus {
  background-color: #ffffaa;
}

.promo .cta .actions.single .action img,
.promo .cta .actions.multi .action img  {
  width: 100%;
  height: auto;
}

/* Define layout of text-based portion of the promo */

.promo .details {
  flex-basis: 100%;
  padding: 6px 8px;
  background-color: #1f89ca;
  color: #fff;
  text-align: center;
}

.promo .details h5 {
  padding: 0;
  font-family: "Myriad Pro Bold SemiCondensed", "Arial Narrow", "Arial", sans-serif;
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
}

.promo .details p {
  margin: 0.5em auto;
  padding: 0;
  font-family: "Myriad Pro Bold Condensed", "Arial Narrow", "Arial", sans-serif;
  color: #fff;
  text-align: center;
  font-size: 16px;
  word-break: keep-all;
}

/* Defines the leading words of the p content */
.promo .details p span {
  display: block;
  font-weight: 800;
}



@media screen and (max-width: 960px) { /*and (min-width: 769px) {*/
/* Change layout to be more horizontally oriented for mid-range display sizes */
/* Note that the main layout blocks are reordered for better layout */

  .promo {
    width: calc(100% + 20px);
    margin-left: -10px;
    margin-right: -10px;
    align-items: stretch;
  }

  .promo .message {
    /* flex-basis: 60%;
    width: 60%; */
    flex-basis: 50%;
    width: 50%;
    height: auto;
    order: 1;
  }

  .promo .cta {
    flex-basis: 50%;
  }

  .promo .cta:first-of-type {
    flex-basis: 100%;
    order: 3;
  }

  .promo .cta:nth-of-type(2){
    /* flex-basis: 33%; */
    flex-basis: 50%;
    order: 2;
    align-self: center;
  }

  .promo .details {
    flex-basis: 100%;
    order: 4;
  }

  .promo .cta:first-of-type .actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
    width: 100%;
  }

  .promo .cta:first-of-type .actions.single .action {
    width: 100%;
  }


  .promo .cta:nth-of-type(2) .actions {
    flex-direction: row;
    flex-wrap: wrap; /* nowrap */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .promo .cta .actions.single .action {
    flex-basis: 85%;
  }
  .promo .cta:nth-of-type(2) .actions.multi .action {
    width: 100%;
    /* width: auto; */
  }


  .promo .details {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
    padding: 12px;
  }

  .promo .details h5 {
    margin: 0;
    /*padding: 0 24px;*/
    /*font-size: 20px;*/
    font-size: calc((100vw / 4.5) * 0.2);
  }

  .promo .details p {
    margin: 0;
    /*padding: 0 16px;*/
    /*font-size: 20px;*/
    font-size: calc((100vw / 4.5) * 0.1);
  }

}

@media screen and (max-width: 768px) {
/* Adjust layout back to vertical structure, but account for widget container padding rules*/

  .promo {
    width: calc(100% + 20px);
    margin-left: -10px;
    margin-right: -10px;
    align-items: stretch;
  }

  .promo .message {
    /* flex-basis: 60%;
    width: 60%; */
    flex-basis: 100%;
    height: auto;
    order: 1;
  }

  .promo .cta:first-of-type {
    flex-basis: 100%;
    order: 3;
  }

  .promo .cta:nth-of-type(2){
    /* flex-basis: 33%; */
    flex-basis: 100%;
    order: 2;
    align-self: center;
  }

  .promo .cta .actions.single .action {
    flex-basis: 100%;
  }

  .promo .details {
    flex-basis: 100%;
    order: 4;
  }

  .promo .cta:first-of-type .actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
    width: 100%;
  }

  .promo .cta:first-of-type .actions.single .action {
    width: 100%;
  }


  .promo .cta:nth-of-type(2) .actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .promo .cta:nth-of-type(2) .actions.multi .action {
    /* width: 100%; */
    width: auto;
  }

    .promo .details {
        flex-wrap: wrap;
    }

    .promo .details h5 {
        flex-basis:100%;
        margin: 0;
        padding: 0 0 0.25em 0;
        /*font-size: 20px;*/
        font-size: calc((100vw / 4.5) * 0.25);
        letter-spacing: 0.05em;
    }

    .promo .details p {
        flex-basis:48%;
        margin: 0;
        /*padding: 0 16px;*/
        /*font-size: 20px;*/
        font-size: calc((100vw / 4.5) * 0.175);
        line-height: 1.13em;
    }

}