.frame-removal-open,
.frame-removal-download {
  border: 1px solid rgba(183, 139, 52, .38);
  background: #f5eddc;
  color: #133c31;
}

.frame-removal-open:hover,
.frame-removal-download:hover {
  border-color: #0a4a3b;
  background: #fff9ed;
}

.frame-removal-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1eee6;
  color: #6b6458;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.frame-removal-status.is-active {
  background: #dff2ea;
  color: #0a523f;
  box-shadow: inset 0 0 0 1px rgba(10, 82, 63, .18);
}

.frame-removal-inline-guide {
  margin: 10px 0 0;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid rgba(188, 145, 57, .24);
  background: linear-gradient(135deg, #fffaf0, #f3eee3);
  color: #665f52;
  font-size: 12px;
  line-height: 1.65;
}

.frame-removal-dialog {
  width: min(1120px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: auto;
  background: transparent;
  color: #092f26;
  box-shadow: 0 32px 90px rgba(0, 29, 23, .34);
}

.frame-removal-dialog::backdrop {
  background: rgba(4, 31, 25, .72);
  backdrop-filter: blur(7px);
}

.frame-removal-shell {
  position: relative;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(189, 147, 65, .35);
  border-radius: 28px;
  background: #fbf7ee;
}

.frame-removal-shell .dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.frame-removal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding-right: 58px;
}

.frame-removal-head h2 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.frame-removal-head p:not(.view-eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #5d675f;
  line-height: 1.7;
}

.frame-removal-head > strong {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #073b30;
  color: #f5cf75;
  font-size: 12px;
  white-space: nowrap;
}

.frame-removal-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 30px;
}

.frame-removal-compare figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9d4ca;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(32, 42, 37, .08);
}

.frame-removal-compare figcaption {
  padding: 14px 18px;
  border-bottom: 1px solid #e4ded2;
  color: #173c31;
  font-weight: 900;
}

.frame-removal-compare canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.1;
  background:
    linear-gradient(45deg, #f1ede3 25%, transparent 25%),
    linear-gradient(-45deg, #f1ede3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1ede3 75%),
    linear-gradient(-45deg, transparent 75%, #f1ede3 75%),
    #faf8f3;
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.frame-removal-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #efc96f;
  color: #063a2f;
  font-size: 24px;
  font-weight: 900;
}

.frame-removal-controls {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #d9d4ca;
  border-radius: 22px;
  background: #fff;
}

.frame-removal-control-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.frame-removal-control-head h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.frame-removal-control-head p {
  margin: 0;
  color: #657069;
  line-height: 1.55;
}

.frame-removal-control-head > span {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1ece1;
  color: #766228;
  font-size: 12px;
  font-weight: 900;
}

.frame-removal-control-head > span.is-good {
  background: #dff2ea;
  color: #09513e;
}

.frame-removal-slider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.frame-removal-slider-grid label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  color: #24453b;
  font-size: 13px;
  font-weight: 900;
}

.frame-removal-slider-grid output {
  color: #a66e0a;
  font-variant-numeric: tabular-nums;
}

.frame-removal-slider-grid input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #075040;
}

.frame-removal-size {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #f5f1e8;
  color: #5c655f;
  font-size: 12px;
}

.frame-removal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.frame-removal-actions button {
  min-height: 46px;
  padding-inline: 20px;
}

.frame-removal-disclosure {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: 14px;
  background: #073b30;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  line-height: 1.65;
}

.cart-frame-badge {
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f3ee;
  color: #0a513f;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 820px) {
  .frame-removal-dialog {
    width: min(100vw - 12px, 680px);
    max-height: calc(100vh - 12px);
    border-radius: 22px;
  }

  .frame-removal-shell {
    padding: 22px 16px 26px;
    border-radius: 22px;
  }

  .frame-removal-head {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-right: 42px;
  }

  .frame-removal-head > strong {
    justify-self: start;
  }

  .frame-removal-compare {
    grid-template-columns: 1fr;
  }

  .frame-removal-arrow {
    margin: -4px auto;
    transform: rotate(90deg);
  }

  .frame-removal-slider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frame-removal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .product-source-toolbar .frame-removal-open,
  .product-source-toolbar .frame-removal-download {
    flex: 1 1 100%;
  }

  .frame-removal-head h2 {
    font-size: 29px;
  }

  .frame-removal-slider-grid,
  .frame-removal-actions {
    grid-template-columns: 1fr;
  }

  .frame-removal-control-head {
    display: grid;
  }
}
