/* Dubai Pay embed (Parkin wizard step 4) */

.parkin-dubai-pay-embed * { margin: 0; padding: 0; box-sizing: border-box; }
.parkin-dubai-pay-embed {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #e8ecf2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.dp-header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  height: 60px;
  border-bottom: 1px solid #e0e4ea;
  overflow: hidden;
}
.dp-logo-dubai-pay {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dp-logo-dubai-pay img {
  height: 22px;
  width: auto;
}
/* Fallback if image not available */
.dp-logo-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dp-card-icon {
  background: linear-gradient(135deg, #1a6fa8, #2196f3);
  border-radius: 8px;
  width: 48px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.dp-card-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0; right: 0;
  height: 7px;
  background: rgba(255,255,255,0.25);
}
.dp-card-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 6px;
  width: 100%;
  margin-top: 10px;
}
.dp-card-lines span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
}
.dp-card-lines span:first-child { width: 70%; }
.dp-card-lines span:last-child  { width: 50%; }

.dp-logo-text { line-height: 1.2; }
.dp-logo-text .ar { font-size: 11px; color: #1a6fa8; font-weight: 600; }
.dp-logo-text .en { font-size: 15px; color: #1a1a2e; font-weight: 700; letter-spacing: -0.3px; }
.dp-logo-text .en span { color: #1a6fa8; }

.dp-logo-digital img {
  height: 72px;
  width: auto;
  margin-top: 10px;
}

/* ── TRANSACTION INFO ── */
.dp-transaction {
  background: #e8ecf2;
  padding: 12px 16px 14px;
}
.dp-transaction-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #2a7a8c;
  margin-bottom: 3px;
}
.dp-transaction-details {
  font-size: 13px;
  color: #2a7a8c;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.dp-transaction-details svg {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

/* ── SECTION LABEL ── */
.dp-section-label {
  background: #e8ecf2;
  padding: 8px 16px 7px;
  font-size: 13px;
  font-weight: 600;
  color: #2a7a8c;
  letter-spacing: 0.1px;
}

/* ── PAYMENT METHODS ── */
.dp-methods {
  background: #fff;
}
.dp-method-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer;
  transition: background .15s;
}
.dp-method-item:hover { background: #f8f9fb; }
.dp-method-item:last-child { border-bottom: none; }

/* Radio */
.dp-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #b0bac5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s;
}
.dp-radio.selected {
  border-color: #1976d2;
  background: #fff;
}
.dp-radio.selected::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1976d2;
}

/* Method Icon wrapper */
.dp-method-icon {
  width: 38px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dp-method-icon img {
  max-width: 38px;
  max-height: 26px;
  object-fit: contain;
}

/* Method label */
.dp-method-label {
  flex: 1;
  font-size: 13.5px;
  color: #1a1a2e;
  font-weight: 400;
}
.dp-method-label .dp-fee-note {
  font-size: 11px;
  color: #888;
  font-weight: 400;
  margin-right: 3px;
}


/* ── CONTACT INFO ── */
.dp-contact {
  background: #fff;
}
.dp-contact-row {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid #eef0f3;
}
.dp-contact-row:last-of-type { border-bottom: none; }
.dp-contact-key {
  width: 70px;
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
}
.dp-contact-val {
  font-size: 13px;
  color: #1a1a2e;
  flex: 1;
  border-bottom: 1px solid #e0e4ea;
  padding-bottom: 2px;
}
.dp-contact-val.blue { color: #1976d2; }
.dp-add-contact {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #1976d2;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

/* ── TOTAL + BUTTONS ── */
.dp-footer {
  background: #e8ecf2;
  padding: 14px 16px 12px;
  margin-top: 2px;
}
.dp-total {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.dp-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.dp-btn-cancel {
  padding: 9px 24px;
  background: #dde2ea;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.dp-btn-cancel:hover { background: #cdd2da; }
.dp-btn-pay {
  padding: 9px 32px;
  background: #1a3a5c;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.dp-btn-pay:hover { background: #142d47; }

/* ── TERMS ── */
.dp-terms {
  text-align: center;
  padding: 12px 16px 20px;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}
.dp-terms a { color: #1976d2; text-decoration: none; font-weight: 500; }
.dp-terms a:hover { text-decoration: underline; }

/* ── SPACER ── */
.dp-gap { height: 6px; background: #e8ecf2; }

/* ── PAY LOADING OVERLAY ── */
.parkin-dubai-pay-embed #dpPayOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.dp-ov-spinner {
  width: 46px; height: 46px;
  border: 4px solid #e0e6ef;
  border-top-color: #1a3a5c;
  border-radius: 50%;
  animation: dpOvSpin .8s linear infinite;
}
@keyframes dpOvSpin { to { transform: rotate(360deg); } }
.dp-ov-title { font-size: 15px; font-weight: 700; color: #1a3a5c; }
.dp-ov-sub   { font-size: 12.5px; color: #888; text-align: center; line-height: 1.6; }
.dp-ov-lock  {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #2a7a8c; font-weight: 600; margin-top: 2px;
}

.pay-parking-fines-page .fines-cardbox .parkin-dubai-pay-embed {
  border-radius: 0.75rem;
  overflow: hidden;
  margin-top: 0.5rem;
}
.pay-parking-fines-page .fines-cardbox .parkin-dubai-pay-embed #dpPayOverlay {
  position: fixed;
}
