.rl-chon { margin: 1.1rem 0 1.3rem; }
.rl-chon [hidden],
.rl-chon__phu [hidden] { display: none !important; }

.rl-chon__hang { margin-bottom: .85rem; }

.rl-chon__nhan {
  margin: 0 0 .45rem;
  font-size: .88rem;
  color: var(--rl-xam-chu, #6C6C6C);
}
.rl-chon__nhan b {
  color: var(--rl-den, #231F20);
  font-weight: 700;
}
.rl-chon__nhan b.la-goi {
  color: var(--rl-xam-chu, #6C6C6C);
  font-weight: 400;
}

.rl-chon__nhan--size {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .55rem;
}
.rl-chon__den {
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f7a45;
  opacity: 0;
  transition: opacity .2s ease;
}
.rl-chon.la-live .rl-chon__den { opacity: 1; }
.rl-chon.la-cu .rl-chon__den { background: #b26a00; opacity: 1; }

.rl-chon__mau {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.rl-mau {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .32rem .7rem .32rem .36rem;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: .82rem;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--rl-den, #231F20);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rl-mau:hover { border-color: #b9b9b9; }
.rl-mau:focus-visible { outline: 2px solid var(--rl-do, #E4212A); outline-offset: 2px; }
.rl-mau.la-chon {
  border-color: var(--rl-do, #E4212A);
  box-shadow: inset 0 0 0 1px var(--rl-do, #E4212A);
  font-weight: 700;
}
.rl-mau.la-het { opacity: .45; }
.rl-mau.la-het .rl-mau__ten { text-decoration: line-through; }

.rl-mau__o {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16);
}

.rl-chon__size {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem .65rem;
  padding-top: .3rem;
}
.rl-chon__size.la-mo .rl-size-o { opacity: .55; }

.rl-size-o {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.15rem;
  min-height: 2.6rem;
  padding: .3rem .4rem;
  border: 1px solid #e3e3e3;
  border-radius: .55rem;
  background: #fff;
  font: inherit;
  color: var(--rl-den, #231F20);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rl-size-o:hover:not(:disabled) { border-color: #b9b9b9; }
.rl-size-o:focus-visible { outline: 2px solid var(--rl-do, #E4212A); outline-offset: 2px; }
.rl-size-o.la-chon {
  border-color: var(--rl-do, #E4212A);
  box-shadow: inset 0 0 0 1px var(--rl-do, #E4212A);
}
.rl-size-o.la-het {
  background: #fbfbfb;
  border-style: dashed;
  color: #9a9a9a;
  cursor: not-allowed;
}
.rl-size-o.la-het .rl-size-o__s { text-decoration: line-through; }

.rl-size-o__s {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.15;
}
.rl-size-o__n {
  position: absolute;
  top: -.45rem;
  right: -.4rem;
  padding: .02rem .3rem;
  border-radius: 999px;
  background: #b26a00;
  box-shadow: 0 0 0 2px #fff;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
  white-space: nowrap;
}
.rl-size-o__n:empty { display: none; }
.rl-size-o.la-het .rl-size-o__n { background: #c0272d; }

.rl-chon__ton {
  margin: 0 0 0 auto;
  font-size: .84rem;
  text-align: right;
  color: var(--rl-xam-chu, #6C6C6C);
}
.rl-chon__ton.la-con { color: #1f7a45; }
.rl-chon__ton.la-it { color: #b26a00; font-weight: 600; }
.rl-chon__ton.la-het { color: #c0272d; }

.rl-chon__ma {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: .9rem;
  padding: .5rem .5rem .5rem .7rem;
  border-radius: .6rem;
  background: var(--rl-xam-nen, #F2F2F2);
}
.rl-chon__ma-nhan {
  width: 100%;
  font-size: .74rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--rl-xam-chu, #6C6C6C);
}
.rl-chon__ma code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  color: var(--rl-den, #231F20);
  word-break: break-word;
}
.rl-chon__chep {
  flex: 0 0 auto;
  padding: .34rem .7rem;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  color: var(--rl-den, #231F20);
  cursor: pointer;
}
.rl-chon__chep:hover { border-color: #b9b9b9; }
.rl-chon__chep.la-xong { border-color: #1f7a45; color: #1f7a45; }

.rl-chon__hd {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  color: var(--rl-do-dam);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.rl-chon__hd:hover { color: var(--rl-do); }

.rl-size-hd {
  position: fixed;
  z-index: 70;
  margin: 0;
  border: 0;
  padding: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--rl-den);
  box-shadow: 0 12px 40px rgba(35, 31, 32, .28);
  overflow: hidden;
}
.rl-size-hd:not([open]) { display: none; }
.rl-size-hd__hop {
  padding: 1rem 1.1rem 1.15rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rl-size-hd__dau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
}
.rl-size-hd__dau h2 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: 1.05rem;
  margin: 0;
  color: var(--rl-den);
}
.rl-size-hd__x {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--rl-xam-nen);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--rl-xam-chu);
  cursor: pointer;
}
.rl-size-hd__x:hover { background: #e6e6e6; color: var(--rl-den); }
.rl-size-hd__cach {
  margin: 0 0 .85rem;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--rl-xam-chu);
}

.rl-size-hd__bang {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 0 0 .85rem;
  background: none;
}
.rl-size-hd__bang thead,
.rl-size-hd__bang tbody,
.rl-size-hd__bang tr { border: 0; background: none; }
.rl-size-hd__bang th,
.rl-size-hd__bang td {
  border: 0;
  background: none;
  padding: .42rem .5rem;
}
.rl-size-hd__bang thead th {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9a9a9a;
  font-weight: 700;
  padding-bottom: .3rem;
}
.rl-size-hd__bang th:first-child,
.rl-size-hd__bang td:first-child { padding-left: .6rem; }
.rl-size-hd__bang th:last-child,
.rl-size-hd__bang td:last-child { text-align: right; padding-right: .6rem; }
.rl-size-hd__bang tbody tr { border-radius: 8px; }
.rl-size-hd__bang tbody tr + tr td { border-top: 1px solid #f0f0f0; }
.rl-size-hd__bang tbody td:first-child { color: var(--rl-xam-chu); }
.rl-size-hd__bang tbody td:last-child { font-weight: 800; font-size: 1rem; }
.rl-size-hd__bang tbody tr.la-chon td {
  background: #fdecec;
  border-top-color: transparent;
  color: var(--rl-do-dam);
}
.rl-size-hd__bang tbody tr.la-chon + tr td { border-top-color: transparent; }
.rl-size-hd__bang tbody tr.la-chon td:first-child { border-radius: 8px 0 0 8px; }
.rl-size-hd__bang tbody tr.la-chon td:last-child { border-radius: 0 8px 8px 0; }

.rl-size-hd__meo {
  margin: 0 0 .5rem;
  font-size: .84rem;
  font-weight: 700;
}
.rl-size-hd__chot {
  margin: 0;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--rl-xam-chu);
}
@media (max-width: 781px) {
  .rl-chon__mau,
  .rl-chon__size {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .rl-chon__mau::-webkit-scrollbar,
  .rl-chon__size::-webkit-scrollbar { display: none; }
  .rl-chon__mau > *,
  .rl-chon__size > * { flex: 0 0 auto; scroll-snap-align: start; }
  .rl-chon__mau { padding: .1rem .4rem .25rem 0; }
  .rl-chon__size { gap: .55rem; padding: .62rem .45rem .3rem 0; }

  .rl-size-hd {
    left: .6rem;
    right: .6rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: auto;
    max-width: none;
    max-height: 76vh;
    max-height: 76dvh;
  }
  .rl-size-hd__hop { max-height: 76vh; max-height: 76dvh; }
  body.rl-dang-xem-size .rl-day { display: none !important; }
}

@media (min-width: 782px) {
  .rl-size-hd {
    top: 50%;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    width: 21rem;
    max-height: 78vh;
    max-height: 78dvh;
  }
  .rl-size-hd__hop { max-height: 78vh; max-height: 78dvh; }
  .rl-size-hd.la-tren { top: 1rem; bottom: auto; transform: none; }
  .rl-size-hd.la-duoi { top: auto; bottom: 1rem; transform: none; }
}
