/* Comportamiento de tienda separado para administrador y no administrador. */
.gf-role-audience-note {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid #d91f26;
  border-radius: 4px;
  background: #fff5f5;
  color: #526071;
  font-size: 13px;
  line-height: 1.4;
}

.gf-role-audience-note strong {
  flex: 0 0 auto;
  color: #b91c24;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gf-role-storefront-panel {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #dfe4ea;
  border-radius: 10px;
  background: #fff;
}

.gf-role-storefront-header {
  margin-bottom: 16px;
}

.gf-role-storefront-eyebrow {
  margin-bottom: 4px;
  color: #d91f26;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gf-role-storefront-header h2 {
  margin: 0;
  color: #18212f;
  font-size: 19px;
  line-height: 1.3;
}

.gf-role-storefront-header p {
  margin: 6px 0 0;
  color: #526071;
  font-size: 14px;
  line-height: 1.45;
}

.gf-role-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.gf-role-summary-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #f8fafc;
}

.gf-role-summary-card.is-admin {
  border-color: #efb4b8;
  background: #fff7f7;
}

.gf-role-summary-card strong {
  color: #18212f;
  font-size: 14px;
}

.gf-role-summary-card span {
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
}

.gf-role-summary-card small {
  color: #b91c24;
  font-size: 11px;
  font-weight: 600;
}

.gf-role-selector-title {
  margin: 0 0 10px;
  color: #273244;
  font-size: 14px;
  line-height: 1.35;
}

.gf-role-mode-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gf-role-mode-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 108px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid #d4d9e1;
  border-radius: 8px;
  background: #fff;
  color: #273244;
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.gf-role-mode-card:hover:not(:disabled),
.gf-role-mode-card:focus-visible {
  border-color: #d91f26;
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 31, 38, 0.14);
}

.gf-role-mode-card.is-selected {
  border-color: #d91f26;
  background: #fff5f5;
  box-shadow: inset 0 0 0 1px #d91f26;
}

.gf-role-mode-card:disabled {
  cursor: wait;
  opacity: 0.62;
}

.gf-role-mode-icon {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  color: #d91f26;
}

.gf-role-mode-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.gf-role-mode-copy strong {
  font-size: 13px;
  line-height: 1.3;
}

.gf-role-mode-copy small {
  color: #667085;
  font-size: 11.5px;
  line-height: 1.4;
}

.gf-role-storefront-warning {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #f2cf66;
  border-radius: 7px;
  background: #fffbea;
  color: #76550a;
  font-size: 12px;
  line-height: 1.45;
}

.gf-role-storefront-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
}

.gf-role-storefront-feedback,
.gf-role-storefront-loading {
  min-height: 20px;
  color: #526071;
  font-size: 12.5px;
  line-height: 1.4;
}

.gf-role-storefront-feedback.is-error,
.gf-role-storefront-loading.is-error {
  color: #b4232a;
}

.gf-role-storefront-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.gf-role-storefront-save,
.gf-role-open-store {
  min-height: 42px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.gf-role-storefront-save {
  border: 1px solid #d91f26;
  background: #d91f26;
  color: #fff;
  cursor: pointer;
}

.gf-role-open-store {
  border: 1px solid #cfd6df;
  background: #fff;
  color: #273244;
}

.gf-role-storefront-save:hover:not(:disabled),
.gf-role-storefront-save:focus-visible,
.gf-role-open-store:hover,
.gf-role-open-store:focus-visible {
  outline: 3px solid rgba(217, 31, 38, 0.2);
  outline-offset: 2px;
}

.gf-role-storefront-save:disabled {
  cursor: default;
  opacity: 0.5;
}

.gf-admin-test-badge {
  position: fixed;
  z-index: 10020;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100vw - 32px);
  padding: 9px 11px;
  border: 1px solid #b91c24;
  border-radius: 999px;
  background: #fff;
  color: #9f1620;
  box-shadow: 0 6px 22px rgba(24, 33, 47, 0.18);
  font-size: 12px;
  line-height: 1.2;
}

.gf-admin-test-badge ion-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

.gf-admin-test-badge a {
  margin-left: 2px;
  color: #273244;
  font-weight: 700;
}

@media (max-width: 860px) {
  .gf-role-mode-selector {
    grid-template-columns: 1fr;
  }

  .gf-role-mode-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .gf-role-audience-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .gf-role-storefront-panel {
    margin: 16px 0;
    padding: 14px;
  }

  .gf-role-comparison {
    grid-template-columns: 1fr;
  }

  .gf-role-storefront-footer,
  .gf-role-storefront-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gf-role-storefront-save,
  .gf-role-open-store {
    width: 100%;
  }

  .gf-admin-test-badge {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gf-role-mode-card {
    transition: none;
  }
}
