/**
 * iStore36 Consent Guard — Banner & Panel Styles
 */
#istoreconsentguard-banner,
#istoreconsentguard-panel {
  position: fixed;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a2e;
}

/* ---- Bottom Banner ---- */
#istoreconsentguard-banner {
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-top: 2px solid #0f6e56;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  padding: 0;
}

.istoreconsentguard-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.istoreconsentguard-banner__content {
  flex: 1 1 400px;
  min-width: 260px;
}

.istoreconsentguard-banner__content h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f6e56;
}

.istoreconsentguard-banner__content p {
  margin: 0;
  font-size: 0.8125rem;
  color: #4a5568;
}

.istoreconsentguard-banner__links {
  margin-top: 0.35rem;
  font-size: 0.75rem;
}

.istoreconsentguard-banner__links a {
  color: #0f6e56;
  text-decoration: underline;
  margin-right: 1rem;
}

.istoreconsentguard-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.istoreconsentguard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.istoreconsentguard-btn--accept {
  background: #0f6e56;
  color: #fff;
}
.istoreconsentguard-btn--accept:hover {
  background: #0b5a46;
}

.istoreconsentguard-btn--reject {
  background: #fff;
  color: #4a5568;
  border-color: #d1d5db;
}
.istoreconsentguard-btn--reject:hover {
  background: #f3f4f6;
}

.istoreconsentguard-btn--customize {
  background: transparent;
  color: #0f6e56;
  border-color: #0f6e56;
}
.istoreconsentguard-btn--customize:hover {
  background: #ecfdf5;
}

.istoreconsentguard-btn--small {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

/* ---- Preferences Panel (center modal) ---- */
#istoreconsentguard-panel {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.istoreconsentguard-panel__inner {
  padding: 1.5rem;
}

.istoreconsentguard-panel__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.istoreconsentguard-panel__title h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f6e56;
}

.istoreconsentguard-panel__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.25rem;
}

.istoreconsentguard-panel__close:hover {
  color: #1a1a2e;
}

.istoreconsentguard-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.istoreconsentguard-toggle-row:last-of-type {
  border-bottom: none;
}

.istoreconsentguard-toggle-row__info h4 {
  margin: 0 0 0.15rem 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.istoreconsentguard-toggle-row__info p {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.istoreconsentguard-toggle-row__control input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
  accent-color: #0f6e56;
}

.istoreconsentguard-toggle-row__control input[type="checkbox"]:disabled {
  cursor: not-allowed;
  accent-color: #9ca3af;
}

.istoreconsentguard-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: flex-end;
}

/* ---- Overlay ---- */
.istoreconsentguard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2147482999;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .istoreconsentguard-banner__inner {
    flex-direction: column;
    padding: 1rem;
  }
  .istoreconsentguard-banner__actions {
    width: 100%;
  }
  .istoreconsentguard-banner__actions .istoreconsentguard-btn {
    flex: 1;
    text-align: center;
  }
}
