body {
  min-height: 100vh;
  background-color: #f8f9fa;
}

.auth-card {
  max-width: 32rem;
  margin-inline: auto;
}

.compensation-form {
  min-width: 0;
}

.compensation-button {
  aspect-ratio: 1 / 1;
  min-height: 5.5rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.4rem;
  white-space: normal;
}

.compensation-button-label {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.compensation-button-icon {
  font-size: clamp(1.8rem, 8vw, 3rem);
  line-height: 1;
  filter: none;
}

.compensation-button:disabled .compensation-button-icon {
  filter: grayscale(1);
}

.compensation-button-image {
  width: 55%;
  max-width: 4rem;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.compensation-button:disabled .compensation-button-image {
  filter: grayscale(1);
  opacity: 0.7;
}

.button-icon-thumbnail,
.button-icon-preview {
  width: 4rem;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.compensation-button:disabled {
  color: #fff;
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  opacity: 0.65;
}

.compensation-cooldown {
  min-height: 1.5rem;
  padding-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 768px) {
  .compensation-button {
    min-height: 7rem;
  }
}

.selected-gift-card {
  width: 100%;
  max-width: 32rem;
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  background: var(--bs-body-bg);
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.selected-gift-card:hover,
.selected-gift-card:focus,
.gift-choice:hover,
.gift-choice.selected {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.18);
}

.selected-gift-media {
  width: 5rem;
  height: 5rem;
  flex: 0 0 5rem;
  display: grid;
  place-items: center;
}

.selected-gift-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.selected-gift-default {
  font-size: 3.25rem;
  line-height: 1;
}

.selected-gift-body {
  flex: 1 1 auto;
  min-width: 0;
}

.selected-gift-label {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.selected-gift-meta {
  display: block;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

.gift-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gift-picker-grid.size-sm {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .gift-picker-grid.size-md {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .gift-picker-grid.size-lg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gift-choice {
  width: 100%;
  min-height: 9rem;
  padding: 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background: var(--bs-body-bg);
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: normal;
}

.gift-picker-grid.size-sm .gift-choice {
  min-height: 7.25rem;
  padding: 0.5rem;
}

.gift-picker-grid.size-lg .gift-choice {
  min-height: 12rem;
}

.gift-choice-media {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
}

.gift-picker-grid.size-sm .gift-choice-media {
  width: 3.25rem;
  height: 3.25rem;
}

.gift-picker-grid.size-lg .gift-choice-media {
  width: 6rem;
  height: 6rem;
}

.gift-choice-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gift-choice-default {
  font-size: 3rem;
  line-height: 1;
}

.gift-choice-name {
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.gift-choice-meta {
  color: var(--bs-secondary-color);
  font-size: 0.8125rem;
}

.gift-log-image,
.gift-log-default {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  object-fit: contain;
}

.gift-log-media {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  display: grid;
  place-items: center;
}

.gift-log-default {
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}
