/* The lyte-ui-component library's toast defaults to position:absolute, which lets its
   enter/exit animation transiently extend the whole document's scrollable height on real
   mobile devices (dragging a pinned bottom nav out of view along with it). Pin it instead. */
#rppwa-message .lyteMessageBox {
  position: fixed !important;
}

.retailiqProfilePwaWrap {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  background: #f4f6fa;
  box-sizing: border-box;
  overflow: hidden;
  font-family: Zoho_Puvi_Regular, sans-serif;
}

.retailiqProfilePwaWrap *,
.retailiqProfilePwaWrap *::before,
.retailiqProfilePwaWrap *::after {
  box-sizing: border-box;
}

.retailiqProfilePwaWrap .rpp-container {
  width: 100%;
  max-width: 390px;
  height: 100%;
  min-height: 0;
}

.retailiqProfilePwaWrap .rpp-page {
  height: 100%;
  min-height: 0;
  background: #f4f6fa;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.retailiqProfilePwaWrap .rpp-header {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid #eff1f6;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
}

.retailiqProfilePwaWrap .rpp-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.retailiqProfilePwaWrap .rpp-icon {
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.retailiqProfilePwaWrap .rpp-icon-back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M11.25 4.5L6.75 9l4.5 4.5' stroke='%231a2030' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.retailiqProfilePwaWrap .rpp-title {
  margin: 0;
  flex: 1;
  color: #1a2030;
  font-size: 16px;
  line-height: 19.2px;
  letter-spacing: -0.14px;
  font-family: Zoho_Puvi_SemiBold, sans-serif;
}

.retailiqProfilePwaWrap .rpp-edit-btn {
  height: 32px;
  border: none;
  border-radius: 12px;
  background: #eaf3fe;
  color: #338cf0;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.06px;
  font-family: Zoho_Puvi_SemiBold, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  cursor: pointer;
}

.retailiqProfilePwaWrap .rpp-edit-icon {
  width: 14px;
  height: 14px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M9.5 2.5l2 2L5 11l-2.5.5L3 9l6.5-6.5z' stroke='%23338cf0' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.retailiqProfilePwaWrap .rpp-cancel-btn {
  height: 32px;
  border: none;
  border-radius: 12px;
  background: #f2f4f8;
  color: #6a7185;
  font-size: 12px;
  line-height: 16px;
  font-family: Zoho_Puvi_SemiBold, sans-serif;
  padding: 0 14px;
  cursor: pointer;
}

/* ── Scroll body ── */
.retailiqProfilePwaWrap .rpp-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 26px;
}

/* ── Summary card ── */
.retailiqProfilePwaWrap .rpp-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.retailiqProfilePwaWrap .rpp-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2c82e8 0%, #1a6fdb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Zoho_Puvi_Bold, sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.retailiqProfilePwaWrap .rpp-summary-copy {
  min-width: 0;
}

.retailiqProfilePwaWrap .rpp-summary-name {
  margin: 0;
  color: #1a2030;
  font-size: 17px;
  line-height: 22px;
  font-family: Zoho_Puvi_SemiBold, sans-serif;
  letter-spacing: -0.14px;
}

.retailiqProfilePwaWrap .rpp-summary-mobile {
  margin: 2px 0 0;
  color: #8c93a4;
  font-size: 13px;
  line-height: 18px;
  font-family: Zoho_Puvi_Regular, sans-serif;
}

/* ── Section ── */
.retailiqProfilePwaWrap .rpp-section {
  background: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.retailiqProfilePwaWrap .rpp-section-label {
  margin: 0 0 8px;
  color: #1a2030;
  font-size: 14px;
  line-height: 18px;
  font-family: Zoho_Puvi_SemiBold, sans-serif;
}

/* ── View rows ── */
.retailiqProfilePwaWrap .rpp-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f4f8;
}

.retailiqProfilePwaWrap .rpp-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.retailiqProfilePwaWrap .rpp-row-label {
  flex-shrink: 0;
  color: #9aa3b5;
  font-size: 12px;
  line-height: 18px;
  font-family: Zoho_Puvi_Regular, sans-serif;
}

.retailiqProfilePwaWrap .rpp-row-value {
  text-align: right;
  color: #1a2030;
  font-size: 13px;
  line-height: 18px;
  font-family: Zoho_Puvi_SemiBold, sans-serif;
  word-break: break-word;
}

/* ── Edit fields (mirrors the KYC form's field styling) ── */
.retailiqProfilePwaWrap .rpp-field-label {
  display: block;
  color: #6a7185;
  font-size: 11px;
  line-height: 15px;
  font-family: Zoho_Puvi_SemiBold, sans-serif;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 14px 0 6px;
}

.retailiqProfilePwaWrap .rpp-lyte-input,
.retailiqProfilePwaWrap .rpp-code-dropdown,
.retailiqProfilePwaWrap .rpp-identity-proof-dropdown {
  width: 100%;
  display: block;
}

.retailiqProfilePwaWrap .rpp-input-wrapper {
  height: 45px !important;
  min-height: 45px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e6ee !important;
  background: #ffffff !important;
  box-shadow: none !important;
  position: relative;
  display: flex !important;
  align-items: center;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

.retailiqProfilePwaWrap .rpp-input-wrapper .lyteField,
.retailiqProfilePwaWrap .rpp-input-wrapper .lyteField:hover,
.retailiqProfilePwaWrap .rpp-input-wrapper.lyteInputFocus .lyteField {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: inherit !important;
  height: 100% !important;
  min-height: 100% !important;
  background: transparent !important;
}

.retailiqProfilePwaWrap .rpp-input-wrapper input {
  font-family: Zoho_Puvi_SemiBold, 'Inter', sans-serif !important;
  /* 16px minimum — iOS Safari/Chrome zoom on focus below this */
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1a2030 !important;
  letter-spacing: -0.14px !important;
  line-height: normal !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  height: 100% !important;
  border-radius: inherit !important;
}

.retailiqProfilePwaWrap lyte-input.rpp-input-wrapper.lyteInputFocus,
.retailiqProfilePwaWrap lyte-input.rpp-input-wrapper:focus-within {
  border-color: #1a6fdb !important;
}

.retailiqProfilePwaWrap .rpp-input-wrapper input::placeholder {
  font-family: Zoho_Puvi_Regular, 'Inter', sans-serif !important;
  font-size: 16px !important;
  color: #aab0be !important;
  font-weight: 400 !important;
}

.retailiqProfilePwaWrap .rpp-code-dropdown lyte-drop-button {
  height: 45px;
  border-radius: 10px;
  border: 1px solid #e2e6ee !important;
  background: #ffffff !important;
  font-family: Zoho_Puvi_SemiBold, 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.retailiqProfilePwaWrap .rpp-field-row {
  display: flex;
  gap: 12px;
}

.retailiqProfilePwaWrap .rpp-col {
  flex: 1;
  min-width: 0;
}

.retailiqProfilePwaWrap .rpp-col-narrow {
  flex: 0 0 92px;
}

.retailiqProfilePwaWrap .rpp-col-wide {
  flex: 1;
}

/* ── Gender chips ── */
.retailiqProfilePwaWrap .rpp-chip-row {
  display: flex;
  gap: 10px;
}

.retailiqProfilePwaWrap .rpp-chip {
  flex: 1;
  height: 42px;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  background: #ffffff;
  color: #6a7185;
  font-size: 14px;
  font-family: Zoho_Puvi_SemiBold, sans-serif;
  cursor: pointer;
}

.retailiqProfilePwaWrap .rpp-chip-active {
  border-color: #1a6fdb;
  color: #1a6fdb;
  background: #eef5fe;
}

/* ── Error text ── */
.retailiqProfilePwaWrap .rpp-error-text {
  color: #d84040;
  font-family: Zoho_Puvi_Regular, 'Inter', sans-serif;
  font-size: 12px;
  margin-top: 8px;
}

.retailiqProfilePwaWrap .rpp-error-global {
  margin: 2px 0 10px;
}

/* ── Save button ── */
.retailiqProfilePwaWrap .rpp-save-row {
  margin-top: 6px;
}

.retailiqProfilePwaWrap .rpp-save-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2c82e8 0%, #1a6fdb 100%);
  color: #ffffff;
  font-size: 15px;
  font-family: Zoho_Puvi_SemiBold, sans-serif;
  letter-spacing: -0.14px;
  box-shadow: 0 6px 14px rgba(26, 111, 219, 0.22);
  cursor: pointer;
}

.retailiqProfilePwaWrap .rpp-save-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ── Skeleton loader ── */
.retailiqProfilePwaWrap .rpp-skel { position: relative; overflow: hidden; background-color: #eceff4; border-radius: 8px; }
.retailiqProfilePwaWrap .rpp-skel::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  height: 100%;
  width: 150%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  animation: rpp-skeleton-shimmer 1.4s infinite;
}
@keyframes rpp-skeleton-shimmer { 100% { left: 150%; } }

.retailiqProfilePwaWrap .rpp-skel-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.retailiqProfilePwaWrap .rpp-skel-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
}

.retailiqProfilePwaWrap .rpp-skel-summary-copy {
  flex: 1;
  min-width: 0;
}

.retailiqProfilePwaWrap .rpp-skel-line {
  height: 12px;
  border-radius: 6px;
}

.retailiqProfilePwaWrap .rpp-skel-summary-name {
  width: 45%;
  height: 15px;
  margin-bottom: 8px;
}

.retailiqProfilePwaWrap .rpp-skel-summary-mobile {
  width: 30%;
  height: 11px;
}

.retailiqProfilePwaWrap .rpp-skel-section {
  background: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.retailiqProfilePwaWrap .rpp-skel-section-label {
  width: 35%;
  height: 14px;
  margin-bottom: 14px;
}

.retailiqProfilePwaWrap .rpp-skel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f4f8;
}

.retailiqProfilePwaWrap .rpp-skel-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.retailiqProfilePwaWrap .rpp-skel-row-label {
  width: 35%;
  height: 11px;
}

.retailiqProfilePwaWrap .rpp-skel-row-value {
  width: 25%;
  height: 12px;
}

@media (min-width: 769px) {
  .retailiqProfilePwaWrap {
    align-items: center;
    padding: 24px;
  }

  .retailiqProfilePwaWrap .rpp-container {
    height: calc(100dvh - 48px);
    max-height: 844px;
  }

  .retailiqProfilePwaWrap .rpp-page {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid #e8ebf1;
  }
}

@media screen and (max-width: 768px) {
  .retailiqProfilePwaWrap .rpp-container {
    max-width: none;
    width: 100%;
  }
}
