/* Buttons — ported from custom.css "02. General css", reusing the
   template's own arrow-white.svg / arrow-primary.svg icon assets. */

.btn-default {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1em;
  text-transform: capitalize;
  color: var(--on-accent);
  background: linear-gradient(to right, var(--accent) 0%, var(--accent-strong) 50%, var(--accent) 100%);
  background-size: 200% auto;
  border-radius: 100px;
  padding: 17px 45px 17px 24px;
  border: none;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  z-index: 1;
}

.btn-default:hover {
  background-position: right center;
}

.btn-default::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 24px;
  width: 12px;
  height: 12px;
  background-image: url('../../images/arrow-white.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transform: translateY(-50%);
  transition: all 0.4s ease-in-out;
}

.btn-default:hover::before {
  transform: translateY(-50%) rotate(45deg);
}

.btn-default--outline {
  color: var(--text-heading);
  background: transparent;
  border: 1px solid var(--divider);
}

.btn-default--outline::before {
  background-image: url('../../images/arrow-primary.svg');
  filter: var(--arrow-filter, none);
}

[data-brand='maverick'] .btn-default--outline::before,
.dark-section .btn-default--outline::before {
  filter: invert(1);
}

.dark-section .btn-default--outline {
  color: var(--chrome-text);
  border-color: var(--chrome-divider);
}

.readmore-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: capitalize;
  color: var(--text-heading);
}

.readmore-btn::after {
  content: '';
  flex: none;
  background-image: url('../../images/arrow-primary.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 12px;
  height: 12px;
  transition: all 0.4s ease-in-out;
}

[data-brand='maverick'] .readmore-btn::after,
.dark-section .readmore-btn::after {
  filter: invert(1);
}

.dark-section .readmore-btn {
  color: var(--chrome-text);
}

.readmore-btn:hover::after {
  transform: rotate(45deg);
}
