/* MeShiru パートナー管理画面（デモ） */

.partner-header {
  background: var(--surface);
  border-bottom: 2px solid var(--primary);
}
.partner-header-tag {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.partner-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.partner-banner {
  display: flex;
  gap: 12px;
  background: #FFF8E6;
  border: 1px solid #F5D680;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
}
.partner-banner-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.partner-banner strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #92400E;
}
.partner-banner p {
  font-size: 13px;
  color: #92400E;
  line-height: 1.7;
  margin: 0;
}

.partner-h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.partner-lead {
  font-size: 13px;
  color: #4B5563;
  margin-bottom: 24px;
  line-height: 1.7;
}

.partner-store-selector {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.partner-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
  flex: 1;
  min-width: 200px;
}
.partner-label input,
.partner-label textarea,
.partner-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  margin-top: 4px;
  background: white;
}
.partner-label input:focus,
.partner-label textarea:focus,
.partner-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}
.partner-label textarea {
  resize: vertical;
  min-height: 60px;
}
.partner-select {
  margin-top: 0;
  flex: 1;
  min-height: 44px;
}

.partner-form {
  background: white;
  padding: 24px 22px;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
.partner-form h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #FAFAF7;
}
.partner-form h2:first-child { margin-top: 0; }
.partner-h2-sub {
  font-size: 11px;
  font-weight: 500;
  color: #9CA3AF;
  margin-left: 6px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

#recipes-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.recipe-editor {
  background: #FAFAF7;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  position: relative;
}
.recipe-editor h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}
.recipe-editor-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #6B7280;
  cursor: pointer;
}
.recipe-editor-remove:hover {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #FECACA;
}

.partner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #E5E7EB;
}
.partner-actions .btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.partner-meta {
  margin-top: 32px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 14px;
  padding: 20px 22px;
}
.partner-meta h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #14532D;
}
.partner-meta ol {
  padding-left: 22px;
  margin-bottom: 10px;
}
.partner-meta li {
  font-size: 13px;
  color: #166534;
  line-height: 1.8;
}
.partner-meta-note {
  font-size: 11px;
  color: #6B7280;
  margin-top: 8px;
  line-height: 1.6;
}

.partner-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #14532D;
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: opacity 200ms, transform 200ms;
}
.partner-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.btn { background: var(--primary); color: white; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: white; color: #374151; border: 1px solid #E5E7EB; }
.btn-secondary:hover { background: #F9FAFB; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
