/*
 Theme Name:   Bricks Child Spenby Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  This child theme extends Bricks and adds Spenby customization.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
:root {
  font-display: swap;
}
/*************************************************/
/*prevent single-word lines at ends of paragraphs*/
/*************************************************/
.brxe-text-basic,
.brxe-text,
.brxe-heading {
  text-wrap-style: pretty;
}
/*******/
/*Lists*/
/*******/
.brxe-list .content {
  justify-content: flex-start;
  align-items: flex-start !important; /*fix this specificity issue*/
}
.brxe-list .description {
  padding-left: 36px;
}
/*********************/
/*Accordion alignment*/
/*********************/
.accordion-content-wrapper p {
  padding-right: var(--spacing-5xl);
}
:where(.brxe-accordion) .accordion-title {
  align-items: flex-start;
  gap: var(--spacing-md);
}
.accordion-title i.icon {
  margin-top: var(--spacing-xs);
}

/***********/
/*Header   */
/***********/
#brx-header {
  background-color: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.15);
  transition: background-color 0.1s linear, backdrop-filter 0.1s linear,
    box-shadow 0.1s linear;
}
#brx-header.scrolling {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
/***********/
/*Resources*/
/***********/
.brxe-5c54bc {
  cursor: pointer;
}
/******************/
/**Custom classes**/
/******************/
.trans-border {
  border-radius: var(--radius-2xl);
  outline: 12px rgba(255, 255, 255, 0.5) solid;
  outline-offset: -12px;
  overflow: clip;
}
.trans-border-thin {
  border-radius: var(--radius-2xl);
  outline: 8px rgba(255, 255, 255, 0.5) solid;
  outline-offset: -8px;
  overflow: clip;
}
.icon-box {
  box-shadow: 0 0 0 1px rgba(10, 13, 18, 0.18) inset,
    0 -2px 0 0 rgba(10, 13, 18, 0.05) inset, 0 1px 2px 0 rgba(10, 13, 18, 0.05);
  outline: 2px solid rgba(225, 255, 255, 0.12);
  outline-offset: -3px;
}
.icon-box-extras {
  padding: 10px;
  border-radius: var(--radius-md);
}
.balance {
  text-wrap-style: balance !important;
}
@media screen and (max-width: 768px) {
  .reorder-on-mobile {
    order: 1;
  }
}
/***********/
/**Buttons**/
/***********/
.bricks-button:not(.brxe-hvrxzv):not(.bricks-background-info) {
  outline: 1px solid rgba(5, 5, 5, 0.12);
  outline-offset: -1px;
  box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.08) inset,
    -1px -2px 0 1px rgba(10, 13, 18, 0.05) inset,
    0 1px 2px 0 rgba(10, 13, 18, 0.05);
}
.bricks-background-info {
  padding: 0;
}
.bricks-button svg {
  height: 20px;
  width: auto;
}
button.bricks-button {
  line-height: 1.7;
}
.brxe-post-taxonomy .bricks-button {
  box-shadow: none !important;
  outline: none !important;
}
.bricks-button:hover {
  filter: brightness(0.95);
}
/****************/
/*Image captions*/
/****************/
:where(.brxe-image).caption {
  overflow: visible;
}
:where(.brxe-image) .bricks-image-caption {
  background: url("/wp-content/themes/bricks-child-spenby/icons/image-03.svg");
  background-repeat: no-repeat;
  font-size: var(--font-size-text-sm);
  line-height: 1.3em;
  background-position: var(--spacing-xs) 0;
  color: var(--spenby-color-text-tertiary);
  padding: 0 0 0 var(--spacing-3xl);
  text-align: left;
  transform: translate(0, calc(100% + var(--spacing-xl)));
}
/*********************/
/*Blurred wrapper*/
/*********************/
.blurred-wrapper + .bricks-image-caption {
  background: url("/wp-content/themes/bricks-child-spenby/icons/image-03.svg");
  background-repeat: no-repeat;
  font-size: var(--font-size-text-sm);
  line-height: 1.3em;
  background-position: var(--spacing-xs) 0;
  color: var(--spenby-color-text-tertiary);
  padding: 0 0 0 var(--spacing-3xl);
  text-align: left;
  margin-top: 0;
}
.blurred-wrapper {
  --img-url: url("");
  position: relative;
  display: inline-block;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-inline-start: 0;
  margin-inline-end: 0;
}
.blurred-wrapper img {
  position: relative;
  display: block;
  z-index: 1;
  width: 100%;
  height: 100%;
  clip-path: inset(0.5rem);
  object-fit: cover;
  object-position: var(--background-position);
}
.blurred-wrapper::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background-image: var(--img-url);
  background-size: cover;
  background-position: var(--background-position);
  filter: blur(2px);
  z-index: 0;
}

/*********************/
/*Animated background*/
/*********************/
/* Put the backgrounds on pseudo elements so they can be full height*/
:root {
  --grad-duration: 25s;

  --orange-start-x: -166%;
  --orange-mid-x: -50%;
  --orange-end-x: 10%;
  --orange-start-y: var(--spacing-7xl);
  --orange-mid-y: 0%;
  --orange-end-y: calc(-1 * var(--spacing-7xl));

  --yellow-start-x: -110%;
  --yellow-mid-x: -0%;
  --yellow-end-x: 26%;
  --yellow-start-y: calc(-1 * var(--spacing-7xl));
  --yellow-mid-y: 10%;
  --yellow-end-y: var(--spacing-7xl);

  --green-start-x: 66%;
  --green-mid-x: -10%;
  --green-end-x: -80%;
  --green-start-y: 0%;
  --green-mid-y: 10%;
  --green-end-y: 0%;
}

.animated-gradient {
  position: relative;
  z-index: 1;
}

.animated-gradient:before,
.animated-gradient:after,
.animated-gradient > *:after {
  content: "";
  position: absolute;
  aspect-ratio: 1 / 1;
  max-height: 99%;
  width: 33%;
  max-width: 33%;
  padding: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.animated-gradient:before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 228, 209, 1) 0%,
    rgba(255, 255, 255, 0) 65%
  );
  -webkit-animation: orange-ani var(--grad-duration) linear 0s 1 normal forwards;
  -moz-animation: orange-ani var(--grad-duration) linear 0s 1 normal forwards;
  animation: orange-ani var(--grad-duration) linear 0s 1 normal forwards;
}

.animated-gradient:after {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 250, 219, 0.9) 0%,
    rgba(255, 255, 255, 0) 65%
  );
  -webkit-animation: yellow-ani var(--grad-duration) linear 0s 1 normal forwards;
  -moz-animation: yellow-ani var(--grad-duration) linear 0s 1 normal forwards;
  animation: yellow-ani var(--grad-duration) linear 0s 1 normal forwards;
}

.animated-gradient > *:after {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(193, 230, 223, 0.4) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  -webkit-animation: green-ani var(--grad-duration) linear 0s 1 normal forwards;
  -moz-animation: green-ani var(--grad-duration) linear 0s 1 normal forwards;
  animation: green-ani var(--grad-duration) linear 0s 1 normal forwards;
}

@keyframes orange-ani {
  0% {
    transform: translate(var(--orange-start-x), var(--orange-start-y));
  }
  50% {
    transform: translate(var(--orange-mid-x), var(--orange-mid-y));
  }
  100% {
    transform: translate(var(--orange-end-x), var(--orange-end-y));
  }
}
@keyframes yellow-ani {
  0% {
    transform: translate(var(--yellow-start-x), var(--yellow-start-y));
  }
  50% {
    transform: translate(var(--yellow-mid-x), var(--yellow-mid-y));
  }
  100% {
    transform: translate(var(--yellow-end-x), var(--yellow-end-y));
  }
}
@keyframes green-ani {
  0% {
    transform: translate(var(--green-start-x), var(--green-start-y));
  }
  50% {
    transform: translate(var(--green-mid-x), var(--green-mid-y));
  }
  100% {
    transform: translate(var(--green-end-x), var(--green-end-y));
  }
}
@media screen and (max-width: 768px) {
  :root {
    --orange-start-y: var(--spacing-4xl);
    --orange-end-y: calc(-1 * var(--spacing-4xl));
    --yellow-start-y: calc(-1 * var(--spacing-4xl));
    --yellow-end-y: var(--spacing-4xl);
  }
  .animated-gradient:before,
  .animated-gradient:after,
  .animated-gradient > *:after {
    top: calc(100% - 50vw);
  }
}
/**********************/
/*Legal sticky sidebar*/
/**********************/
:root {
  --header-height: 72px;
}
@media screen and (min-width: 768px) {
  .sidebar-fixed {
    position: fixed;
    top: calc(var(--header-height) + var(--spacing-9xl));
    transition: top 0.3s ease-in-out;
  }
  .make-space {
    margin-left: calc(290px + 48px);
  }
}

@media screen and (max-width: 768px) {
  .legal-sidebar.sidebar-fixed {
    position: fixed;
    top: var(--header-height);
  }
}
/********/
/*Forms */
/********/
:where(.brxe-form) .required:after {
  color: var(--accent-color);
}
.form-group a.required {
  color: var(--accent-color);
}

:where(.brxe-form) .options-wrapper input[type="checkbox"],
:where(.brxe-form) .options-wrapper input[type="radio"] {
  top: 0px;
  width: 1.2rem;
  height: 1.2rem;
}

:where(.brxe-form) .options-wrapper li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

:where(.brxe-form) .form-group.file {
  display: flex;
  align-items: center;
}
:where(.brxe-form) .form-group.file .required:after {
  content: "";
  padding: 0;
}
:where(.brxe-form) .choose-files {
  padding: var(--spacing-xl);
  line-height: unset;
  width: 100%;
}
.upload-block {
  align-items: center;
  width: 100%;
  display: flex;
  row-gap: var(--spacing-lg);
  justify-content: center;
  flex-direction: column;
}
.upload-centered-block {
  align-items: center;
  width: max-content;
}
.upload-centered-block .click-to-upload {
  font-size: var(--font-size-text-sm);
  color: var(--bricks-color-3a3e61);
  font-weight: 600;
  line-height: 1.2em;
}
.upload-centered-block .small {
  font-size: var(--font-size-text-xs);
  font-weight: 400;
  line-height: 1.2em;
}
/***********/
/*Blog nav */
/***********/
.bricks-pagination ul li:has(a.prev) {
  margin-right: auto;
}
.bricks-pagination ul li:first-of-type:not(:has(a.prev)) {
  margin-left: auto;
}
.bricks-pagination ul li:has(a.next) {
  margin-left: auto;
}
.bricks-pagination ul li:last-of-type:not(:has(a.next)) {
  margin-right: auto;
}
.bricks-pagination ul li a.prev {
  display: flex;
  gap: 0.5rem;
}
.bricks-pagination ul li a.next {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.bricks-pagination ul li a.prev:after {
  content: "Previous";
}
.bricks-pagination ul li a.next:before {
  content: "Next";
}

/*********/
/*Tables */
/*********/
td {
  vertical-align: top;
}
.wp-block-table.is-style-stripes td,
.wp-block-table.is-style-stripes th {
  border-color: unset;
  border: 1px solid #dddddd !important;
  text-align: left;
  padding: 18px;
}
.wp-block-table thead {
  border-bottom: 0px solid !important;
}
/*************/
/*FAQ Element*/
/*************/
.faq-title {
  cursor: pointer;
}
.faq-modal h4 {
  margin: 0 0 0.5em 0;
}
.faq-modal p {
  margin: 0 0 1em 0;
}
#faqs-search {
  margin-bottom: 2.5rem;
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  padding-left: 4.5rem;
  background-image: url("/wp-content/themes/bricks-child-spenby/icons/onebot-logo-resources.svg");
  background-size: 2rem;
  background-repeat: no-repeat;
  background-position-x: 1.5rem;
  background-position-y: center;
}
.brxe-faqs-element {
  width: 90%;
  max-width: 600px;
}
.faq-category-group {
  margin-bottom: 2rem;
}
.faq-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding-right: var(--scrollbar-width);
  z-index: 9999;
}
.faq-modal {
  background: #fff;
  padding: 1.5rem;
  max-width: 600px;
  width: 90%;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}
.faq-modal a {
  color: var(--accent-color);
  text-decoration: underline;
}
.faq-modal-close {
  position: absolute;
  top: 0;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
}
body.no-scroll {
  padding-right: var(--scrollbar-width);
}

/***********************/
/*Ultimate Member forms*/
/***********************/
h1:has(+ div div + div#login-box) {
  display: none;
  margin-bottom: 0.5rem;
}
#login-box {
  background-color: #fff;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
  padding: var(--spacing-4xl);
  border-radius: 0.75rem;
  max-width: 380px;
  margin: var(--spacing-2xl) auto var(--spacing-4xl) auto;
}
#login-box p {
  font-size: 0.8rem;
}
#login-box h2 {
  font-size: 1.5rem;
  line-height: 1.8rem;
}
#login-box h2:first-of-type:not(.um-gdpr-content h2) {
  margin-bottom: var(--spacing-xl);
}
#login-box h2:first-of-type:has(+ div.um-password) {
  margin-bottom: 0;
}
#login-box .um .um-field-label label {
  color: #535862;
  font-weight: 400;
  font-size: 0.8rem !important;
}
#login-box .um span.um-req {
  color: var(--accent-color);
  margin: 0 0 0 4px;
}
#login-box .um-center .um-button {
  width: 100% !important;
  background-color: var(--accent-color);
}
#login-box .um-field-checkbox-option {
  color: #535862 !important;
  font-size: 0.8rem;
  margin: 0 0 0 1.75rem;
}
.login-form-footer {
  display: flex;
}
#login-box a {
  color: var(--accent-color);
}
.um-gdpr-content > h2:nth-of-type(1) {
  margin-top: var(--spacing-xl);
}
.um-gdpr-content > p:last-of-type {
  margin-bottom: var(--spacing-xl);
}
#_um_password_reset + div div {
  font-size: 0.8rem;
}
.um-icon-android-checkbox-outline:before {
  content: "\f374" !important;
}
.um .um-cover-add:hover,
.um .um-field-checkbox.active:not(.um-field-radio-state-disabled) i,
.um .um-field-radio.active:not(.um-field-radio-state-disabled) i,
.um .um-item-meta a,
.um .um-member-less a:hover,
.um .um-member-more a:hover,
.um .um-member-name a:hover,
.um .um-members-pagi a:hover,
.um .um-profile-subnav a.active,
.um .um-tip:hover,
.um-account-name a:hover,
.um-account-nav a.current,
.um-account-side li a.current span.um-account-icon,
.um-account-side li a.current:hover span.um-account-icon,
.um-dropdown li a:hover,
i.um-active-color,
span.um-active-color {
  color: var(--accent-color);
}
/*admin-form id added in WP for vertical centering*/
html:has(#admin-form) {
  height: 100%;
}
body:has(#admin-form) {
  height: 100%;
}
article:has(#admin-form) {
  height: 100%;
  display: flex;
  align-items: center;
}
