.apple-right-text-component {
  position: relative;
  width: min(100%, var(--site-max-width, 1180px));
  max-width: var(--site-max-width, 1180px);
  min-height: clamp(420px, 56vw, 620px);
  margin: var(--stitch-section-space, 72px) auto 0;
  overflow: hidden;
  border-radius: var(--section-radius, 16px);
  background: var(--dark-background-color);
  color: var(--inverse-text-color);
  box-sizing: border-box;
}

.apple-right-text-component.full-width {
  width: 100%;
  max-width: 100%;
}

.apple-right-text-component.centered {
  width: min(100%, var(--site-max-width, 1180px));
  max-width: var(--site-max-width, 1180px);
}

.apple-right-text-component.shadow {
  box-shadow: 0 24px 54px var(--theme-shadow-color);
}

.apple-right-text-component__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.apple-right-text-component__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--theme-overlay-color) 0%, var(--theme-overlay-color) 44%, var(--theme-overlay-color) 78%),
    linear-gradient(0deg, var(--theme-overlay-color), var(--theme-overlay-color));
  pointer-events: none;
}

.apple-right-text-component.alt .apple-right-text-component__gradient {
  background:
    linear-gradient(270deg, var(--theme-overlay-color) 0%, var(--theme-overlay-color) 44%, var(--theme-overlay-color) 78%),
    linear-gradient(0deg, var(--theme-overlay-color), var(--theme-overlay-color));
}

.apple-right-text-component__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  min-height: inherit;
  padding: clamp(28px, 5vw, 54px);
  box-sizing: border-box;
}

.apple-right-text-component.alt .apple-right-text-component__inner {
  justify-content: flex-end;
}

.apple-right-text-component__text {
  width: min(100%, 560px);
  color: var(--inverse-text-color);
  text-align: left;
}

.apple-right-text-component__text h3 {
  margin: 0 0 10px;
  color: color-mix(in srgb, var(--inverse-text-color) 82%, transparent);
  font-size: var(--theme-body-font-size, 16px);
  font-weight: var(--theme-title-font-weight, 700);
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.apple-right-text-component__text h2 {
  margin: 0;
  color: var(--inverse-text-color);
  font-size: var(--theme-title-font-size, 48px);
  font-weight: var(--theme-title-font-weight, 700);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.apple-right-text-component .separator2 {
  width: 48px;
  height: 2px;
  margin: 18px 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--inverse-text-color) 72%, transparent);
}

.apple-right-text-component .center-text-description {
  max-width: 49ch;
  margin: 0;
  color: color-mix(in srgb, var(--inverse-text-color) 88%, transparent);
  font-size: var(--theme-body-font-size, 16px);
  line-height: 1.62;
}

.apple-right-text-component ul {
  margin: 16px 0 0;
  padding-left: 1.15rem;
  color: color-mix(in srgb, var(--inverse-text-color) 90%, transparent);
}

.apple-right-text-component li {
  margin-bottom: 8px;
}

.apple-right-text-component__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 22px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--button-color);
  color: var(--button-text-color, var(--inverse-text-color));
  font-size: var(--theme-button-font-size, 14px);
  font-weight: var(--theme-button-font-weight, 700);
  text-decoration: none;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--button-color) 24%, transparent);
}

.apple-right-text-component__button::after {
  content: "↗";
  margin-left: 8px;
}

.apple-right-text-component--minimal {
  min-height: 0;
  border: 1px solid var(--line-color);
  background: var(--surface-color);
  color: var(--text-color);
}

.apple-right-text-component--minimal .apple-right-text-component__image,
.apple-right-text-component--minimal .apple-right-text-component__gradient {
  display: none;
}

.apple-right-text-component__inner--minimal {
  min-height: 0;
  justify-content: center;
  padding: clamp(30px, 5vw, 52px);
}

.apple-right-text-component--minimal .apple-right-text-component__text,
.apple-right-text-component--minimal .apple-right-text-component__text h2 {
  color: var(--text-color);
}

.apple-right-text-component--minimal .apple-right-text-component__text h3,
.apple-right-text-component--minimal .center-text-description {
  color: var(--muted-text-color);
}

.apple-right-text-component--minimal .separator2 {
  background: var(--line-color);
}

@media (max-width: 720px) {
  .apple-right-text-component {
    min-height: 520px;
  }

  .apple-right-text-component__inner,
  .apple-right-text-component.alt .apple-right-text-component__inner {
    justify-content: flex-start;
    align-items: end;
    padding: 28px 22px;
  }
}
