.title-table .effect-unit-link,
#myBonusRows .effect-unit-link {
  font-size: inherit;
}

.title-table th:first-child,
.title-table td:first-child {
  width: 20%;
}

.title-table th:nth-child(2),
.title-table td:nth-child(2) {
  width: 22%;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.title-table th:nth-child(3),
.title-table td:nth-child(3) {
  width: 44%;
  text-align: start;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.title-table th:nth-child(4),
.title-table td:nth-child(4) {
  width: 14%;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 575px) {
  .title-table th:first-child,
  .title-table td:first-child {
    width: 23%;
  }

  .title-table th:nth-child(2),
  .title-table td:nth-child(2) {
    width: 21%;
  }

  .title-table th:nth-child(3),
  .title-table td:nth-child(3) {
    width: 40%;
  }

  .title-table th:nth-child(4),
  .title-table td:nth-child(4) {
    width: 16%;
  }
}

.my-points-button {
    padding: 0;
    border: 0;
    background: transparent;
    order: -1;
}

.my-points-button[hidden],
.my-points-modal [hidden] {
    display: none !important;
}

.my-points-button .home-icon i {
    font-size: 23px;
}

@media (max-width: 700px) {
    .my-points-button {
        width: 44px;
        height: 44px;
    }
}

.my-points-modal {
    --gf-modal-width: min(640px, calc(100% - 20px));
    --my-points-modal-height: min(680px, calc(100vh - 32px));
    --my-points-modal-height: min(680px, calc(100dvh - 32px));
}

.my-points-modal .gf-modal-card {
    display: flex;
    flex-direction: column;
    height: var(--my-points-modal-height);
    min-height: var(--my-points-modal-height);
    max-height: var(--my-points-modal-height);
}

.my-points-modal .gf-modal-head,
.my-points-warning,
.my-points-controls {
    flex: 0 0 auto;
}

.my-points-warning {
    padding: 7px 12px;
    background: rgba(215, 155, 66, .1);
    border-bottom: 1px solid rgba(215, 155, 66, .32);
    color: #e6d1af;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.my-points-modal .gf-modal-body,
#myPointsRewards,
#myPointsRows,
#myPointsRows > .reward-summary-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.my-points-modal .gf-modal-body {
    flex: 1 1 auto;
    overflow: hidden;
    overscroll-behavior: contain;
}

.my-points-controls {
    padding: 5px 8px;
    border-bottom: 1px solid var(--gf-gold-line);
    background: var(--gf-navbar-bg);
}

.my-points-input {
    font-variant-numeric: tabular-nums;
}

#myPointsRewards,
#myPointsRows,
#myPointsRows > .reward-summary-wrap {
    flex: 1 1 auto;
}

#myPointsRows {
    margin: 0;
}

#myPointsRows > .filter-empty-message {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #cbb497;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-shadow: none;
}

#myPointsRows > .reward-summary-wrap {
    overflow: hidden;
    padding: 0;
}

#myPointsRows .reward-summary-name span {
    overflow-wrap: anywhere;
}

#myPointsRows .reward-summary-table th:last-child,
#myPointsRows .reward-summary-table td:last-child {
    width: 25%;
}


.reward-summary-header {
    flex: 0 0 auto;
    background: #4f3625;
}

.reward-summary-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.reward-summary-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    color: #f7ead5;
    font-size: clamp(11px, 1.2vw, 14px);
}

.reward-summary-table th,
.reward-summary-table td {
    padding: clamp(4px, 0.8vw, 8px) clamp(3px, 1vw, 12px);
    border-bottom: 1px solid rgba(215, 155, 66, 0.34);
    vertical-align: middle;
    text-align: start;
}

.reward-summary-table th {
    background: #4f3625;
    color: #f3c24a;
    font-weight: 900;
    border-bottom: 2px solid rgba(215, 155, 66, 0.52);
}

.reward-summary-table th:last-child,
.reward-summary-table td:last-child {
    width: 20%;
    border-inline-start: 1px solid rgba(215, 155, 66, 0.34);
    text-align: center;
}

.reward-summary-table tbody tr {
    background: linear-gradient(90deg, rgba(79, 54, 37, 0.96), rgba(79, 54, 37, 0.76));
}

.reward-summary-table tbody tr:nth-child(even) {
    background: linear-gradient(90deg, rgba(73, 49, 34, 0.96), rgba(73, 49, 34, 0.74));
}

.reward-summary-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(86, 58, 39, 0.98), rgba(86, 58, 39, 0.82));
}

.reward-summary-table tbody tr:last-child td {
    border-bottom: 0;
}


.my-points-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, .5fr); gap: 8px; }
#myPointsTop { min-width: 0; }
#myBonusRows td { overflow-wrap: anywhere; }
#myBonusRows .bonus-empty { text-align: center; color: #cbb497; padding: 24px; }

.points-forecast {
    flex: 0 0 140px;
    height: 140px;
    display: grid;
    grid-template-rows: 38px 34px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--gf-gold-line);
    color: #e6d1af;
    background: rgba(215, 155, 66, .05);
}

.forecast-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 3px;
    gap: 3px;
    margin-bottom: 0;
    border: 1px solid rgba(215, 155, 66, .32);
    border-radius: 6px;
    background: rgba(0, 0, 0, .1);
}

.forecast-modes button {
    min-height: 30px;
    border: 0;
    border-radius: 3px;
    padding: 4px 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
}

.forecast-modes button[aria-pressed="true"] {
    color: #433120;
    background: var(--gf-input-bg, #f3e4c8);
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.forecast-modes button:focus-visible {
    outline: 2px solid #f3c24a;
    outline-offset: 2px;
}

.points-forecast-controls {
    min-width: 0;
}

.forecast-field { min-width: 0; }

.forecast-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.3;
}

#myPointsDays {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 4px 26px 4px 9px;
    font-size: 13px;
    line-height: 1.3;
    background-position: right 7px center;
}

#myPointsDays { text-align: center; }

.forecast-day-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    align-items: center;
    gap: 12px;
}

.forecast-day-field label {
    font-size: 12px;
    margin: 0;
}

.forecast-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(215, 155, 66, .24);
    font-size: 12px;
    line-height: 1.3;
}

#myPointsForecast {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #f3c24a;
}
