/* Motherland Mobile Payments v4 — Compact Logo Buttons + Popup */

/* Row container for the two logo buttons */
.mbc-btn-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 10px 0 6px;
}

/* Each logo button */
.mbc-logo-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  position: relative;
  overflow: hidden;
}
.mbc-logo-btn:hover { border-color: #bbb; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.mbc-logo-btn:active { transform: scale(.97); }

.mbc-logo-btn img {
  max-height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  pointer-events: none;
}

/* eDahab logo has black bg — give it a white pill */
.mbc-logo-btn--edahab img {
  background: #fff;
  border-radius: 4px;
  padding: 2px 6px;
}

/* Selected state */
.mbc-logo-btn--zaad.is-selected   { border-color: #4CAF50; background: #f1f9f1; box-shadow: 0 0 0 3px rgba(76,175,80,.18); }
.mbc-logo-btn--edahab.is-selected { border-color: #3d8b37; background: #f1f9f1; box-shadow: 0 0 0 3px rgba(61,139,55,.18); }

/* Checkmark badge when selected */
.mbc-logo-btn .mbc-tick {
  display: none;
  position: absolute;
  top: 4px; right: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  align-items: center; justify-content: center;
}
.mbc-logo-btn--zaad .mbc-tick   { background: #4CAF50; }
.mbc-logo-btn--edahab .mbc-tick { background: #3d8b37; }
.mbc-logo-btn.is-selected .mbc-tick { display: flex; }

/* Overlay */
.mbc-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: mbc-fi .15s ease;
}
@keyframes mbc-fi { from{opacity:0} to{opacity:1} }

/* Modal box */
.mbc-box {
  width: 100%; max-width: 370px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(0,0,0,.22);
  animation: mbc-su .18s cubic-bezier(.25,.46,.45,.94);
}
@keyframes mbc-su { from{transform:translateY(18px);opacity:0} to{transform:translateY(0);opacity:1} }

/* Colored top bar */
.mbc-bar { height: 4px; }
.mbc-box--zaad   .mbc-bar { background: #4CAF50; }
.mbc-box--edahab .mbc-bar { background: #3d8b37; }

/* Header */
.mbc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 0;
}
.mbc-head-logo { height: 28px; width: auto; max-width: 100px; border-radius: 4px; }
.mbc-box--edahab .mbc-head-logo { background: #fff; border: 1px solid #eee; padding: 2px 6px; }
.mbc-head-info { flex: 1; }
.mbc-head-title { font-size: 14px; font-weight: 700; color: #111; margin: 0 0 1px; }
.mbc-head-sub   { font-size: 11px; color: #888; margin: 0; }
.mbc-close-btn  {
  width: 28px; height: 28px; border-radius: 6px;
  background: #f4f4f4; border: none; cursor: pointer;
  font-size: 17px; color: #666; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .12s;
}
.mbc-close-btn:hover { background: #e8e8e8; color: #111; }

/* Body */
.mbc-body { padding: 14px 16px 18px; }

/* Amount pill */
.mbc-amount-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #f7f7f7; border-radius: 8px;
  padding: 10px 13px; margin-bottom: 14px;
}
.mbc-amount-lbl { font-size: 11px; color: #888; }
.mbc-amount-val { font-size: 20px; font-weight: 800; color: #111; }
.mbc-box--zaad   .mbc-amount-val { color: #4CAF50; }
.mbc-box--edahab .mbc-amount-val { color: #3d8b37; }

/* Input */
.mbc-field-lbl { display: block; font-size: 11px; font-weight: 700; color: #444; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.mbc-input-wrap { position: relative; margin-bottom: 5px; }
.mbc-input-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #bbb; pointer-events: none; display: flex; }
.mbc-phone-input {
  width: 100%; padding: 11px 12px 11px 38px;
  border: 2px solid #ddd; border-radius: 9px;
  font-size: 15px; color: #111; background: #fff;
  font-family: inherit; outline: none; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.mbc-box--zaad   .mbc-phone-input:focus { border-color: #4CAF50; box-shadow: 0 0 0 3px rgba(76,175,80,.13); }
.mbc-box--edahab .mbc-phone-input:focus { border-color: #3d8b37; box-shadow: 0 0 0 3px rgba(61,139,55,.13); }
.mbc-phone-input.has-error { border-color: #e53935 !important; box-shadow: none !important; }
.mbc-phone-input::placeholder { color: #bbb; }

.mbc-hint  { font-size: 11px; color: #aaa; margin-bottom: 12px; display: block; }
.mbc-error { font-size: 11px; color: #e53935; display: none; margin: -8px 0 10px; }
.mbc-error.show { display: block; }

/* Notice */
.mbc-notice {
  border-radius: 7px; padding: 9px 11px;
  font-size: 12px; line-height: 1.5;
  margin-bottom: 13px; display: flex; gap: 6px;
}
.mbc-box--zaad   .mbc-notice { background: #e8f5e9; color: #1b5e20; }
.mbc-box--edahab .mbc-notice { background: #e8f5e9; color: #1b5e20; }

/* Confirm button */
.mbc-confirm-btn {
  width: 100%; padding: 12px;
  border: none; border-radius: 9px;
  font-size: 14px; font-weight: 700; color: #fff;
  cursor: pointer; font-family: inherit;
  transition: opacity .12s, transform .1s;
}
.mbc-box--zaad   .mbc-confirm-btn { background: #4CAF50; }
.mbc-box--edahab .mbc-confirm-btn { background: #3d8b37; }
.mbc-confirm-btn:hover  { opacity: .88; }
.mbc-confirm-btn:active { transform: scale(.98); }

/* Secure note */
.mbc-secure { text-align: center; font-size: 10px; color: #ccc; margin-top: 9px; }

/* Responsive */
@media (max-width: 400px) {
  .mbc-logo-btn img { max-height: 22px; }
}
