/**
 * Tela “Selecione onde quer receber suas compras” (CEP) — estilo ML mobile
 */

:root {
  --cep-blue: #3483fa;
  --cep-text: rgba(0, 0, 0, 0.9);
  --cep-text-muted: rgba(0, 0, 0, 0.55);
  --cep-border: #e6e6e6;
  --cep-inline-gutter: 1.25rem;
  --cep-back-arrow-gutter: 1.5rem;
}

html {
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: var(--cep-text);
  -webkit-font-smoothing: antialiased;
}

#root-app {
  min-height: 100vh;
  display: block;
}

/* Estrutura inspirada em andes-modal full screen */
.andes-modal.layout.layout--full.layout--full-screen {
  min-height: 100vh;
  background: #fff;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

.andes-modal-dialog__header {
  position: relative;
  padding-top: 12px;
  padding-bottom: 8px;
}

.layout-arrow.andes-modal-dialog__button-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 4px 0;
  padding: 0 var(--cep-back-arrow-gutter);
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.layout-arrow.andes-modal-dialog__button-close svg {
  display: block;
}

.layout__header-title.andes-modal-dialog__header-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cep-text);
  margin: 0;
  padding: 0 var(--cep-inline-gutter);
  letter-spacing: -0.02em;
  box-sizing: border-box;
}

.andes-modal-dialog__content {
  padding-top: 4px;
}

.layout__header-subtitle {
  font-size: 15px;
  line-height: 1.45;
  color: var(--cep-text-muted);
  margin: 0 0 24px;
  padding: 0 var(--cep-inline-gutter);
  box-sizing: border-box;
}

.primary-form {
  margin: 0;
}

.another-location.another-location--not-logged .header-subtitle:empty {
  display: none;
}

.andes-card.secondary-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.zip-code {
  padding: 0 var(--cep-inline-gutter);
  box-sizing: border-box;
  font-size: 16px;
}

.zip-code__textfield {
  margin-bottom: 20px;
}

.andes-form-control.andes-form-control--textfield .andes-form-control__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cep-text);
  margin-bottom: 8px;
}

.andes-form-control__control {
  position: relative;
}

.andes-form-control__field {
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--cep-text);
  border: 1px solid var(--cep-border);
  border-radius: 6px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.andes-form-control__field::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.andes-form-control__field:focus {
  border-color: var(--cep-blue);
  box-shadow: 0 0 0 1px var(--cep-blue);
}

.zip-code__secondary-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.andes-button.zip-code__use-button.andes-button--loud {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 6px;
  background: var(--cep-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.andes-button.zip-code__use-button.andes-button--loud.is-loading .zip-code-use-label {
  visibility: hidden;
}

.zip-code-use-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  box-sizing: border-box;
  animation: zip-code-use-spin 0.65s linear infinite;
}

@keyframes zip-code-use-spin {
  to {
    transform: rotate(360deg);
  }
}

.andes-button.zip-code__use-button.andes-button--loud:hover:not(:disabled) {
  background: #2968c8;
}

.andes-button.zip-code__use-button.andes-button--loud:active:not(:disabled) {
  opacity: 0.92;
}

.andes-button.zip-code__use-button.andes-button--loud:disabled {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.25);
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

.andes-button.zip-code__use-button.andes-button--loud.is-loading:disabled {
  opacity: 1;
  cursor: wait;
}

.andes-button.zip-code__find-button.andes-button--transparent {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--cep-blue);
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.andes-button.zip-code__find-button.andes-button--transparent:hover {
  color: #2968c8;
  text-decoration: none;
}

.zip-code__error {
  display: none;
  font-size: 13px;
  color: #d32f2f;
  margin: -12px 0 16px;
}

.zip-code__error.is-visible {
  display: block;
}
