/* Overrides for Sell page Tools section (no SCSS build needed) */

.sell-page .sell-tools {
  /* background: #eef3f6; */
  padding: 64px 20px;
}

.sell-page .sell-tools .sell-tools__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  gap: 58px;
}

.sell-page .sell-tools .sell-tools__row {
  position: relative;
  background: #eef3f6;
  border-radius: 28px;
  padding: 58px 64px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  grid-template-areas: "copy media";
  /* gap: 26px 36px; */
  align-items: center;
  overflow: hidden;
  direction: ltr;
  box-shadow: inset 0 0 0 1px rgba(11, 27, 38, 0.06);
}

.sell-page .sell-tools .sell-tools__row::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 220px;
  height: 160px;
  background: url("/themes/EST/images/yellow-lines2.svg") no-repeat center / contain;
  opacity: 0.95;
  pointer-events: none;
}

.sell-page .sell-tools .sell-tools__row:nth-child(2n) {
  grid-template-columns: 1.25fr 1fr;
  grid-template-areas: "media copy";
}

.sell-page .sell-tools .sell-tools__row:nth-child(2n)::before {
  right: auto;
  left: -10px;
  transform: scaleX(-1);
}

.sell-page .sell-tools .sell-tools__copy {
  grid-area: copy;
  direction: rtl;
  text-align: right;
  /* max-width: 520px; */
}

.sell-page .sell-tools .sell-tools__media {
  grid-area: media;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 360px;
}

.sell-page .sell-tools .sell-tools__kicker {
  font-size: 14px;
  font-weight: 800;
  color: rgba(3, 74, 115, 0.85);
}

.sell-page .sell-tools .sell-tools__title {
  font-size: 36px;
  font-weight: 600;
  color: #0b1b26;
  letter-spacing: -0.02em;
}

.sell-page .sell-tools .sell-tools__desc {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(11, 27, 38, 0.72);
  margin-bottom: 22px;
}

.sell-page .sell-tools .sell-tools__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: rgba(3, 74, 115, 0.92);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, filter 160ms ease;
}

.sell-page .sell-tools .sell-tools__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.sell-page .sell-tools .sell-tools__img {
  width: min(980px, 62vw);
  max-width: none;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  /* transform: translateX(110px); */
}

.sell-page .sell-tools .sell-tools__row:nth-child(2n) .sell-tools__img {
  /* transform: translateX(-110px); */
  aspect-ratio: 30 / 16;
}

@media (max-width: 980px) {
  .sell-page .sell-tools .sell-tools__row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media";
    padding: 34px 22px;
  }

  .sell-page .sell-tools .sell-tools__row:nth-child(2n) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media";
  }

  .sell-page .sell-tools .sell-tools__media {
    justify-content: center;
    min-height: 0;
  }

  .sell-page .sell-tools .sell-tools__img {
    width: 100%;
    transform: none;
  }

  .sell-page .sell-tools .sell-tools__title {
    font-size: 32px;
  }
}

@media (max-width: 560px) {
  .sell-page .sell-tools .sell-tools__inner {
    gap: 38px;
  }

  .sell-page .sell-tools .sell-tools__title {
    font-size: 28px;
  }

  .sell-page .sell-tools .sell-tools__cta {
    height: 50px;
    padding: 0 22px;
  }
}
