/* Facebook Exit Card Styles - Beautiful UI specifically for Facebook WebView */
:root {
  --fb-bg: #F0F2F5;
  --fb-card: #FFFFFF;
  --fb-line: #E4E6EB;
  --fb-text: #1C1E21;
  --fb-muted: #65676B;
  --fb-blue: #1877F2;
  --fb-blue-dk: #1464d2;
  --fb-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Card wrapper for proper centering */
.facebook-card-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
}

@media screen and (max-width: 380px) {
  .facebook-card-wrapper {
    padding: 0 12px;
  }
}

/* Card Container */
.facebook-exit-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--fb-card);
  border: 1px solid var(--fb-line);
  border-radius: 16px;
  box-shadow: var(--fb-shadow);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 600px) {
  .facebook-exit-card {
    max-width: 100%;
    margin: 0;
    width: 100%;
    border-radius: 16px;
  }
}

/* Header */
.fb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--fb-line);
  background: var(--fb-card);
}

.fb-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--fb-line);
}

.fb-title {
  font-weight: 800;
  color: var(--fb-text);
  flex: 1;
}

.fb-ext {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #3a3b3c;
  background: #EEF0F4;
  border: 1px solid var(--fb-line);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Body */
.fb-body {
  padding: 18px 16px;
  background: var(--fb-card);
}

.fb-h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--fb-text);
}

.fb-subtitle {
  margin: 0 0 14px;
  color: var(--fb-muted);
  font-size: 14px;
  text-align: center;
}

/* Button */
.fb-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: var(--fb-blue);
  border: 1px solid var(--fb-blue-dk);
  box-shadow: none;
  transition: transform .05s ease, background .15s ease;
  cursor: pointer;
}

.fb-button:hover {
  background: #1b6fe6;
}

.fb-button:active {
  transform: translateY(1px);
}

.fb-button:focus-visible {
  outline: 3px solid rgba(24,119,242,.25);
  outline-offset: 3px;
}

/* Mobile button adjustments */
@media screen and (max-width: 600px) {
  .fb-button {
    font-size: 17px;
    padding: 13px 16px;
  }
}

@media screen and (max-width: 380px) {
  .fb-button {
    font-size: 16px;
    padding: 12px 14px;
    gap: 8px;
  }
  
  .fb-h1 {
    font-size: 20px;
  }
  
  .fb-subtitle {
    font-size: 13px;
  }
}

/* Footer */
.fb-foot {
  margin-top: 10px;
  color: #6b7280;
  font-size: 12px;
  text-align: left;
}

.fb-cancel {
  margin-top: 12px;
  text-align: center;
}

.fb-cancel a {
  color: #385898;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}