/* RSA Inquiry List — header button, slide-in drawer, toast */
.rsa-inq { display: contents; }
.rsa-inq__btn {
  position: relative; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; flex: none;
  background: transparent; color: var(--wp--preset--color--muted); border: 1px solid var(--wp--custom--line-soft); border-radius: var(--wp--custom--radius-sm);
  transition: color .2s, border-color .2s, background .2s;
}
.rsa-inq__btn:hover { color: var(--wp--preset--color--heading); border-color: var(--wp--preset--color--teal); background: color-mix(in srgb, var(--wp--preset--color--teal) 10%, transparent); }
.rsa-inq__btn svg { width: 16px; height: 16px; }
.rsa-inq-count {
  min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 99px;
  background: var(--wp--preset--color--amber); color: #111; font-family: var(--wp--preset--font-family--mono); font-size: .7rem; font-weight: 700; line-height: 1;
}
.rsa-inq__btn .rsa-inq-count { position: absolute; top: -6px; right: -6px; }
.rsa-inq-count[data-n="0"] { display: none; }

.rsa-inq__drawer { position: fixed; inset: 0; z-index: 100000; pointer-events: none; }
.rsa-inq__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s; }
.rsa-inq__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 94vw); display: flex; flex-direction: column;
  background: var(--wp--preset--color--base-2); border-left: 1px solid var(--wp--custom--line); color: var(--wp--preset--color--contrast);
  transform: translateX(100%); transition: transform .35s var(--wp--custom--ease);
}
.rsa-inq__drawer.is-open { pointer-events: auto; }
.rsa-inq__drawer.is-open .rsa-inq__backdrop { opacity: 1; }
.rsa-inq__drawer.is-open .rsa-inq__panel { transform: none; }
.admin-bar .rsa-inq__panel { top: var(--wp-admin--admin-bar--height, 0px); }
.rsa-inq__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--wp--custom--line-soft); }
.rsa-inq__head h2 { margin: 0; font-size: 1.25rem; }
.rsa-inq__head small { color: var(--wp--preset--color--muted); }
.rsa-inq__close { background: none; border: 0; color: var(--wp--preset--color--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 6px 10px; margin: -6px -10px; }
.rsa-inq__items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.rsa-inq__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--wp--custom--line-soft); }
.rsa-inq__item b { display: block; font-size: .92rem; color: var(--wp--preset--color--heading); }
.rsa-inq__item small { font-family: var(--wp--preset--font-family--mono); font-size: .72rem; color: var(--wp--preset--color--muted); }
.rsa-inq__item input {
  width: 78px; padding: 8px; text-align: center; border-radius: var(--wp--custom--radius-sm); font: inherit; color: var(--wp--preset--color--heading);
  background: color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 20%, transparent);
}
.rsa-inq__rm { background: none; border: 0; color: var(--wp--preset--color--dim); font-size: 1.3rem; cursor: pointer; padding: 4px 6px; }
.rsa-inq__rm:hover { color: #ef4444; }
.rsa-inq__empty { padding: 50px 10px; text-align: center; color: var(--wp--preset--color--muted); }
.rsa-inq__empty a { color: var(--wp--preset--color--cyan); }
.rsa-inq__foot { display: grid; gap: 10px; padding: 20px 24px; border-top: 1px solid var(--wp--custom--line-soft); }
.rsa-btn--wa { background: var(--wp--preset--color--whatsapp); color: #fff; }
.rsa-btn--wa:hover { color: #fff; filter: brightness(.92); }

.rsa-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100001; display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 12px;
  background: #0f172a; border: 1px solid var(--wp--preset--color--green); color: #fff; font-size: .9rem; box-shadow: var(--wp--custom--shadow);
  transform: translate(-50%, 140px); transition: transform .35s var(--wp--custom--ease); pointer-events: none;
}
.rsa-toast.is-on { transform: translate(-50%, 0); }
.editor-styles-wrapper .rsa-inq__drawer, .editor-styles-wrapper .rsa-toast { display: none; }

/* Small photo of each fish in the list (falls back to a fish icon) */
.rsa-inq__thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; display: block; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--custom--line-soft); }
.rsa-inq__thumb--none { display: grid; place-items: center; color: var(--wp--preset--color--muted); }
.rsa-inq__thumb--none svg { width: 26px; height: 26px; }
.rsa-inq__item > div { min-width: 0; }
.rsa-inq__item b { overflow-wrap: anywhere; }
@media (max-width: 400px) { .rsa-inq__item { grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 8px; } .rsa-inq__thumb { width: 44px; height: 44px; } }

/* Faint photo behind the list: clearer when the list is empty, very soft once fish are added so text stays readable */
.rsa-inq__items {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--base-2) 92%, transparent), color-mix(in srgb, var(--wp--preset--color--base-2) 86%, transparent)),
    var(--rsa-inq-bg, none) center / cover no-repeat;
}
.rsa-inq__items:has(.rsa-inq__empty) {
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--base-2) 66%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--base-2) 78%, transparent) 60%, var(--wp--preset--color--base-2) 100%),
    var(--rsa-inq-bg, none) center / cover no-repeat;
}
.rsa-inq__empty { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
