/* Fine-tuned to your brand on the B2B home (business/includes/r13_fine_tune.html).
 * The picture is two stacked layers that crossfade; the tabs pick a group of
 * options. Without JS (no .is-ready) all four groups are listed. */
.r13-tune { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.r13-tune-stage { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 480px; margin: 0 auto; }
.r13-tune-frame { position: relative; aspect-ratio: 3 / 4; background: #F2F2F2; overflow: hidden; }
.r13-tune-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
  opacity: 0; transition: opacity .5s cubic-bezier(.2,0,0,1); }
.r13-tune-img.is-on { opacity: 1; }
.r13-tune-frame.is-loading .r13-tune-img.is-on { opacity: .55; }
.r13-tune-now { display: flex; flex-wrap: wrap; gap: 6px; font: 400 12px/1.4 'DM Mono', ui-monospace, monospace; }
.r13-tune-now > span { padding: 3px 8px; border: 1px solid #E6E4E1; }
.r13-tune-now > span.is-changed { background: #F5B82E; border-color: #F5B82E; color: #121110; }
.r13-tune-controls { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.r13-tune-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #121110; }
.r13-tune-tab { min-height: 52px; padding: 0 12px; display: flex; align-items: center; gap: 8px; background: #fff; color: #121110;
  border: 0; border-left: 1px solid #121110; border-top: 1px solid #121110; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; }
.r13-tune-tab:nth-child(-n+2) { border-top: 0; }
.r13-tune-tab:nth-child(odd) { border-left: 0; }
.r13-tune-tab:hover { background: #F2F2F2; }
.r13-tune-tab[aria-selected="true"] { background: #121110; color: #fff; box-shadow: inset 0 -4px 0 #F5B82E; }
.r13-tune-panel { display: flex; flex-direction: column; gap: 14px; }
.r13-tune-panel + .r13-tune-panel { border-top: 1px solid #E6E4E1; padding-top: 18px; }
.is-ready .r13-tune-panel + .r13-tune-panel { border-top: 0; padding-top: 0; }
.is-ready .r13-tune-ptitle { display: none; }
.r13-tune-options { display: flex; flex-wrap: wrap; gap: 8px; }
.r13-tune-opt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: #fff; color: #121110;
  border: 1px solid #8E8A85; border-radius: 9999px; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.r13-tune-opt:hover { border-color: #121110; }
.r13-tune-opt[aria-pressed="true"] { background: #121110; color: #fff; border-color: #121110; }
.r13-tune-options.is-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.is-models .r13-tune-opt { flex-direction: column; gap: 6px; padding: 6px 6px 8px; border-radius: 0; min-height: 0; font-size: 14px; }
.r13-tune-face { display: block; width: 100%; aspect-ratio: 1; background-color: #F2F2F2; background-size: 330%; background-position: 50% 6%;
  background-repeat: no-repeat; }
.is-models .r13-tune-opt[aria-pressed="true"] .r13-tune-face { box-shadow: inset 0 0 0 3px #F5B82E; }
.r13-tune-more { display: grid; gap: 10px; border-top: 1px solid #121110; padding-top: 16px; font-size: 15px; line-height: 1.5; color: #5E5B57; }
.r13-tune-more b { color: #121110; font-weight: 500; }
@media (min-width: 640px) {
  .r13-tune-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .r13-tune-tab { border-top: 0; }
  .r13-tune-tab:nth-child(odd) { border-left: 1px solid #121110; }
  .r13-tune-tab:first-child { border-left: 0; }
  .r13-tune-options.is-models { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .r13-tune { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; }
  .r13-tune-stage { order: 2; margin: 0; }
  .r13-tune-controls { order: 1; padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .r13-tune-img, .r13-tune-opt { transition: none; }
}
.r13-tune-panel[hidden], .r13-tune-tabs[hidden] { display: none !important; }
