.e31-fawtara-button,
.e31-fawtara-panel,
.e31-fawtara-panel * {
  box-sizing: border-box;
}

.e31-fawtara-button {
  position: fixed;
  z-index: 2147482500;
  right: 22px;
  bottom: 22px;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #09283a;
  color: #fff;
  font: 800 14px/1.1 Inter, Manrope, "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 18px 45px rgba(9, 40, 58, 0.28);
  cursor: pointer;
}

.e31-fawtara-button span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.e31-fawtara-button b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6ad66;
  box-shadow: 0 0 0 5px rgba(214, 173, 102, 0.18);
}

.e31-fawtara-panel {
  position: fixed;
  z-index: 2147482501;
  right: 22px;
  bottom: 86px;
  width: min(420px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 120px));
  overflow: auto;
  border: 1px solid rgba(214, 173, 102, 0.28);
  border-radius: 18px;
  background: #fff;
  color: #132530;
  box-shadow: 0 28px 80px rgba(8, 32, 44, 0.28);
  font-family: Inter, Manrope, "Segoe UI", system-ui, sans-serif;
}

.e31-fawtara-panel[hidden] {
  display: none;
}

.e31-fawtara-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #08263a, #0d4652);
  color: #fff;
}

.e31-fawtara-head p,
.e31-fawtara-card p,
.e31-fawtara-note {
  margin: 5px 0 0;
  color: rgba(19, 37, 48, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.e31-fawtara-head p {
  color: rgba(255, 255, 255, 0.76);
}

.e31-fawtara-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.e31-fawtara-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.e31-fawtara-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.e31-fawtara-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.e31-fawtara-status div,
.e31-fawtara-card {
  border: 1px solid rgba(9, 40, 58, 0.1);
  border-radius: 12px;
  background: #fbfcfc;
  padding: 12px;
}

.e31-fawtara-status span,
.e31-fawtara-card span {
  display: block;
  color: #6b7c86;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.e31-fawtara-status strong,
.e31-fawtara-card strong {
  display: block;
  margin-top: 6px;
  color: #09283a;
  font-size: 14px;
}

.e31-fawtara-grid {
  display: grid;
  gap: 10px;
}

.e31-fawtara-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 4px;
}

.e31-fawtara-actions button,
.e31-fawtara-actions a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(9, 40, 58, 0.12);
  background: #fff;
  color: #09283a;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.e31-fawtara-actions .primary {
  border-color: #d6ad66;
  background: #d6ad66;
  color: #111;
}

.e31-fawtara-result {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 111, 94, 0.08);
  color: #0b5d4f;
  font-size: 13px;
  font-weight: 700;
}

html[dir="rtl"] .e31-fawtara-button,
html[dir="rtl"] .e31-fawtara-panel {
  right: auto;
  left: 22px;
}

@media (max-width: 640px) {
  .e31-fawtara-button {
    right: 14px;
    bottom: 14px;
  }
  .e31-fawtara-panel {
    right: 14px;
    bottom: 76px;
  }
  .e31-fawtara-status,
  .e31-fawtara-actions {
    grid-template-columns: 1fr;
  }
}
