/* Code-owned controls: custom.css is preserved by the deployment volume. */
.mobile-betslip-close {
  display: none;
}

/* Keep cookie preferences reachable above the fixed mobile navigation. */
@media (max-width: 767px) {
  .cookies-card {
    bottom: calc(86px + env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    width: calc(100% - 24px) !important;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    padding: 18px !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 35px rgba(10, 13, 30, 0.28);
  }

  .cookies-card.hide {
    bottom: -600px !important;
  }

  .cookies-card__content {
    margin-top: 12px !important;
  }

  .cookies-card__btn {
    margin-top: 14px !important;
  }
}

.betslip-guest-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
  padding: 7px 8px;
  border: 1px solid hsl(var(--base) / 0.24);
  border-radius: 7px;
  background: hsl(var(--base) / 0.08);
  color: #454552;
  font-size: 12px;
  line-height: 1.4;
}

.betslip-guest-notice i {
  font-size: 15px;
}

.betslip-guest-notice a {
  color: #34344a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media screen and (max-width: 991px) {
  .betslip .betslip-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    column-gap: 6px;
  }

  .betslip-header .bet-type {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .betslip .mobile-betslip-close {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #d5d5db;
    border-radius: 50%;
    background: #fff;
    color: #232337;
    cursor: pointer;
  }

  .betslip .mobile-betslip-close i {
    width: auto;
    height: auto;
    background: transparent;
    color: inherit;
    font-size: 24px;
  }

  .mobile-betslip-close:focus-visible {
    outline: 2px solid hsl(var(--base));
    outline-offset: 2px;
  }

  .betslip-guest-notice {
    grid-column: 1 / -1;
  }

  body.open-betslip .app-nav .app-nav__menu-link.open-betslip {
    background: hsl(var(--base));
    border-radius: 12px;
    box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.65);
  }

  body.open-betslip .app-nav .open-betslip .app-nav__menu-icon,
  body.open-betslip .app-nav .open-betslip .app-nav__menu-text {
    color: #fff !important;
  }

  body.open-betslip .app-nav .open-betslip .app-nav__menu-text {
    font-weight: 700;
  }

body.open-betslip .app-nav .open-betslip .app-nav__menu-text::after {
    content: none;
  }
}

/* Compact bet slip hierarchy shared by desktop and mobile. */
.betslip-tab-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.betslip-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  background: hsl(var(--base));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.betslip__body {
  border: 0;
  border-radius: 12px;
  background: #fff !important;
}

.list.betslip__list {
  margin: 0;
  padding: 0;
}

.betslip-item {
  padding: 11px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.betslip-item:not(:last-child) {
  margin-bottom: 0;
  border-bottom: 1px solid #e7e9ee;
}

.betslip-item > *:not(:last-child),
.betslip-item-body > *:not(:last-child) {
  margin-bottom: 7px;
}

.betslip-item-header {
  flex-wrap: nowrap;
  gap: 10px;
}

.betslip-item-event {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #687083;
  font-size: 10px;
  line-height: 1.2;
}

.betslip-item-league {
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f0f2f6;
  font-size: 10px;
}

.betslip-item-league i {
  font-size: 11px;
}

.betslip-item-league__name {
  color: #475063;
  font-size: 10px;
  font-weight: 700;
}

.betslip-item-matchup {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.betslip-item-close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: #747b89;
  background: #f0f2f5;
}

.betslip-item-close i {
  font-size: 15px;
}

.betslip-item-market__wrapper {
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 12px;
}

.betslip-item-market__label {
  color: #151b34;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

.betslip-item-market__score {
  flex: 0 0 auto;
  color: hsl(var(--base));
  font-size: 14px;
  font-weight: 800;
}

.betslip-item-market__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
  color: #7b8393;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.betslip-item-stake,
.betslip-item-return {
  margin-top: 8px;
}

.betslip__footer {
  padding-bottom: 10px !important;
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  box-shadow: 0 -8px 24px rgb(20 26 48 / 0.05);
}

.betslip__footer-list {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(145px, 1.2fr);
  align-items: end;
  gap: 10px !important;
  padding: 10px 12px 0;
}

.betslip-select {
  margin: 0 !important;
  padding: 0;
  border: 0;
}

.betslip-select .form-select {
  min-height: 40px;
  border-color: #d9dce3;
  border-radius: 8px;
  font-weight: 700;
}

.betslip-righ {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2px 10px;
  padding: 0;
}

.betslip__list-ratio {
  grid-row: 1 / 3;
}

.betslip__list-ratio > span,
.betslip__list-match {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  color: #737b8b !important;
}

.betslip__list-ratio input {
  height: 26px;
  border-bottom: 1px solid #cfd3dc;
  color: #171d36;
  font-size: 16px;
  font-weight: 800;
}

.betslip__list-content {
  margin: 0 !important;
  text-align: right;
}

.bet-return {
  margin: 0;
  color: #525a6b;
  font-size: 11px;
  text-align: right;
}

.bet-return strong {
  color: #151b34;
  font-size: 13px;
}

.betslip__footer-bottom {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  margin-top: 10px;
  padding: 10px 12px 0;
}

.betslip__footer-bottom .betslip-form {
  display: none;
}

.betslip__footer-bottom .delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-width: 64px;
  height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  color: hsl(var(--danger));
  background: hsl(var(--danger) / 0.08);
  font-size: 12px;
  font-weight: 700;
}

.betslip__footer-bottom .delete-btn i {
  font-size: 17px;
}

.betslip__footer-bottom .place-btn {
  width: 100%;
  padding: 0;
}

.betslip__footer-btn {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

@media screen and (max-width: 991px) {
  /* This code-owned stylesheet overrides the theme's sticky header on every page. */
  .header-primary {
    position: relative !important;
    top: auto !important;
  }

  .top-sticky {
    top: 0 !important;
  }

  .betslip {
    width: min(100%, 430px);
    max-width: none;
    padding: max(10px, env(safe-area-inset-top)) 10px 10px;
    box-shadow: -12px 0 35px rgb(10 14 30 / 0.22);
  }

  .betslip .betslip-header {
    padding-bottom: 8px;
  }

  .betslip .mobile-betslip-close {
    width: 40px;
    height: 40px;
  }

  .betslip__body {
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 430px) {
  .betslip {
    width: 100%;
  }

  .betslip__footer-list {
    grid-template-columns: 108px minmax(0, 1fr);
  }
}
