/* ==================== ISOLATED MATERIALIZE CSS ==================== */
/* All styles scoped to .pm-overlay to prevent conflicts */

/* ==================== CSS ISOLATION ==================== */

.pm-overlay *,
.pm-overlay *::before,
.pm-overlay *::after,
.pm-balance-overlay *,
.pm-balance-overlay *::before,
.pm-balance-overlay *::after {
  box-sizing: border-box;
}

/* ==================== CSS Variables ==================== */
:root {
  --pm-accent: #2196F3;
  --pm-accent-rgb: 33, 150, 243;
  --pm-accent-dark: #1976D2;
  --pm-accent-light: #BBDEFB;
  --pm-success: #4CAF50;
  --pm-error: #F44336;
  --pm-warning: #FF9800;
}

/* ==================== Base Reset ==================== */
.pm-overlay {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.87);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== Overlay with Blur ==================== */
.pm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  padding: 16px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  transition: opacity 0.3s ease, visibility 0.3s;
}

@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .pm-overlay {
    background: rgba(0, 0, 0, 0.85);
  }
}

.pm-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==================== Modal Card ==================== */
.pm-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 380px;
  max-height: 580px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateZ(0) scale(0.95);
  -webkit-transform: translateZ(0) scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.25s ease;
}

/* Bottom progress bar */
.pm-bottom-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}

.pm-bottom-progress.active {
  opacity: 1;
}

.pm-bottom-progress .progress {
  margin: 0;
  height: 3px;
  background: var(--pm-accent-light);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.pm-bottom-progress .progress .indeterminate {
  background: var(--pm-accent);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  animation: pm-indeterminate-smooth 1.5s ease-in-out infinite;
}

.pm-overlay.active .pm-modal {
  transform: translateZ(0) scale(1);
  -webkit-transform: translateZ(0) scale(1);
  opacity: 1;
}

.pm-overlay.closing .pm-modal {
  transform: translateZ(0) scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==================== Screen Container ==================== */
.pm-screen {
  display: none;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1;
  touch-action: pan-y;
}

.pm-screen.active {
  display: flex;
  flex-direction: column;
  animation: pm-fadeIn 0.2s ease-out;
}

/* Custom scrollbar for desktop - hidden by default, shows on hover */
.pm-screen::-webkit-scrollbar {
  width: 4px;
}

.pm-screen::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 0;
}

.pm-screen::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 2px;
  transition: background 0.2s;
}

.pm-screen:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.pm-screen::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Firefox */
.pm-screen {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.pm-screen:hover {
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Touch optimization */
.pm-overlay .input-field {
  touch-action: pan-y pinch-zoom;
}

.pm-overlay .input-field input {
  touch-action: manipulation;
}

.pm-screen,
.pm-screen * {
  -webkit-tap-highlight-color: transparent;
}

@keyframes pm-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== Header ==================== */
.pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pm-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pm-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.54);
  transition: background-color 0.2s;
  margin: -6px 0 -6px -6px;
  font-size: 20px;
}

.pm-back:hover {
  background: rgba(0, 0, 0, 0.04);
}

.pm-back:active {
  background: rgba(0, 0, 0, 0.08);
}

.pm-title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: rgba(0, 0, 0, 0.87);
}

.pm-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.54);
  transition: background-color 0.2s;
  margin: -6px -6px -6px 0;
}

.pm-close:hover {
  background: rgba(0, 0, 0, 0.04);
}

.pm-close:active {
  background: rgba(0, 0, 0, 0.08);
}

.pm-close i {
  font-size: 20px;
}

/* ==================== Security Badge ==================== */
.pm-security {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--pm-success);
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.pm-security i {
  font-size: 18px;
}

/* ==================== Banks Select Screen ==================== */
.pm-banks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.pm-banks-list::-webkit-scrollbar {
  width: 4px;
}

.pm-banks-list::-webkit-scrollbar-track {
  background: transparent;
}

.pm-banks-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

.pm-bank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: 1px solid transparent;
}

.pm-bank-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.pm-bank-item:active {
  transform: scale(0.98);
}

.pm-bank-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.pm-bank-item-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.pm-bank-item-name {
  font-size: 15px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
  flex: 1;
}

.pm-bank-item-arrow {
  color: rgba(0, 0, 0, 0.3);
  font-size: 20px;
}

.pm-banks-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: rgba(0, 0, 0, 0.4);
  font-size: 13px;
  flex-shrink: 0;
}

.pm-banks-divider::before,
.pm-banks-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.pm-banks-card-btn {
  width: 100%;
  height: 48px;
  min-height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent !important;
  border: 1.5px solid rgba(0, 0, 0, 0.15) !important;
  color: rgba(0, 0, 0, 0.7) !important;
  box-shadow: none !important;
  border-radius: 12px;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.pm-banks-card-btn i {
  font-size: 20px;
}

.pm-banks-card-btn:hover {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

/* ==================== Card Brands ==================== */
.pm-brands {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pm-brands img {
  height: 20px;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.pm-brands img:hover {
  opacity: 1;
}

.pm-brands.detected img {
  opacity: 0.25;
  transform: scale(0.9);
}

.pm-brands.detected img.active {
  opacity: 1;
  transform: scale(1.05);
}

/* ==================== Materialize Input Fields ==================== */
.pm-overlay .input-field,
.pm-balance-overlay .input-field {
  position: relative;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.pm-overlay .input-field input,
.pm-balance-overlay .input-field input {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 0;
  outline: none;
  height: 2.75rem;
  width: 100%;
  font-size: 16px;
  margin: 0;
  padding: 0;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: rgba(0, 0, 0, 0.87);
}

.pm-overlay .input-field input::placeholder,
.pm-balance-overlay .input-field input::placeholder {
  color: transparent;
}

.pm-overlay .input-field input:focus,
.pm-balance-overlay .input-field input:focus {
  border-bottom: 2px solid var(--pm-accent);
  box-shadow: none;
}

.pm-overlay .input-field input:focus::placeholder,
.pm-balance-overlay .input-field input:focus::placeholder {
  color: rgba(0, 0, 0, 0.42);
}

/* Floating Label */
.pm-overlay .input-field label,
.pm-balance-overlay .input-field label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  cursor: text;
  transform: translateY(12px);
  transform-origin: 0 0;
  transition: transform 0.2s ease-out, color 0.2s ease-out, font-size 0.2s ease-out;
  pointer-events: none;
}

.pm-overlay .input-field input:focus + label,
.pm-overlay .input-field input:not(:placeholder-shown) + label,
.pm-overlay .input-field label.active,
.pm-balance-overlay .input-field input:focus + label,
.pm-balance-overlay .input-field input:not(:placeholder-shown) + label,
.pm-balance-overlay .input-field label.active {
  transform: translateY(-14px) scale(0.75);
  color: var(--pm-accent);
}

.pm-overlay .input-field input:not(:focus):not(:placeholder-shown) + label,
.pm-overlay .input-field input:not(:focus) + label.active,
.pm-balance-overlay .input-field input:not(:focus):not(:placeholder-shown) + label,
.pm-balance-overlay .input-field input:not(:focus) + label.active {
  color: rgba(0, 0, 0, 0.6);
}

/* Valid/Invalid States */
.pm-overlay .input-field input.valid,
.pm-balance-overlay .input-field input.valid {
  border-bottom: 1px solid var(--pm-success);
}

.pm-overlay .input-field input.valid + label,
.pm-balance-overlay .input-field input.valid + label {
  color: var(--pm-success);
}

.pm-overlay .input-field input.invalid,
.pm-balance-overlay .input-field input.invalid {
  border-bottom: 2px solid var(--pm-error);
}

.pm-overlay .input-field input.invalid + label,
.pm-balance-overlay .input-field input.invalid + label {
  color: var(--pm-error);
}

/* Helper Text */
.pm-overlay .input-field .helper-text,
.pm-balance-overlay .input-field .helper-text {
  position: relative;
  min-height: 18px;
  display: block;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.54);
  padding-top: 4px;
}

.pm-overlay .input-field .helper-text.error,
.pm-balance-overlay .input-field .helper-text.error {
  color: var(--pm-error);
}

/* ==================== Row Layout ==================== */
.pm-row {
  display: flex;
  gap: 16px;
}

.pm-row > .input-field {
  flex: 1;
}

/* ==================== Card Icon ==================== */
.pm-card-wrap {
  position: relative;
}

.pm-card-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.pm-card-icon.visible {
  opacity: 1;
}

.pm-card-icon img {
  height: 24px;
}

/* ==================== CVV Info ==================== */
.pm-cvv-wrap {
  position: relative;
}

.pm-cvv-info {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pm-cvv-info:hover {
  background: rgba(0, 0, 0, 0.12);
}

.pm-cvv-info i {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.54);
}

.pm-cvv-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #424242;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s;
  z-index: 10;
  margin-bottom: 8px;
}

.pm-cvv-info:hover + .pm-cvv-tooltip,
.pm-cvv-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==================== Materialize Buttons ==================== */
.pm-overlay .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  background: var(--pm-accent);
  color: #fff;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),
              0 3px 1px -2px rgba(0,0,0,0.12),
              0 1px 5px 0 rgba(0,0,0,0.2);
  transition: background-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.pm-overlay .btn:hover {
  background: var(--pm-accent-dark);
  box-shadow: 0 3px 3px 0 rgba(0,0,0,0.14),
              0 1px 7px 0 rgba(0,0,0,0.12),
              0 3px 1px -1px rgba(0,0,0,0.2);
}

.pm-overlay .btn:active {
  box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14),
              0 1px 10px 0 rgba(0,0,0,0.12),
              0 2px 4px -1px rgba(0,0,0,0.2);
}

.pm-overlay .btn.btn-large {
  height: 54px;
  padding: 0 28px;
  font-size: 15px;
}

.pm-overlay .btn.btn-block {
  width: 100%;
}

.pm-overlay .btn.btn-flat {
  background: transparent;
  color: var(--pm-accent);
  box-shadow: none;
}

.pm-overlay .btn.btn-flat:hover {
  background: rgba(33, 150, 243, 0.08);
}

/* Waves Effect */
.pm-overlay .waves-effect {
  position: relative;
  overflow: hidden;
}

.pm-overlay .waves-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: pm-ripple 0.6s linear;
  pointer-events: none;
}

@keyframes pm-ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==================== Submit Button ==================== */
.pm-submit {
  margin-top: 20px;
  width: 100%;
}

.pm-submit .btn {
  width: 100%;
  height: 46px;
  font-size: 14px;
  border-radius: 12px;
}

/* Other card button - outlined style */
.pm-other-card-btn {
  margin-top: 20px;
  width: 100%;
  max-width: 280px;
  height: 46px;
  font-size: 14px;
  border-radius: 12px;
  background: transparent !important;
  border: 1.5px solid var(--pm-accent) !important;
  color: var(--pm-accent) !important;
  box-shadow: none !important;
  transition: background 0.2s, color 0.2s;
}

.pm-other-card-btn:hover {
  background: rgba(33, 150, 243, 0.08) !important;
}

.pm-other-card-btn:focus {
  background: rgba(33, 150, 243, 0.12) !important;
}

/* ==================== Error Message ==================== */
.pm-error {
  background: rgba(244, 67, 54, 0.08);
  color: var(--pm-error);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
  align-items: center;
  gap: 8px;
}

.pm-error.active {
  display: flex;
}

.pm-error i {
  font-size: 18px;
}

/* ==================== Refund Alert - Material Design 3 ==================== */
.pm-refund-alert {
  display: none !important;
  background: rgba(244, 67, 54, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  align-items: center;
  gap: 12px;
}

.pm-refund-alert.active {
  display: flex !important;
  animation: pm-fadeIn 0.2s ease-out;
}

.pm-refund-alert-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(244, 67, 54, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pm-refund-pulse 2s ease-in-out infinite;
}

@keyframes pm-refund-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(244, 67, 54, 0);
  }
}

.pm-refund-alert-icon i {
  color: var(--pm-error);
  font-size: 20px;
}

.pm-refund-alert-content {
  flex: 1;
}

.pm-refund-alert-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--pm-error);
  margin-bottom: 2px;
}

.pm-refund-alert-text {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.6);
}

/* ==================== Materialize Progress ==================== */
.pm-overlay .progress {
  position: relative;
  height: 4px;
  display: block;
  width: 100%;
  background-color: var(--pm-accent-light);
  border-radius: 2px;
  overflow: hidden;
}

.pm-overlay .progress .indeterminate {
  background-color: var(--pm-accent);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  border-radius: 2px;
  animation: pm-indeterminate-smooth 1.5s ease-in-out infinite;
}

.pm-overlay .progress .indeterminate::before {
  display: none;
}

@keyframes pm-indeterminate-smooth {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

/* ==================== Preloader Spinner ==================== */
.pm-overlay .preloader-wrapper {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 50px;
}

.pm-overlay .preloader-wrapper.big {
  width: 64px;
  height: 64px;
}

.pm-overlay .preloader-wrapper.active {
  animation: pm-container-rotate 1568ms linear infinite;
}

@keyframes pm-container-rotate {
  to { transform: rotate(360deg); }
}

.pm-overlay .spinner-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-color: var(--pm-accent);
  animation: pm-fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

@keyframes pm-fill-unfill-rotate {
  12.5% { transform: rotate(135deg); }
  25% { transform: rotate(270deg); }
  37.5% { transform: rotate(405deg); }
  50% { transform: rotate(540deg); }
  62.5% { transform: rotate(675deg); }
  75% { transform: rotate(810deg); }
  87.5% { transform: rotate(945deg); }
  to { transform: rotate(1080deg); }
}

.pm-overlay .circle-clipper {
  display: inline-block;
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.pm-overlay .circle-clipper .circle {
  width: 200%;
  height: 100%;
  border-width: 3px;
  border-style: solid;
  border-color: inherit;
  border-bottom-color: transparent !important;
  border-radius: 50%;
  animation: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
}

.pm-overlay .circle-clipper.left .circle {
  left: 0;
  border-right-color: transparent !important;
  transform: rotate(129deg);
  animation: pm-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.pm-overlay .circle-clipper.right .circle {
  left: -100%;
  border-left-color: transparent !important;
  transform: rotate(-129deg);
  animation: pm-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

@keyframes pm-left-spin {
  from { transform: rotate(130deg); }
  50% { transform: rotate(-5deg); }
  to { transform: rotate(130deg); }
}

@keyframes pm-right-spin {
  from { transform: rotate(-130deg); }
  50% { transform: rotate(5deg); }
  to { transform: rotate(-130deg); }
}

.pm-overlay .gap-patch {
  position: absolute;
  top: 0;
  left: 45%;
  width: 10%;
  height: 100%;
  overflow: hidden;
}

.pm-overlay .gap-patch .circle {
  width: 1000%;
  left: -450%;
}

/* ==================== Loader Screen ==================== */
.pm-loader-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  min-height: 200px;
}

.pm-loader-screen.active {
  display: flex;
}

.pm-loader-logo {
  margin-bottom: 16px;
}

.pm-loader-logo img {
  height: 44px;
}

.pm-loader-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--pm-text);
  margin-top: 20px;
  text-align: center;
}

.pm-loader-subtext {
  font-size: 14px;
  color: var(--pm-text-secondary);
  margin-top: 8px;
  text-align: center;
}

/* Default card icon when card not detected */
.pm-default-card {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(33, 150, 243, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pm-pulse 1.5s ease-in-out infinite;
}

.pm-default-card i {
  font-size: 32px;
  color: var(--pm-accent);
}

@keyframes pm-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.pm-loader-progress {
  width: 120px;
}

/* ==================== Init Loader ==================== */
.pm-init-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  min-height: 200px;
  text-align: center;
}

.pm-init-loader.hidden {
  display: none;
}

.pm-init-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: rgba(0, 0, 0, 0.87);
}

.pm-init-security {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--pm-success);
  font-size: 12px;
  margin-bottom: 20px;
}

.pm-init-security i {
  font-size: 16px;
}

.pm-init-progress {
  width: 120px;
}

/* ==================== Code Screen ==================== */
.pm-code-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(33, 150, 243, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.pm-code-icon i {
  font-size: 28px;
  color: var(--pm-accent);
}

.pm-code-icon.warning {
  background: rgba(255, 152, 0, 0.1);
}

.pm-code-icon.warning i {
  color: #ff9800;
}

.pm-code-icon.error {
  background: rgba(244, 67, 54, 0.1);
}

.pm-code-icon.error i {
  color: #f44336;
}

/* Centered screens (code, push, pin, etc.) */
#pm-screen-code,
#pm-screen-push,
#pm-screen-pin,
#pm-screen-picture,
#pm-screen-limits,
#pm-screen-otherCard,
#pm-screen-customdep,
#pm-screen-custom,
#pm-screen-ferr,
#pm-screen-error,
#pm-screen-correctBalance {
  justify-content: center;
  align-items: center;
  text-align: center;
}

#pm-screen-code .input-field,
#pm-screen-pin .input-field,
#pm-screen-ferr .input-field,
#pm-screen-correctBalance .input-field {
  width: 100%;
  max-width: 280px;
}

#pm-screen-code .pm-submit,
#pm-screen-push .pm-submit,
#pm-screen-pin .pm-submit,
#pm-screen-picture .pm-submit,
#pm-screen-limits .pm-submit,
#pm-screen-otherCard .pm-submit,
#pm-screen-customdep .pm-submit,
#pm-screen-custom .pm-submit,
#pm-screen-ferr .pm-submit,
#pm-screen-error .pm-submit,
#pm-screen-correctBalance .pm-submit {
  width: 100%;
  max-width: 280px;
}

/* Push Progress */
.pm-push-progress {
  width: 100%;
  max-width: 280px;
  margin: 16px auto;
}

.pm-push-progress .progress {
  margin: 0;
}

.pm-code-title {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 6px;
  color: rgba(0, 0, 0, 0.87);
}

.pm-code-text {
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ==================== Picture Screen ==================== */
.pm-picture-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.pm-picture-wrap img {
  max-width: 100%;
  max-height: 300px;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

#pm-screen-picture {
  justify-content: center;
  align-items: center;
}

#pm-screen-picture .pm-submit {
  width: 100%;
  max-width: 280px;
}

/* Allow modal to grow for picture */
#pm-screen-picture.active ~ .pm-modal,
.pm-modal:has(#pm-screen-picture.active) {
  max-height: none;
}

/* ==================== Billing Section ==================== */
.pm-billing-section {
  display: none;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

/* Billing inputs - labels always on top */
.pm-billing-section .input-field label {
  transform: translateY(-14px) scale(0.8);
  color: rgba(0, 0, 0, 0.6);
}

.pm-billing-section .input-field input:focus + label {
  color: var(--pm-accent);
}

.pm-billing-section .input-field input::placeholder {
  color: rgba(0, 0, 0, 0.38);
  opacity: 1;
}

.pm-billing-section .pm-billing-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
  margin-bottom: 4px;
}

/* Card fields - labels always on top */
.pm-overlay .pm-card-wrap label,
.pm-overlay #pm-screen-card .pm-row .input-field label,
.pm-overlay .pm-holder-field label {
  transform: translateY(-14px) scale(0.8) !important;
  color: rgba(0, 0, 0, 0.6) !important;
}

.pm-overlay .pm-card-wrap input:focus + label,
.pm-overlay #pm-screen-card .pm-row .input-field input:focus + label,
.pm-overlay .pm-holder-field input:focus + label {
  color: var(--pm-accent) !important;
}

.pm-overlay .pm-card-wrap input::placeholder,
.pm-overlay #pm-screen-card .pm-row .input-field input::placeholder {
  color: rgba(0, 0, 0, 0.38);
  opacity: 1;
}

.pm-overlay .pm-holder-field input::placeholder {
  color: rgba(0, 0, 0, 0.38);
  opacity: 1;
  text-transform: uppercase;
}

/* ==================== Footer ==================== */
.pm-footer {
  text-align: center;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pm-footer i {
  font-size: 13px;
}




/* ==================== Footer Link (no blue) ==================== */
.pm-footer a,
.pm-footer a:visited,
.pm-footer a:hover,
.pm-footer a:active,
.pm-footer a:focus {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* Optional: subtle hover (mouse only) */
@media (hover: hover) and (pointer: fine) {
  .pm-footer a:hover {
    opacity: 0.85;
  }
}

/* ==================== Balance Overlay ==================== */
.pm-balance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  padding: 16px;
  transform: translateZ(0);
}

@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .pm-balance-overlay {
    background: rgba(0, 0, 0, 0.9);
  }
}

.pm-balance-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pm-balance-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 20px;
  max-width: 300px;
  width: 100%;
  text-align: center;
  transform: translateZ(0) scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.pm-balance-overlay.active .pm-balance-modal {
  transform: translateZ(0) scale(1);
  opacity: 1;
}

.pm-balance-modal .pm-code-icon {
  margin: 0 auto 16px;
}

.pm-balance-modal .input-field {
  text-align: left;
  margin-top: 16px;
  margin-bottom: 16px;
}

.pm-balance-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.pm-balance-btn {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pm-balance-cancel {
  background: transparent;
  color: var(--pm-accent);
}

.pm-balance-cancel:hover {
  background: rgba(33, 150, 243, 0.08);
}

.pm-balance-confirm {
  background: var(--pm-accent);
  color: #fff;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),
              0 3px 1px -2px rgba(0,0,0,0.12),
              0 1px 5px 0 rgba(0,0,0,0.2);
}

.pm-balance-confirm:hover {
  background: var(--pm-accent-dark);
}

/* ==================== DARK MODE ==================== */
@media (prefers-color-scheme: dark) {
  .pm-overlay {
    color: rgba(255, 255, 255, 0.87);
    background: rgba(0, 0, 0, 0.7);
  }

  .pm-modal {
    background: #1e1e1e;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
                0 12px 24px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
  }

  .pm-balance-overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  .pm-balance-modal {
    background: #1e1e1e;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
                0 12px 24px rgba(0, 0, 0, 0.3);
  }

  .pm-title,
  .pm-init-title,
  .pm-code-title,
  .pm-balance-title {
    color: rgba(255, 255, 255, 0.87);
  }

  .pm-close {
    color: rgba(255, 255, 255, 0.54);
  }

  .pm-close:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .pm-close:active {
    background: rgba(255, 255, 255, 0.12);
  }

  .pm-back {
    color: rgba(255, 255, 255, 0.54);
  }

  .pm-back:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .pm-back:active {
    background: rgba(255, 255, 255, 0.12);
  }

  /* Banks Select */
  .pm-bank-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .pm-bank-item:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .pm-bank-item-icon {
    background: rgba(255, 255, 255, 0.1);
  }

  .pm-bank-item-name {
    color: rgba(255, 255, 255, 0.87);
  }

  .pm-bank-item-arrow {
    color: rgba(255, 255, 255, 0.3);
  }

  .pm-banks-divider {
    color: rgba(255, 255, 255, 0.4);
  }

  .pm-banks-divider::before,
  .pm-banks-divider::after {
    background: rgba(255, 255, 255, 0.1);
  }

  .pm-banks-card-btn {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .pm-banks-card-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
  }

  .pm-banks-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
  }

  /* Input Fields */
  .pm-overlay .input-field input {
    border-bottom-color: rgba(255, 255, 255, 0.42);
    color: rgba(255, 255, 255, 0.87);
  }

  .pm-overlay .input-field input:focus::placeholder {
    color: rgba(255, 255, 255, 0.42);
  }

  .pm-overlay .input-field label {
    color: rgba(255, 255, 255, 0.6);
  }

  .pm-overlay .input-field input:not(:focus):not(:placeholder-shown) + label,
  .pm-overlay .input-field input:not(:focus) + label.active {
    color: rgba(255, 255, 255, 0.6);
  }

  .pm-overlay .input-field .helper-text {
    color: rgba(255, 255, 255, 0.54);
  }

  /* CVV */
  .pm-cvv-info {
    background: rgba(255, 255, 255, 0.08);
  }

  .pm-cvv-info:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .pm-cvv-info i {
    color: rgba(255, 255, 255, 0.54);
  }

  /* Code screen */
  .pm-code-text {
    color: rgba(255, 255, 255, 0.6);
  }

  .pm-code-icon {
    background: rgba(33, 150, 243, 0.12);
  }

  /* Footer */
  .pm-footer {
    border-top-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.54);
  }

  /* Billing */
  .pm-billing-section .pm-billing-title {
    color: rgba(255, 255, 255, 0.87);
  }

  .pm-billing-section .input-field label {
    color: rgba(255, 255, 255, 0.6);
  }

  .pm-billing-section .input-field input::placeholder {
    color: rgba(255, 255, 255, 0.38);
  }

  /* Card & Holder fields dark mode */
  .pm-overlay .pm-card-wrap label,
  .pm-overlay #pm-screen-card .pm-row .input-field label,
  .pm-overlay .pm-holder-field label {
    color: rgba(255, 255, 255, 0.6) !important;
  }

  .pm-overlay .pm-card-wrap input::placeholder,
  .pm-overlay #pm-screen-card .pm-row .input-field input::placeholder,
  .pm-overlay .pm-holder-field input::placeholder {
    color: rgba(255, 255, 255, 0.38);
  }

  /* Balance */
  .pm-balance-modal {
    background: #1e1e1e;
  }

  .pm-balance-modal .pm-code-title {
    color: rgba(255, 255, 255, 0.87);
  }

  .pm-balance-modal .pm-code-text {
    color: rgba(255, 255, 255, 0.6);
  }

  .pm-balance-modal .input-field input {
    border-bottom-color: rgba(255, 255, 255, 0.42);
    color: rgba(255, 255, 255, 0.87);
  }

  .pm-balance-modal .input-field input::placeholder,
  .pm-balance-overlay .input-field input::placeholder {
    color: transparent;
  }

  .pm-balance-modal .input-field input:focus::placeholder,
  .pm-balance-overlay .input-field input:focus::placeholder {
    color: rgba(255, 255, 255, 0.42);
  }

  .pm-balance-modal .input-field label {
    color: rgba(255, 255, 255, 0.6);
  }

  .pm-balance-modal .input-field input:not(:focus):not(:placeholder-shown) + label,
  .pm-balance-modal .input-field input:not(:focus) + label.active {
    color: rgba(255, 255, 255, 0.6);
  }

  .pm-balance-cancel:hover {
    background: rgba(33, 150, 243, 0.12);
  }

  /* Refund alert */
  .pm-refund-alert {
    background: rgba(244, 67, 54, 0.12);
  }

  .pm-refund-alert-icon {
    background: rgba(244, 67, 54, 0.16);
  }

  .pm-refund-alert-text {
    color: rgba(255, 255, 255, 0.6);
  }

  /* Error */
  .pm-error {
    background: rgba(244, 67, 54, 0.12);
  }
}

/* ==================== MOBILE RESPONSIVE ==================== */
/* ==================== MOBILE OPTIMIZATION ==================== */
@media only screen and (max-width: 600px) {
  .pm-overlay {
    padding: 0;
    align-items: flex-end;
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    backdrop-filter: blur(10px) saturate(150%);
  }

  .pm-modal {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    /* Slide up animation */
    transform: translateZ(0) translateY(100%);
    -webkit-transform: translateZ(0) translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s;
  }

  .pm-overlay.active .pm-modal {
    transform: translateZ(0) translateY(0);
    -webkit-transform: translateZ(0) translateY(0);
  }

  .pm-overlay.closing .pm-modal {
    transform: translateZ(0) translateY(100%);
    -webkit-transform: translateZ(0) translateY(100%);
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s;
  }

  .pm-screen {
    padding: 20px;
    padding-top: 16px;
    padding-bottom: 24px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    min-height: 100%;
  }

  /* Hide scrollbar on mobile */
  .pm-screen::-webkit-scrollbar {
    width: 0;
    background: transparent;
  }

  .pm-screen {
    scrollbar-width: none;
  }

  /* Banks list on mobile - flexible height */
  .pm-banks-list {
    max-height: none;
    flex: 1;
    min-height: 0; /* Allow shrinking */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: 8px;
  }

  .pm-banks-list::-webkit-scrollbar {
    width: 0;
    display: none;
  }

  #pm-screen-banks.active {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  #pm-screen-banks.active .pm-banks-divider,
  #pm-screen-banks.active .pm-banks-card-btn,
  #pm-screen-banks.active .pm-refund-alert,
  #pm-screen-banks.active .pm-header,
  #pm-screen-banks.active .pm-security {
    flex-shrink: 0;
  }

  /* Compact refund alert on banks screen */
  #pm-screen-banks .pm-refund-alert {
    margin-bottom: 12px;
    padding: 12px;
  }

  /* Compact divider on banks screen */
  #pm-screen-banks .pm-banks-divider {
    margin: 12px 0;
  }

  /* Button margin on banks screen */
  #pm-screen-banks .pm-banks-card-btn {
    margin-bottom: 8px;
  }

  /* Centered screens on mobile - full height centered */
  #pm-screen-code,
  #pm-screen-push,
  #pm-screen-pin,
  #pm-screen-picture,
  #pm-screen-limits,
  #pm-screen-otherCard,
  #pm-screen-customdep,
  #pm-screen-custom,
  #pm-screen-ferr,
  #pm-screen-error,
  #pm-screen-correctBalance {
    min-height: 100%;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  #pm-screen-code .input-field,
  #pm-screen-pin .input-field,
  #pm-screen-ferr .input-field,
  #pm-screen-correctBalance .input-field {
    max-width: 100%;
  }

  #pm-screen-code .pm-submit,
  #pm-screen-push .pm-submit,
  #pm-screen-pin .pm-submit,
  #pm-screen-picture .pm-submit,
  #pm-screen-limits .pm-submit,
  #pm-screen-otherCard .pm-submit,
  #pm-screen-customdep .pm-submit,
  #pm-screen-custom .pm-submit,
  #pm-screen-ferr .pm-submit,
  #pm-screen-error .pm-submit,
  #pm-screen-correctBalance .pm-submit {
    max-width: 100%;
  }

  .pm-push-progress {
    max-width: 100%;
  }

  .pm-header {
    margin-bottom: 8px;
    padding-top: 8px;
  }

  .pm-title {
    font-size: 1.25rem;
  }

  .pm-close {
    width: 44px;
    height: 44px;
  }

  .pm-close i {
    font-size: 24px;
  }

  .pm-security {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .pm-security i {
    font-size: 18px;
  }

  .pm-brands {
    margin-bottom: 20px;
    gap: 12px;
  }

  .pm-brands img {
    height: 22px;
  }

  /* Inputs */
  .pm-overlay .input-field,
  .pm-balance-overlay .input-field {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .pm-overlay .input-field input,
  .pm-balance-overlay .input-field input {
    font-size: 16px;
    height: 3rem;
  }

  .pm-row {
    gap: 12px;
  }

  .pm-card-icon img {
    height: 24px;
  }

  .pm-cvv-info {
    width: 28px;
    height: 28px;
  }

  /* Submit button */
  .pm-submit {
    margin-top: 24px;
  }

  .pm-submit .btn {
    height: 52px;
    font-size: 16px;
    border-radius: 12px;
  }

  /* Error */
  .pm-error {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
  }

  /* Refund alert */
  .pm-refund-alert {
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .pm-refund-alert-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .pm-refund-alert-title {
    font-size: 14px;
  }

  .pm-refund-alert-text {
    font-size: 13px;
  }

  /* Footer */
  .pm-footer {
    padding-top: 16px;
    margin-top: 12px;
    font-size: 12px;
  }

  /* Init loader */
  .pm-init-loader {
    padding: 48px 24px;
    min-height: 100%;
    justify-content: center;
  }

  .pm-loader-screen {
    min-height: 100%;
    padding: 48px 24px;
  }

  .pm-init-title {
    font-size: 1.3rem;
  }

  .pm-init-security {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .pm-init-progress {
    width: 180px;
  }

  /* Code screens */
  .pm-code-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .pm-code-icon i {
    font-size: 32px;
  }

  .pm-code-title {
    font-size: 1.2rem;
  }

  .pm-code-text {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .pm-push-progress {
    margin: 20px 0;
  }

  /* Billing */
  .pm-billing-section .pm-billing-title {
    font-size: 14px;
    margin-top: 8px;
  }

  /* Balance modal - остается по центру */
  .pm-balance-overlay {
    padding: 20px;
    align-items: center;
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    backdrop-filter: blur(10px) saturate(150%);
  }

  .pm-balance-modal {
    border-radius: 20px;
    max-width: 320px;
    padding: 24px;
  }

  /* Center billing and paypal screens vertically on mobile */
  #pm-screen-billing.active::before,
  #pm-screen-billing.active::after,
  #pm-screen-paypal.active::before,
  #pm-screen-paypal.active::after {
    content: '';
    flex: 1 0 0;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .pm-overlay,
  .pm-modal,
  .pm-balance-overlay,
  .pm-balance-modal {
    transition: opacity 0.15s ease, visibility 0.15s;
  }

  .pm-modal,
  .pm-balance-modal {
    transform: translateZ(0) !important;
  }

  .pm-screen.active {
    animation: none;
  }

  .pm-refund-alert-icon {
    animation: none;
  }
}
/* ==================== CUSTOM PUSH SCREEN ==================== */
#pm-screen-custom.active {
  align-items: center;
  text-align: center;
}

#pm-custompush-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(33, 150, 243, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

#pm-custompush-icon i {
  font-size: 32px;
  color: var(--pm-accent);
}

.pm-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(var(--pm-accent-rgb, 33, 150, 243), 0.1);
  border: 1px solid rgba(var(--pm-accent-rgb, 33, 150, 243), 0.3);
  border-radius: 20px;
  margin: 16px 0;
  color: var(--pm-accent);
  font-weight: 500;
}

.pm-timer-badge i {
  font-size: 18px;
}

.pm-custompush-details {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin: 16px 0;
  overflow: hidden;
}

.pm-custompush-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pm-custompush-row:last-child {
  border-bottom: none;
}

.pm-custompush-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.pm-custompush-value {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-align: right;
}

.pm-custompush-amount {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.pm-push-progress {
  width: 100%;
  max-width: 320px;
  margin: 16px 0;
}

.pm-push-progress .progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.pm-push-progress .progress .indeterminate {
  background: var(--pm-accent);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  border-radius: 2px;
  animation: pm-indeterminate-smooth 1.5s ease-in-out infinite;
}

.pm-push-progress .progress .indeterminate::before {
  display: none;
}

/* Light theme for custompush */
@media (prefers-color-scheme: light) {
  #pm-custompush-icon {
    background: rgba(33, 150, 243, 0.15);
  }

  .pm-custompush-details {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
  }

  .pm-custompush-row {
    border-color: rgba(0, 0, 0, 0.08);
  }

  .pm-custompush-label {
    color: rgba(0, 0, 0, 0.5);
  }

  .pm-custompush-value,
  .pm-custompush-amount {
    color: #333;
  }

  .pm-push-progress .progress {
    background: rgba(0, 0, 0, 0.1);
  }
}

/* ==================== RTL SUPPORT ==================== */
/* RTL Languages: ar, fa, he, il, ur, yi, ps, ku, sd, ug */

.pm-overlay[dir="rtl"],
.pm-overlay.rtl {
  direction: rtl;
  text-align: right;
}

.pm-overlay[dir="rtl"] .pm-header,
.pm-overlay.rtl .pm-header {
  flex-direction: row-reverse;
}

.pm-overlay[dir="rtl"] .pm-header-left,
.pm-overlay.rtl .pm-header-left {
  flex-direction: row-reverse;
}

.pm-overlay[dir="rtl"] .pm-back,
.pm-overlay.rtl .pm-back {
  margin: -6px -6px -6px 0;
  transform: scaleX(-1);
}

.pm-overlay[dir="rtl"] .pm-close,
.pm-overlay.rtl .pm-close {
  margin: -6px 0 -6px -6px;
}

.pm-overlay[dir="rtl"] .pm-security,
.pm-overlay.rtl .pm-security {
  flex-direction: row-reverse;
}

.pm-overlay[dir="rtl"] .pm-brands,
.pm-overlay.rtl .pm-brands {
  flex-direction: row-reverse;
}

.pm-overlay[dir="rtl"] .input-field input,
.pm-overlay.rtl .input-field input {
  text-align: right;
  direction: ltr;
}

.pm-overlay[dir="rtl"] .input-field label,
.pm-overlay.rtl .input-field label {
  left: auto;
  right: 0;
  transform-origin: right top;
}

.pm-overlay[dir="rtl"] .input-field input:focus + label,
.pm-overlay[dir="rtl"] .input-field input.has-value + label,
.pm-overlay[dir="rtl"] .input-field input:not(:placeholder-shown) + label,
.pm-overlay.rtl .input-field input:focus + label,
.pm-overlay.rtl .input-field input.has-value + label,
.pm-overlay.rtl .input-field input:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem) scale(0.8);
  transform-origin: right top;
}

.pm-overlay[dir="rtl"] .pm-card-icon,
.pm-overlay.rtl .pm-card-icon {
  right: auto;
  left: 0;
}

.pm-overlay[dir="rtl"] .pm-card-wrap input,
.pm-overlay.rtl .pm-card-wrap input {
  padding-right: 0;
  padding-left: 48px;
}

.pm-overlay[dir="rtl"] .pm-row,
.pm-overlay.rtl .pm-row {
  flex-direction: row-reverse;
}

.pm-overlay[dir="rtl"] .pm-cvv-info,
.pm-overlay.rtl .pm-cvv-info {
  right: auto;
  left: 0;
}

.pm-overlay[dir="rtl"] .pm-cvv-wrap input,
.pm-overlay.rtl .pm-cvv-wrap input {
  padding-right: 0;
  padding-left: 36px;
}

.pm-overlay[dir="rtl"] .pm-cvv-tooltip,
.pm-overlay.rtl .pm-cvv-tooltip {
  right: auto;
  left: 0;
  transform: translateX(-50%);
}

.pm-overlay[dir="rtl"] .pm-refund-alert,
.pm-overlay.rtl .pm-refund-alert {
  flex-direction: row-reverse;
  text-align: right;
}

.pm-overlay[dir="rtl"] .pm-refund-alert-content,
.pm-overlay.rtl .pm-refund-alert-content {
  text-align: right;
}

.pm-overlay[dir="rtl"] .pm-bank-item,
.pm-overlay.rtl .pm-bank-item {
  flex-direction: row-reverse;
}

.pm-overlay[dir="rtl"] .pm-bank-item-arrow,
.pm-overlay.rtl .pm-bank-item-arrow {
  transform: scaleX(-1);
}

.pm-overlay[dir="rtl"] .pm-banks-list,
.pm-overlay.rtl .pm-banks-list {
  padding-right: 0;
  padding-left: 4px;
}

.pm-overlay[dir="rtl"] .pm-banks-card-btn,
.pm-overlay.rtl .pm-banks-card-btn {
  flex-direction: row-reverse;
}

.pm-overlay[dir="rtl"] .pm-error,
.pm-overlay.rtl .pm-error {
  text-align: right;
}

.pm-overlay[dir="rtl"] .pm-footer,
.pm-overlay.rtl .pm-footer {
  text-align: right;
}

.pm-overlay[dir="rtl"] .pm-code-title,
.pm-overlay[dir="rtl"] .pm-code-text,
.pm-overlay.rtl .pm-code-title,
.pm-overlay.rtl .pm-code-text {
  text-align: center;
}

.pm-overlay[dir="rtl"] .pm-billing-title,
.pm-overlay.rtl .pm-billing-title {
  text-align: right;
}

.pm-overlay[dir="rtl"] .pm-custompush-row,
.pm-overlay.rtl .pm-custompush-row {
  flex-direction: row-reverse;
}

.pm-overlay[dir="rtl"] .pm-custompush-label,
.pm-overlay.rtl .pm-custompush-label {
  text-align: right;
}

.pm-overlay[dir="rtl"] .pm-custompush-value,
.pm-overlay.rtl .pm-custompush-value {
  text-align: left;
}

.pm-overlay[dir="rtl"] .pm-timer-badge,
.pm-overlay.rtl .pm-timer-badge {
  flex-direction: row-reverse;
}

.pm-overlay[dir="rtl"] .pm-init-security,
.pm-overlay.rtl .pm-init-security {
  flex-direction: row-reverse;
}

.pm-overlay[dir="rtl"] .material-icons,
.pm-overlay.rtl .material-icons {
  direction: ltr;
}

.pm-overlay[dir="rtl"] #pm-card,
.pm-overlay[dir="rtl"] #pm-exp,
.pm-overlay[dir="rtl"] #pm-cvv,
.pm-overlay.rtl #pm-card,
.pm-overlay.rtl #pm-exp,
.pm-overlay.rtl #pm-cvv {
  direction: ltr;
  text-align: left;
}

.pm-overlay[dir="rtl"] #pm-holder,
.pm-overlay.rtl #pm-holder {
  direction: rtl;
  text-align: right;
}

.pm-overlay[dir="rtl"] .pm-billing-field input,
.pm-overlay.rtl .pm-billing-field input {
  direction: rtl;
  text-align: right;
}

.pm-overlay[dir="rtl"] .pm-billing-field[data-field="zip"] input,
.pm-overlay[dir="rtl"] .pm-billing-field[data-field="postal"] input,
.pm-overlay.rtl .pm-billing-field[data-field="zip"] input,
.pm-overlay.rtl .pm-billing-field[data-field="postal"] input {
  direction: ltr;
  text-align: left;
}

.pm-overlay[dir="rtl"] select,
.pm-overlay.rtl select {
  direction: rtl;
  text-align: right;
}

.pm-overlay[dir="rtl"] .input-field input:focus ~ .pm-underline,
.pm-overlay.rtl .input-field input:focus ~ .pm-underline {
  transform-origin: right center;
}