/* Block specific CSS */
.ql-button,
.ql-button:hover,
.ql-button:focus,
.acf-block-preview .ql-button,
.acf-block-preview .ql-button:hover,
.acf-block-preview .ql-button:focus {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.ql-button a,
.ql-button.ql-button-primary a,
.acf-block-preview .ql-button a {
  font-family: "Manrope", sans-serif;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background-color: #e0824e;
  border: 2px solid #e0824e;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.625;
  padding: 8px 22px;
  margin-bottom: 24px;
  margin-top: 6px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  text-transform: uppercase;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15);
}

.ql-button a:hover,
.ql-button.ql-button-primary a:hover,
.acf-block-preview .ql-button a:hover {
  background-color: #d96629;
  border: 2px solid #d96629;
  color: #fff;
  opacity: 1;
}

/* Button alignment */
.ql-button.button-left {
  text-align: start;
}
.ql-button.button-center {
  text-align: center;
}
.ql-button.button-right {
  text-align: end;
}

/* Button display */
.ql-button.button-display-inline {
  display: inline-block;
}

.ql-button.ql-button-text-primary a,
.ql-button.ql-button-white.ql-button-text-primary a,
.acf-block-preview .ql-button.ql-button-white.ql-button-text-primary a {
  color: #68a0ca;
}

/* Button icon: Arrow */
.ql-button.icon-arrow-right a::after,
.ql-button.ql-button-white.icon-arrow-right a::after,
.ql-button.ql-button-primary.button-minimal.icon-arrow-right a::after {
  content: "";
  display: inline-block;
  background-image: url("../../../assets/icons/arrow-right-orange.svg");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  width: 18px;
  height: 8px;
  margin-left: 6px;
}
.ql-button.ql-button-primary.icon-arrow-right a::after {
  background-image: url("../../../assets/icons/arrow-right-white.svg");
}
.ql-button.ql-button-text-primary a::after,
.ql-button.ql-button-white.ql-button-text-primary a::after,
.ql-button.ql-button-primary.button-minimal.icon-arrow-right.ql-button-text-primary
  a::after {
  background-image: url("../../../assets/icons/arrow-right-blue.svg");
}

/* Button icon: PDF */
.ql-button.icon-pdf a::after,
.ql-button.ql-button-white.icon-pdf a::after,
.ql-button.ql-button-primary.button-minimal.icon-pdf a::after {
  content: "";
  display: inline-block;
  background-image: url("../../../assets/icons/filetype-pdf-orange.svg");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  width: 12px;
  height: 16px;
  margin-left: 6px;
}
.ql-button.ql-button-primary.icon-pdf a::after {
  background-image: url("../../../assets/icons/filetype-pdf-white.svg");
}
.ql-button.ql-button-text-primary.icon-pdf a::after,
.ql-button.ql-button-white.ql-button-text-primary.icon-pdf a::after,
.ql-button.ql-button-primary.button-minimal.icon-pdf.ql-button-text-primary
  a::after {
  background-image: url("../../../assets/icons/filetype-pdf-blue.svg");
}

/* Focus states for accessiblity */
body:not(.user-is-tabbing) .ql-button a:focus {
  box-shadow: 0 0 0 0.2rem rgba(6, 43, 84, 0.3);
}
body:not(.user-is-tabbing) .ql-button.button-secondary a:focus {
  box-shadow: 0 0 0 0.2rem rgba(245, 161, 25, 0.3);
}
body:not(.user-is-tabbing) .bg-dark .ql-button a:focus {
  box-shadow: 0 0 0 0.2rem rgba(225, 255, 255, 0.3);
}

/* Button colour variations
--------------------------------------------- */
/* ---- White ---- */
.ql-button.ql-button-white a,
.acf-block-preview .ql-button.ql-button-white a {
  background-color: #fff;
  border: 2px solid #fff;
  color: #e0824e;
}
.ql-button.ql-button-white a:hover,
.ql-button.ql-button-white a:focus,
.acf-block-preview .ql-button.ql-button-white a:hover,
.acf-block-preview .ql-button.ql-button-white a:focus {
  background-color: #fff;
  border: 2px solid #d96629;
  color: #d96629;
}
.ql-button.ql-button-white.icon-arrow-right a:hover::after,
.ql-button.ql-button-white.icon-arrow-right a:focus::after,
.acf-block-preview .ql-button.ql-button-white.icon-arrow-right a:hover::after,
.acf-block-preview .ql-button.ql-button-white.icon-arrow-right a:focus::after {
  background-image: url("../../../assets/icons/arrow-right-orange.svg");
}

.ql-button.ql-button-white.icon-pdf a:hover::after,
.ql-button.ql-button-white.icon-pdf a:focus::after,
.acf-block-preview .ql-button.ql-button-white.icon-pdf a:hover::after,
.acf-block-preview .ql-button.ql-button-white.icon-pdf a:focus::after {
  background-image: url("../../../assets/icons/filetype-pdf-orange.svg");
}

/* Button style minimal
--------------------------------------------- */
.ql-button.button-minimal a {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 8px 0;
  color: #e0824e;
}
.ql-button.button-minimal a:hover,
.ql-button.button-minimal a:focus {
  background: transparent;
  border: none;
  color: #d96629;
}

/* Editor view
--------------------------------------------- */
.acf-block-preview .ql-button a {
  pointer-events: none;
  margin-top: 0;
  font-weight: 600;
}

.block-editor__container
  .editor-styles-wrapper
  .ql-button:not(.ql-button-white):not(.button-minimal)
  a {
  color: #fff;
}

.block-editor-block-list__block[data-title="Button"] {
  margin-top: 6px;
  margin-bottom: 0;
}

@media only screen and (min-width: 960px) {
  .ql-button.icon-arrow-right a::after,
  .ql-button.ql-button-white.icon-arrow-right a::after,
  .ql-button.ql-button-primary.button-minimal.icon-arrow-right a::after {
    margin-left: 30px;
  }
}

@media only screen and (max-width: 480px) {
  .ql-button.button-display-inline {
    display: block;
  }
}
