@charset "UTF-8";
.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
}

.mobile-price-toggle,
.mobile-price-backdrop,
.mobile-price-close {
  display: none;
}

.price-card {
  background: var(--card-bg);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  max-width: 100%;
}

.price-card-header {
  background: radial-gradient(circle at 86% 10%, rgba(20, 184, 166, 0.52), transparent 30%), linear-gradient(135deg, #111827 0%, #1D4ED8 58%, #0F766E 100%);
  color: var(--primary-text);
  padding: 22px 24px 18px;
  position: relative;
  overflow: hidden;
}

.price-card-header::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.price-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.price-label-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.price-rate-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #EEF2F7;
  color: #475569;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.price-total {
  position: relative;
  z-index: 1;
  font-family: "DM Mono", monospace;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-sub {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.92;
}

.price-card-body {
  padding: 20px 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
}

.price-breakdown {
  font-size: 14px;
  background: #FFFFFF;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(215, 225, 238, 0.72);
}

.price-row small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #64748B;
}

.price-row:nth-child(odd) {
  background: #F8FAFC;
}

.price-row.price-row-muted {
  color: #94A3B8;
  background: repeating-linear-gradient(-45deg, #F8FAFC 0, #F8FAFC 8px, #F1F5F9 8px, #F1F5F9 16px);
  border: 1px dashed #CBD5E1;
  border-left: 0;
  border-right: 0;
}

.price-row.price-row-muted .val {
  color: #94A3B8;
  opacity: 0.78;
}

.price-row.price-row-muted small {
  display: inline-flex;
  margin-left: 6px;
  margin-top: 0;
  font-size: 10px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0;
}

.price-row.price-row-discount-applied {
  color: #166534;
  background: #F0FDF4;
  border-top: 1px solid rgba(34, 197, 94, 0.24);
  border-bottom: 1px solid rgba(34, 197, 94, 0.24);
}

.price-row.price-row-discount-applied .val {
  color: #15803D;
  font-weight: 900;
}

.price-row.price-row-discount-applied small {
  color: #15803D;
}

.price-row:last-child {
  border-bottom: none;
  font-weight: 800;
  font-size: 15px;
  background: #EAF2FF;
  color: #1D4ED8;
}

.price-row .val {
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

.direction-fee-card {
  background: linear-gradient(135deg, #EEF6FF 0%, #ECFDF5 100%);
  border: 0;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  position: relative;
}

.direction-fee-card .df-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 6px;
}

.direction-fee-card .df-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #2563EB;
}

.direction-fee-card .df-title {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1E40AF;
}

.direction-fee-card .df-badge {
  flex-shrink: 0;
  color: #DC2626;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.direction-fee-card .df-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.5;
  margin-top: 4px;
}

.direction-fee-card .df-amount {
  font-family: "DM Mono", monospace;
  font-size: 16px;
  font-weight: 600;
  color: #2563EB;
  margin-top: 10px;
}

.selected-cat-info {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  background: #F0F9FF;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 8px 18px rgba(3, 105, 161, 0.07);
  min-height: calc(44px + 7.25em + 24px);
}

.selected-cat-heading {
  font-size: 11px;
  font-weight: 800;
  color: #0369A1;
  margin-bottom: 7px;
  letter-spacing: 0.06em;
}

.selected-cat-list {
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.selected-cat-list li {
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.selected-items-summary {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  max-height: 80px;
  overflow-y: auto;
}

.selected-items-summary li {
  margin: 2px 0;
  padding-left: 1em;
  text-indent: -1em;
}

.btn-review {
  margin-top: 8px;
  font-size: 12px;
  padding: 8px 14px;
}

/* ===== アクセス状況とクレジット ===== */
.access-panel {
  margin: 0 24px 16px;
  padding: 16px;
  border: 1.5px solid #BFDBFE;
  border-radius: 10px;
  background: linear-gradient(135deg, #F8FBFF 0%, #EFF6FF 100%);
}

.access-panel.access-panel-empty {
  border-color: #FCD34D;
  background: var(--warning-soft);
}

.access-panel.access-panel-locked {
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.access-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.access-panel-title {
  font-size: 12px;
  font-weight: 900;
  color: #1E3A8A;
  letter-spacing: 0.04em;
}

.access-panel-locked .access-panel-title {
  color: #991B1B;
}

.access-panel-count {
  font-family: "DM Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #1D4ED8;
}

.access-panel-count.is-empty {
  color: #B45309;
}

.access-holder {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #0F766E;
}

.access-holder-label {
  padding: 3px 8px;
  border-radius: 999px;
  background: #CCFBF1;
  color: #0F766E;
  font-size: 11px;
  font-weight: 900;
}

.access-panel-used {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.access-panel-copy {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #334155;
}

.access-panel-note {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
}

.access-cost-list {
  list-style: none;
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.access-cost-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.access-cost-list strong {
  font-size: 11px;
  font-weight: 900;
  color: #1D4ED8;
}

.access-alert {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
}

.access-panel-locked .access-alert {
  background: #FEE2E2;
  color: #991B1B;
}

.access-panel-actions {
  margin-top: 12px;
}

.access-key-toggle,
.access-key-release {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #BFDBFE;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1D4ED8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.access-key-toggle:hover,
.access-key-release:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
}

.access-key-form {
  margin-top: 10px;
}

.access-key-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  color: #334155;
}

.access-key-row {
  display: flex;
  gap: 8px;
}

.access-key-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid #C9D6E8;
  border-radius: 8px;
  background: #FFFFFF;
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}

.access-key-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.access-key-submit {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.access-key-submit:hover {
  background: #1D4ED8;
}

.access-key-message {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.6;
}

.access-key-message.is-error {
  color: #B91C1C;
}

.btn.is-access-blocked {
  opacity: 0.7;
  border-style: dashed;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 24px 24px;
  background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.01em;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.45;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1D4ED8);
  color: white;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #FBBF24);
  color: #1a1a1a;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.18);
}

.btn-accent:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: none;
}

.btn-primary:disabled {
  background: #94A3B8;
  color: #F8FAFC;
}

.btn-accent:disabled {
  background: #CBD5E1;
  color: #64748B;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-edit-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.header-title:hover {
  opacity: 0.9;
}
