/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  margin: 0;
  background: #f3f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2328;
}

.hidden {
  display: none !important;
}

.conversation-page {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px;
}

.conversation-page__header h1 {
  margin: 0 0 16px;
  font-size: 24px;
}

.conversation-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.conversation-search__input {
  flex: 1 1 280px;
  max-width: 360px;
  border: 1px solid #d6dce7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.conversation-search__submit,
.conversation-search__reset {
  border: 1px solid #d6dce7;
  border-radius: 8px;
  background: #fff;
  color: #1f2328;
  padding: 8px 12px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}

.conversation-list {
  display: grid;
  gap: 12px;
}

.conversation-item {
  width: 100%;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  align-items: center;
}

.conversation-item__avatar {
  flex-shrink: 0;
}

.conversation-item__main {
  flex: 1 1 auto;
  min-width: 0;
}

.conversation-item:hover {
  border-color: #98c1ff;
  box-shadow: 0 8px 16px rgba(34, 65, 106, 0.08);
}

.conversation-item__name {
  margin: 0 0 6px;
  font-weight: 700;
}

.conversation-item__preview {
  margin: 0;
  color: #58627a;
}

.conversation-item__meta {
  flex-shrink: 0;
  color: #7b8798;
  text-align: right;
  font-size: 12px;
}

.conversation-item__meta p {
  margin: 0;
}

.conversation-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.conversation-modal__dialog {
  width: min(760px, 100%);
  max-height: 88vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.conversation-modal__close {
  align-self: flex-end;
  margin: 10px 10px 0 0;
  border: 0;
  background: #eef2f7;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.conversation-modal__loading,
.conversation-modal__error {
  margin: 24px;
  text-align: center;
  color: #6e7786;
}

.conversation-modal__error {
  color: #c0392b;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf0f5;
  padding: 14px 16px;
  background: #fafbfc;
}

.chat-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-header__info {
  min-width: 0;
}

.chat-header__info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e9eef6;
  border: 1px solid #d9e2ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar--md {
  width: 36px;
  height: 36px;
}

.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar__fallback {
  font-size: 14px;
  font-weight: 700;
  color: #44506a;
  user-select: none;
}

.chat-header strong {
  display: block;
  margin-bottom: 4px;
}

.chat-header p {
  margin: 0;
  font-size: 12px;
  color: #778197;
}

.chat-messages {
  padding: 16px;
  overflow-y: auto;
  background: #e9eef4;
  height: 500px;
}

.chat-message {
  display: flex;
  margin-bottom: 12px;
}

.chat-message--mine {
  justify-content: flex-end;
}

.chat-message--theirs {
  justify-content: flex-start;
}

.chat-message__bubble {
  max-width: 80%;
  border-radius: 12px;
  padding: 10px 12px;
}

.chat-message--mine .chat-message__bubble {
  background: #95ec69;
  border-top-right-radius: 4px;
}

.chat-message--theirs .chat-message__bubble {
  background: #fff;
  border-top-left-radius: 4px;
}

.chat-message__bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message__meta {
  margin-top: 6px;
  font-size: 11px;
  color: #6e7786;
  display: flex;
  gap: 8px;
}

.chat-empty,
.conversation-empty {
  margin: 0;
  color: #6e7786;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.gift-register-page {
  max-width: 1800px;
  margin: 24px auto;
  padding: 0 16px 24px;
}

.gift-register-page__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gift-register-page__header h1 {
  margin: 0;
  font-size: 24px;
}

.gift-register-page__actions,
.gift-filter__actions,
.gift-form__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gift-imports {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
}

.gift-imports__form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gift-imports__actions {
  display: flex;
  gap: 8px;
}

.gift-import-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1100;
}

.gift-import-modal__dialog {
  width: min(760px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e3e8ee;
  padding: 18px;
}

.gift-import-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gift-import-modal__header h2 {
  margin: 0;
  font-size: 20px;
}

.gift-import-modal__entry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gift-import-entry-card {
  border: 1px solid #d8dfea;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.gift-import-entry-card:hover {
  border-color: #8bb4ff;
  box-shadow: 0 8px 16px rgba(34, 65, 106, 0.08);
}

.gift-import-entry-card strong {
  font-size: 18px;
}

.gift-import-entry-card span {
  font-size: 14px;
  color: #5f6a80;
}

.gift-import-modal__panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.gift-form-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1150;
}

.gift-form-modal__dialog {
  width: min(500px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e3e8ee;
}

.gift-form-modal__content {
  padding: 14px;
}

.gift-form-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.gift-form-modal__header h2 {
  margin: 0;
  font-size: 20px;
}

.gift-form-modal__loading,
.gift-form-modal__error {
  margin: 0;
  padding: 20px;
  color: #5f6a80;
}

.gift-form-modal__error {
  color: #ae222e;
}

.gift-btn {
  border: 1px solid #d6dce7;
  border-radius: 8px;
  background: #fff;
  color: #1f2328;
  padding: 8px 12px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}

.gift-btn--primary {
  background: #2176ff;
  border-color: #2176ff;
  color: #fff;
}

.gift-btn--submit {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.gift-filter,
.gift-form {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.gift-filter__grid,
.gift-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.gift-filter__item,
.gift-form__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gift-filter__item label,
.gift-form__item label {
  color: #5d687e;
  font-size: 13px;
}

.gift-filter__item input,
.gift-filter__item select,
.gift-form__item input,
.gift-form__item select {
  border: 1px solid #d6dce7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  background: #fff;
  color: #1f2328;
}

/* Modern multi-select (checkbox dropdown) */
.multi-select {
  position: relative;
  width: 100%;
}

.multi-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  border: 1px solid #d6dce7;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 14px;
  line-height: 1.3;
  background: #fff;
  color: #1f2328;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.multi-select__trigger:hover {
  border-color: #b8c2d4;
}

.multi-select.is-open .multi-select__trigger,
.multi-select__trigger:focus {
  outline: none;
  border-color: #2176ff;
  box-shadow: 0 0 0 3px rgba(33, 118, 255, 0.15);
}

.multi-select__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-select__label.is-placeholder {
  color: #8b95a8;
}

.multi-select__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: #8b95a8;
}

.multi-select__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #2176ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.multi-select__chevron {
  display: block;
  transition: transform 0.15s ease;
}

.multi-select.is-open .multi-select__chevron {
  transform: rotate(180deg);
}

.multi-select__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 240px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(31, 35, 40, 0.12), 0 2px 8px rgba(31, 35, 40, 0.06);
  overflow: hidden;
}

.multi-select__panel.hidden {
  display: none;
}

.multi-select__toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid #eef1f6;
  background: #fafbfc;
  flex-shrink: 0;
}

.multi-select__tool-btn {
  border: none;
  background: transparent;
  color: #2176ff;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.multi-select__tool-btn:hover {
  background: #e8f1ff;
}

.multi-select__body {
  overflow-y: auto;
  padding: 6px;
  overscroll-behavior: contain;
}

.multi-select__group + .multi-select__group {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #eef1f6;
}

.multi-select__group-label {
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b95a8;
}

.multi-select__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
}

.multi-select__option:hover {
  background: #f4f7fb;
}

.multi-select__option:has(input:checked) {
  background: #f0f6ff;
}

.multi-select__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.multi-select__checkbox {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid #c5cedc;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.multi-select__option:hover .multi-select__checkbox {
  border-color: #2176ff;
}

.multi-select__option input:checked + .multi-select__checkbox {
  background: #2176ff;
  border-color: #2176ff;
}

.multi-select__option input:checked + .multi-select__checkbox::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.multi-select__option input:focus-visible + .multi-select__checkbox {
  box-shadow: 0 0 0 3px rgba(33, 118, 255, 0.2);
}

.multi-select__option-text {
  font-size: 14px;
  color: #1f2328;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-form__item--full {
  grid-column: 1 / -1;
}

.gift-form__errors {
  background: #fff3f3;
  color: #ae222e;
  border: 1px solid #ffd8d8;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.gift-form__errors ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.gift-image-fill {
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  background: #fbfcfe;
}

.gift-image-fill__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.gift-image-fill__header h2 {
  margin: 0;
  font-size: 16px;
}

.gift-image-fill__actions {
  display: flex;
  gap: 8px;
}

.gift-image-fill__paste-zone {
  border: 1px dashed #a9bad9;
  border-radius: 10px;
  min-height: 88px;
  padding: 12px;
  color: #5f6a80;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gift-image-fill__paste-zone:focus {
  outline: 2px solid #8bb4ff;
  outline-offset: 1px;
}

.gift-image-fill__paste-zone--loading {
  opacity: 0.7;
  pointer-events: none;
}

.gift-image-fill__status {
  margin: 10px 0;
  color: #4f5f7e;
  font-size: 13px;
}

.gift-image-fill__status--error {
  color: #ae222e;
}

.gift-image-fill__previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.gift-image-fill__preview-item {
  border: 1px solid #d8dfea;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.gift-image-fill__preview-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.gift-address-fill {
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  background: #fbfcfe;
}

.gift-address-fill--loading {
  opacity: 0.78;
  pointer-events: none;
}

.gift-address-fill__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gift-address-fill__header h2 {
  margin: 0;
  font-size: 16px;
}

.gift-address-fill__actions {
  display: flex;
  gap: 8px;
}

.gift-address-fill__label {
  display: block;
  margin: 10px 0 6px;
  color: #4f5f7e;
  font-size: 13px;
}

.gift-address-fill__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d6dce7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  min-height: 76px;
  resize: vertical;
}

.gift-address-fill__hint {
  margin: 8px 0 4px;
  color: #6e7786;
  font-size: 12px;
}

.gift-address-fill__status {
  margin: 6px 0 0;
  color: #4f5f7e;
  font-size: 13px;
}

.gift-address-fill__status--error {
  color: #ae222e;
}

.gift-notice {
  background: #e8f5e9;
  color: #246b33;
  border: 1px solid #cce8d2;
  border-radius: 8px;
  padding: 10px 12px;
}

.gift-alert {
  background: #fff3f3;
  color: #ae222e;
  border: 1px solid #ffd8d8;
  border-radius: 8px;
  padding: 10px 12px;
}

.gift-table-wrapper {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  overflow: auto;
}

.gift-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.gift-table th,
.gift-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.gift-table th {
  background: #fafbfc;
  color: #5f6a80;
  font-weight: 600;
}

.gift-table tbody td {
  transition: background-color 0.15s ease;
}

.gift-table tbody tr:hover td {
  background: #eef4ff;
}

.gift-table__empty {
  text-align: center !important;
  color: #6e7786;
}

.gift-table__link {
  color: #2176ff;
  text-decoration: none;
}

.gift-table__video-url {
  max-width: 380px;
  white-space: normal;
  word-break: break-all;
}

.gift-table__link-highlight {
  color: #0b63f6;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.gift-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.gift-batch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gift-batch-actions__count {
  font-size: 13px;
  color: #5d687e;
}

.gift-batch-actions__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gift-table__checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.gift-batch-modal__field {
  display: grid;
  gap: 6px;
}

.gift-batch-modal__field label {
  font-size: 13px;
  color: #5d687e;
}

.gift-batch-modal__field select,
.gift-batch-modal__field textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid #d6dce7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.gift-batch-modal__field textarea {
  resize: vertical;
  min-height: 80px;
}

.gift-table-toolbar__meta .pagy.info {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #e3e8ee;
  border-radius: 999px;
  background: #fff;
  color: #5d687e;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.gift-pagination {
  --gift-pagination-primary: #2176ff;
  --gift-pagination-primary-hover: #1a63db;
  --gift-pagination-primary-soft: #e8f1ff;
  --gift-pagination-border: #e3e8ee;
  --gift-pagination-text: #1f2328;
  --gift-pagination-muted: #5d687e;
  --gift-pagination-surface: #f7f9fc;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--gift-pagination-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.gift-pagination .pagy.series-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--gift-pagination-surface);
  border: 1px solid var(--gift-pagination-border);
  border-radius: 999px;
}

.gift-pagination .pagy.series-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gift-pagination-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.gift-pagination .pagy.series-nav a[href]:hover {
  background: #fff;
  color: var(--gift-pagination-primary);
  box-shadow: 0 2px 8px rgba(33, 118, 255, 0.12);
  transform: translateY(-1px);
}

.gift-pagination .pagy.series-nav a[aria-current="page"] {
  background: linear-gradient(135deg, #3b8bff 0%, var(--gift-pagination-primary) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(33, 118, 255, 0.28);
}

.gift-pagination .pagy.series-nav a[role="separator"] {
  min-width: 28px;
  padding: 0 2px;
  color: #9aa5b5;
  letter-spacing: 1px;
  cursor: default;
  user-select: none;
}

.gift-pagination .pagy.series-nav a:not([href]):not([aria-current="page"]):not([role="separator"]) {
  opacity: 0.38;
  cursor: not-allowed;
}

.gift-pagination .pagy.series-nav > a:first-child,
.gift-pagination .pagy.series-nav > a:last-child {
  min-width: 40px;
  font-size: 0;
  background: #fff;
  border: 1px solid var(--gift-pagination-border);
}

.gift-pagination .pagy.series-nav > a:first-child[href]:hover,
.gift-pagination .pagy.series-nav > a:last-child[href]:hover {
  border-color: var(--gift-pagination-primary);
  background: var(--gift-pagination-primary-soft);
}

.gift-pagination .pagy.series-nav > a:first-child::before,
.gift-pagination .pagy.series-nav > a:last-child::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-right: 0;
}

.gift-pagination .pagy.series-nav > a:first-child::before {
  margin-left: 3px;
  transform: rotate(45deg);
}

.gift-pagination .pagy.series-nav > a:last-child::before {
  margin-right: 3px;
  transform: rotate(-135deg);
}

@media (max-width: 768px) {
  .gift-table-toolbar {
    justify-content: flex-start;
  }
}

.gift-inline-audit {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.gift-inline-audit__actions {
  display: flex;
  gap: 6px;
}

.gift-inline-audit__btn {
  border: 1px solid #d6dce7;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

.gift-inline-audit__btn--approve {
  border-color: #b7e2c0;
  background: #ecfaf0;
  color: #1d6b31;
}

.gift-inline-audit__btn--reject {
  border-color: #ffd5d5;
  background: #fff2f2;
  color: #ae222e;
}

.gift-inline-audit__btn--edit {
  color: #44506a;
}

.gift-inline-audit__reason {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  border: 1px solid #d6dce7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  resize: vertical;
}

.gift-audit-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 38, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1200;
}

.gift-audit-modal__dialog {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.gift-audit-modal__title {
  margin: 0;
  font-size: 16px;
  color: #2d3b52;
}

.gift-audit-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.gift-inline-audit__submit,
.gift-inline-audit__cancel {
  border: 1px solid #d6dce7;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

.gift-inline-audit__submit {
  border-color: #ffd5d5;
  background: #fff2f2;
  color: #ae222e;
}

.global-notice,
.global-alert {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  font-size: 14px;
}

.global-notice {
  background: #e8f5e9;
  color: #246b33;
  border-bottom: 1px solid #cce8d2;
}

.global-alert {
  background: #fff3f3;
  color: #ae222e;
  border-bottom: 1px solid #ffd8d8;
}

.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 14px;
  padding: 22px;
}

.auth-card h1 {
  margin: 0;
  font-size: 24px;
}

.auth-card__subtitle {
  margin: 8px 0 16px;
  color: #5f6a80;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form__item {
  display: grid;
  gap: 6px;
}

.auth-form__item input {
  border: 1px solid #d6dce7;
  border-radius: 8px;
  padding: 9px 10px;
}

.auth-form__submit {
  width: 100%;
}

.admin-page {
  max-width: 1800px;
  margin: 18px auto;
  padding: 0 16px 24px;
}

.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
}

.admin-nav__left,
.admin-nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-nav__link {
  border: 1px solid #d6dce7;
  border-radius: 999px;
  padding: 5px 10px;
  text-decoration: none;
  color: #1f2328;
  background: #fff;
  font-size: 13px;
}

.admin-nav__user {
  color: #4f5f7e;
  font-size: 13px;
}

.admin-nav__logout-form {
  margin: 0;
}

.admin-page__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-page__header h1 {
  margin: 0;
  font-size: 22px;
}

.admin-form {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: 14px;
}

.admin-form__grid {
  display: grid;
  gap: 12px;
}

.admin-table-wrapper {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf0f5;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  background: #fafbfc;
  color: #5f6a80;
  font-weight: 600;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fbfcfe;
}

.mobile-body {
  background: #f5f7fb;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

.gift-lookup-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
}

.gift-lookup-page__header {
  text-align: center;
  margin-bottom: 20px;
}

.gift-lookup-page__header h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1f2328;
}

.gift-lookup-page__header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6e7786;
}

.gift-lookup-form {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.gift-lookup-form__field {
  display: grid;
  gap: 8px;
}

.gift-lookup-form__field label {
  font-size: 14px;
  font-weight: 600;
  color: #44506a;
}

.gift-lookup-form__field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d6dce7;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
  color: #1f2328;
}

.gift-lookup-form__field input:focus {
  outline: none;
  border-color: #2176ff;
  box-shadow: 0 0 0 3px rgba(33, 118, 255, 0.15);
}

.gift-lookup-form__divider {
  position: relative;
  margin: 18px 0;
  text-align: center;
  color: #9aa5b5;
  font-size: 13px;
}

.gift-lookup-form__divider::before,
.gift-lookup-form__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: #e3e8ee;
}

.gift-lookup-form__divider::before {
  left: 0;
}

.gift-lookup-form__divider::after {
  right: 0;
}

.gift-lookup-form__submit {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b8bff 0%, #2176ff 100%);
  color: #fff;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.gift-lookup-alert {
  margin-top: 16px;
  background: #fff3f3;
  color: #ae222e;
  border: 1px solid #ffd8d8;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.gift-lookup-results {
  margin-top: 20px;
}

.gift-lookup-results__title {
  margin: 0 0 12px;
  font-size: 15px;
  color: #5d687e;
}

.gift-lookup-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.gift-lookup-card__order-id {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2328;
  word-break: break-all;
}

.gift-lookup-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  margin-bottom: 16px;
}

.gift-lookup-steps__connectors {
  position: absolute;
  top: 12px;
  left: 12.5%;
  width: 75%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 2px;
  z-index: 0;
  pointer-events: none;
}

.gift-lookup-steps__connector {
  height: 2px;
  background: #e3e8ee;
}

.gift-lookup-steps__connector--done {
  background: #2176ff;
}

.gift-lookup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.gift-lookup-step__dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #d6dce7;
  background: #fff;
  color: #9aa5b5;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gift-lookup-step--done .gift-lookup-step__dot {
  border-color: #2176ff;
  background: #2176ff;
  color: #fff;
}

.gift-lookup-step--current .gift-lookup-step__dot {
  border-color: #2176ff;
  background: #e8f1ff;
  color: #2176ff;
  box-shadow: 0 0 0 4px rgba(33, 118, 255, 0.12);
}

.gift-lookup-step--rejected .gift-lookup-step__dot {
  border-color: #e05252;
  background: #fff2f2;
  color: #ae222e;
  box-shadow: 0 0 0 4px rgba(224, 82, 82, 0.12);
}

.gift-lookup-step__label {
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  color: #9aa5b5;
  padding: 0 2px;
}

.gift-lookup-step--done .gift-lookup-step__label,
.gift-lookup-step--current .gift-lookup-step__label {
  color: #1f2328;
  font-weight: 600;
}

.gift-lookup-step--rejected .gift-lookup-step__label {
  color: #ae222e;
  font-weight: 600;
}

.gift-lookup-tip {
  margin: -4px 0 12px;
  padding: 10px 12px;
  background: #f0f6ff;
  border: 1px solid #d6e6ff;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #3d5a8a;
  text-align: center;
}

.gift-lookup-card__urge-btn {
  display: block;
  width: 100%;
  margin: -4px 0 12px;
  padding: 10px 16px;
  border: 1px solid #2176ff;
  border-radius: 10px;
  background: #fff;
  color: #2176ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gift-lookup-card__urge-btn:active {
  background: #e8f1ff;
}

.gift-lookup-toast {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.gift-lookup-toast.hidden {
  display: none;
}

.gift-lookup-toast__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  animation: gift-lookup-toast-fade-in 0.2s ease;
}

.gift-lookup-toast__dialog {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 28px 24px 20px;
  background: #fff;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  animation: gift-lookup-toast-slide-in 0.25s ease;
}

@keyframes gift-lookup-toast-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gift-lookup-toast-slide-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gift-lookup-toast__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ecfaf0;
  color: #1d6b31;
  font-size: 26px;
  line-height: 52px;
  font-weight: 700;
}

.gift-lookup-toast__message {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #1f2328;
  font-weight: 500;
}

.gift-lookup-toast__confirm {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: #2176ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gift-lookup-toast__confirm:active {
  background: #1a63d9;
}

.gift-lookup-card__list {
  margin: 0;
}

.gift-lookup-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f3f8;
}

.gift-lookup-card__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gift-lookup-card__row dt {
  flex-shrink: 0;
  margin: 0;
  font-size: 14px;
  color: #6e7786;
}

.gift-lookup-card__row dd {
  margin: 0;
  text-align: right;
  font-size: 14px;
  color: #1f2328;
  word-break: break-all;
}

.gift-lookup-card__tracking-link {
  color: #1677ff;
  text-decoration: none;
  font-weight: 500;
}

.gift-lookup-card__tracking-link:hover {
  text-decoration: underline;
}

.gift-lookup-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
}

.gift-lookup-badge--pending {
  background: #fff7e6;
  color: #a66a00;
}

.gift-lookup-badge--approved {
  background: #ecfaf0;
  color: #1d6b31;
}

.gift-lookup-badge--rejected {
  background: #fff2f2;
  color: #ae222e;
}

.gift-lookup-page__footer {
  margin-top: 24px;
  text-align: center;
}

.gift-lookup-page__footer p {
  margin: 0;
  font-size: 13px;
  color: #9aa5b5;
}
