/* XShield — info-modal styles (terms, privacy, contact). */

:root{
  --xgm-bg: rgba(15,23,42,0.65);
  --xgm-card-bg: #ffffff;
  --xgm-text: #0f172a;
  --xgm-muted: #475569;
  --xgm-border: #e2e8f0;
  --xgm-accent: #b91c1c;
  --xgm-radius: 16px;
}

body.modal-open{ overflow: hidden !important; }

#app_common_modal{
  position: fixed; inset: 0;
  z-index: 2147483647;
  background: var(--xgm-bg);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: 'Figtree','Open Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  animation: xgmFadeIn 0.18s ease-out;
}
@keyframes xgmFadeIn{ from{opacity:0;} to{opacity:1;} }

#app_common_modal .app_modal_body{
  width: 100%;
  max-width: 720px;
  background: var(--xgm-card-bg);
  border-radius: var(--xgm-radius);
  box-shadow: 0 28px 60px rgba(2,6,23,0.4);
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: xgmSlideIn 0.22s cubic-bezier(.21,1.02,.73,1);
}
@keyframes xgmSlideIn{ from{transform:translateY(12px);opacity:0;} to{transform:translateY(0);opacity:1;} }

#app_common_modal .modal__header{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--xgm-border);
  background: #fff;
  color: var(--xgm-text);
}
#app_common_modal .modal__header h5{
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--xgm-text);
  flex: 1;
}
/* Header brand mark — natural-color xShield logo (red shield + black wordmark)
   on white background, so the brand reads correctly. */
#app_common_modal .modal__header .xgm-brand-logo{
  display: block;
  height: 26px;
  width: auto;
}

#app_common_modal_close{
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--xgm-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid var(--xgm-border);
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1;
}
#app_common_modal_close:hover{ background: #e2e8f0; }

#app_common_modal .app_modal_body iframe{
  width: 100%;
  height: 60vh;
  min-height: 360px;
  max-height: 600px;
  border: 0;
  display: block;
  background: #fff;
}

.modal-close-button-wrapper-{
  padding: 14px 22px;
  border-top: 1px solid var(--xgm-border);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
}
.modal-close-button{
  background: var(--xgm-accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(22,163,74,0.22);
  transition: transform 0.1s ease;
}
.modal-close-button:hover{ transform: translateY(-1px); }

/* Processing overlay — kept on its own pattern (used by checkout, not the info modal) */
#loading-indicator{
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
}
#loading-indicator::after{
  content: "Processing, one moment please…";
  background: #fff;
  color: #0f172a;
  font-family: 'Figtree','Open Sans',sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 18px 28px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(2,6,23,0.3);
}

@media (max-width: 640px){
  #app_common_modal{ padding: 12px 8px; }
  #app_common_modal .modal__header{ padding: 14px 16px; }
  #app_common_modal .modal__header h5{ font-size: 15px; }
  #app_common_modal_close{ right: 10px; top: 10px; }
  .modal-close-button-wrapper-{ padding: 12px 16px; }
  #app_common_modal .app_modal_body iframe{ height: 65vh; }
}
