/* ============================================================
   SELL VIEW WRAPPER
   ============================================================ */

.gm-view-sell {
  padding: 1.5rem 1rem 5rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Card-style container */
.sell-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.sell-card h1 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--gm-text-primary, #333);
}

/* ============================================================
   IMAGE UPLOAD SECTION
   ============================================================ */

.sell-images {
  margin-bottom: 1.5rem;
}

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

.image-slot,
.image-add {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* Existing image */
.image-slot {
  background: #f0f0f0;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Remove image button */
.image-slot button {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

/* Add image tile */
.image-add {
  border: 2px dashed #ccc;
  background: #fafafa;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.image-add:hover {
  border-color: #999;
  background: #f5f5f5;
}

.image-add span {
  font-size: 2rem;
  line-height: 1;
}

.image-add small {
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

.image-hint {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

/* ============================================================
   FORM
   ============================================================ */

.sell-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sell-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gm-text-primary, #333);
}

.sell-form input,
.sell-form select,
.sell-form textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
}

.sell-form textarea {
  resize: vertical;
  min-height: 90px;
}

.sell-form input:disabled {
  background: #f5f5f5;
  color: #777;
}

/* ============================================================
   PUBLISH BUTTON
   ============================================================ */

.publish-btn {
  margin-top: 1rem;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  background: var(--gm-primary, #1a73e8);
  color: #fff;
  cursor: pointer;
}

.publish-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ============================================================
   UPLOAD STATUS
   ============================================================ */

.upload-status {
  margin-top: 0.75rem;
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
  color: #555;
}

.hidden {
  display: none;
}

/* ============================================================
   SUCCESS MODAL
   ============================================================ */

.gm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gm-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
  text-align: center;
}

.gm-modal h2 {
  margin: 0 0 12px;
}

.gm-modal p {
  margin: 0 0 20px;
  color: #444;
  line-height: 1.4;
}

.gm-modal-actions {
  display: flex;
  justify-content: center;
}

.gm-btn-primary {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #1a73e8;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.gm-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}
