.rental-checkout {
  max-width: 1040px;
  margin: 0 auto 72px;
}

.rental-checkout h1 {
  margin: 28px 0 6px;
  color: #fff;
  font-size: 30px;
}

.rental-checkout__intro,
.rental-checkout__muted {
  color: #b7c8e8;
  line-height: 1.5;
}

.rental-checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}

.rental-checkout__main,
.rental-checkout__side {
  display: grid;
  gap: 16px;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.rental-checkout__card {
  padding: 22px;
  border: 1px solid #285690;
  border-radius: 16px;
  background: #10316b;
  color: #f2f2f4;
}

.rental-checkout__card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.rental-checkout__card p:last-child {
  margin-bottom: 0;
}

.rental-product {
  display: flex;
  gap: 18px;
  align-items: center;
}

.rental-product img {
  width: 210px;
  max-width: 45%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  object-fit: cover;
}

.rental-product__name {
  margin: 0 0 4px;
  font-size: 19px;
}

.rental-product__plan {
  max-width: 280px;
  margin-top: 16px;
}

.rental-product__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 8px;
  color: #b7c8e8;
}

.rental-product__price {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.rental-benefits {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rental-benefits li {
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.rental-benefits li::before {
  content: "\2713";
  color: #71d5ed;
  font-weight: 700;
}

.rental-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rental-field {
  display: grid;
  gap: 6px;
  color: #dce8fa;
  font-size: 13px;
  font-weight: 600;
}

.rental-field--wide {
  grid-column: 1 / -1;
}

.rental-field input,
.rental-field select {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #5b7dab;
  border-radius: 8px;
  background: #0a2351;
  color: #fff;
  font: inherit;
}

.rental-field input:focus-visible,
.rental-field select:focus-visible,
.rental-checkout summary:focus-visible {
  outline: 2px solid #81d8ed;
  outline-offset: 3px;
}

.rental-field input:disabled {
  opacity: 1;
}

.rental-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(460px, calc(100% - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  border: 1px solid #3475c6;
  border-radius: 16px;
  background: #10316b;
  color: #f2f2f4;
  box-shadow: 0 20px 60px #05122d80;
}

.rental-dialog::backdrop {
  background: #05122dd9;
}

.rental-dialog h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

.rental-dialog p {
  margin: 0;
  color: #dce8fa;
  font-size: 14px;
  line-height: 1.5;
}

.rental-dialog__fields {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.rental-dialog__fields[hidden] {
  display: none;
}

.rental-dialog .rental-field {
  gap: 8px;
  font-size: 13px;
}

.rental-dialog .rental-field input {
  min-height: 44px;
  font-size: 15px;
}

.rental-dialog .rental-checkout__note {
  margin-top: 20px;
  color: #b7c8e8;
  font-size: 12px;
}

.rental-dialog .rental-dialog__success {
  padding: 14px;
  border: 1px solid #5ccca5;
  border-radius: 10px;
  background: #0a514f;
  color: #e4fff5;
  font-size: 15px;
  font-weight: 700;
}

.rental-dialog__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.rental-dialog__actions button,
.rental-dialog__edit {
  padding: 10px 16px;
  border: 1px solid #7197c8;
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rental-dialog__primary {
  background: #2069ff;
}

.rental-dialog__primary:disabled {
  opacity: .65;
  cursor: wait;
}

#rental-dialog-continue {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 16px;
  border: 1px solid #7197c8;
  border-radius: 8px;
  background: #2069ff;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#rental-dialog-continue:hover:not(:disabled) {
  background: #3980ff;
}

#rental-dialog-continue:disabled {
  opacity: .65;
  cursor: wait;
}

#rental-dialog-continue:focus-visible {
  outline: 2px solid #81d8ed;
  outline-offset: 3px;
}

.rental-dialog__edit {
  background: transparent;
}

.rental-dialog__edit {
  margin-top: 14px;
}

.rental-dialog__actions button {
  min-height: 44px;
}

.rental-dialog button:focus-visible,
.rental-dialog__edit:focus-visible {
  outline: 2px solid #81d8ed;
  outline-offset: 3px;
}

.rental-checkout__note {
  margin: 14px 0 0;
  color: #b7c8e8;
  font-size: 12px;
  line-height: 1.5;
}

.rental-payment {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #41699e;
  border-radius: 10px;
  background: #0a2351;
}

.rental-payment input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rental-payment__check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #25a86b;
  color: #fff;
  font-weight: 700;
}

.rental-payment input:focus-visible ~ .rental-payment__check {
  outline: 2px solid #81d8ed;
  outline-offset: 3px;
}

.rental-delivery-options {
  display: grid;
  gap: 10px;
}

.rental-delivery-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #41699e;
  border-radius: 10px;
  background: #0a2351;
  cursor: pointer;
}

.rental-delivery-option input {
  accent-color: #71d5ed;
}

.rental-delivery-option span {
  flex: 1;
}

.rental-delivery-option small {
  display: block;
  margin-top: 4px;
  color: #b7c8e8;
  font-size: 12px;
  line-height: 1.4;
}

.rental-extra-controller {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #41699e;
  border-radius: 10px;
  background: #0a2351;
  cursor: pointer;
}

.rental-extra-controller input,
.rental-game input {
  accent-color: #71d5ed;
}

.rental-extra-controller small {
  display: block;
  margin-top: 5px;
  color: #b7c8e8;
}

.rental-extra-controller small strong {
  color: #fff;
}

.rental-included-game {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #5ccca5;
  border-radius: 10px;
  background: #0a2351;
}

.rental-included-game img {
  width: 64px;
  height: 72px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
}

.rental-included-game strong,
.rental-included-game span {
  display: block;
}

.rental-included-game strong {
  color: #b6f2d5;
  font-size: 14px;
}

.rental-included-game span {
  margin-top: 4px;
  color: #b7c8e8;
  font-size: 12px;
}

.rental-games__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.rental-games__heading h3 {
  margin: 0;
  font-size: 16px;
}

.rental-games__navigation {
  display: flex;
  gap: 6px;
}

.rental-games__navigation button {
  width: 34px;
  height: 34px;
  border: 1px solid #7197c8;
  border-radius: 8px;
  background: #0a2351;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.rental-games__hint {
  margin: 4px 0 12px;
  color: #b7c8e8;
  font-size: 12px;
}

.rental-games {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.rental-game {
  display: flex;
  flex: 0 0 140px;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid #41699e;
  border-radius: 10px;
  background: #0a2351;
  font-size: 12px;
  scroll-snap-align: start;
  cursor: pointer;
}

.rental-game img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.rental-game__price {
  color: #b7c8e8;
}

.rental-game__price strong {
  color: #fff;
}

.rental-game__select {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.rental-total[hidden] {
  display: none;
}

.rental-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
}

.rental-summary-games {
  display: grid;
  gap: 8px;
  margin: -4px 0 14px;
  padding: 0;
  color: #b7c8e8;
  font-size: 13px;
  list-style: none;
}

.rental-summary-games[hidden] {
  display: none;
}

.rental-summary-games li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rental-summary-games li span:last-child {
  flex: none;
}

.rental-total--final {
  padding-top: 14px;
  border-top: 1px solid #41699e;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.rental-checkout__button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #41699e;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: not-allowed;
}

.rental-checkout details {
  padding: 12px 0;
  border-top: 1px solid #41699e;
}

.rental-checkout summary {
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.rental-checkout details p {
  margin: 10px 0 0;
  color: #dce8fa;
  line-height: 1.5;
}

.rental-checkout__error a,
.rental-checkout__card a {
  color: #9dcaff;
  text-decoration: underline;
}

.rental-pix-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(460px, calc(100% - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid #3475c6;
  border-radius: 16px;
  background: #10316b;
  color: #f2f2f4;
  box-shadow: 0 20px 60px #05122d80;
}

.rental-pix-dialog::backdrop {
  background: #05122dd9;
}

.rental-pix-dialog h2 {
  margin: 0 0 8px;
  color: #fff;
}

.rental-pix-dialog__description,
.rental-pix-dialog__status {
  color: #dce8fa;
  line-height: 1.5;
}

.rental-pix-dialog__timer {
  margin: 14px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.rental-pix-dialog__qr {
  display: block;
  width: min(240px, 100%);
  aspect-ratio: 1;
  margin: 18px auto;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.rental-pix-dialog__qr[hidden] {
  display: none;
}

.rental-pix-dialog__code {
  width: 100%;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #5b7dab;
  border-radius: 8px;
  background: #0a2351;
  color: #fff;
  font: 12px/1.5 monospace;
  resize: vertical;
}

.rental-pix-dialog__button {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 16px;
  border: 1px solid #7197c8;
  border-radius: 8px;
  background: #2069ff;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rental-pix-dialog__button--secondary {
  background: transparent;
}

.rental-pix-dialog__button:focus-visible {
  outline: 2px solid #81d8ed;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .rental-checkout__layout {
    grid-template-columns: 1fr;
  }

  .rental-checkout__card {
    padding: 18px;
  }

  .rental-product {
    align-items: flex-start;
    flex-direction: column;
  }

  .rental-product img {
    width: 100%;
    max-width: 100%;
  }

  .rental-fields {
    grid-template-columns: 1fr;
  }

  .rental-field--wide {
    grid-column: auto;
  }
}
