/* ==========================================================================
   Lyra — Support & Checkout Modal Styling System (Razorpay & PayPal)
   ========================================================================== */

/* Dialog & Backdrop */
.rzp-modal-dialog {
  border: none;
  padding: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
}

.rzp-modal-dialog[open] {
  opacity: 1;
  pointer-events: auto;
}

.rzp-modal-dialog::backdrop {
  background: rgba(15, 15, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: rzpFadeIn 0.2s ease-out;
}

@keyframes rzpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rzpSlideUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-35px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(-65px);
  }
}

/* Modal Card */
.rzp-modal-card {
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 22px;
  width: 90%;
  max-width: 330px;
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  position: relative;
  box-sizing: border-box;
  animation: rzpSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Close Button */
.rzp-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: #6e6e73;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: all 0.16s ease;
  outline: none;
  padding: 0;
}

.rzp-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
  transform: scale(1.06);
}

.rzp-close-btn:active {
  transform: scale(0.94);
}

/* Header */
.rzp-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  padding-right: 1.8rem;
}

.rzp-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.rzp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rzp-title-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.rzp-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.2;
  letter-spacing: -0.2px;
  margin: 0;
}

.rzp-title .font-lyra {
  font-family: 'K2D', sans-serif !important;
  font-weight: 700 !important;
}

.rzp-sub {
  font-size: 0.76rem;
  font-weight: 500;
  color: #8e8e93;
  margin-top: 1px;
}

/* Presets Grid */
.rzp-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.rzp-preset-btn {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  height: 44px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  outline: none;
  user-select: none;
  touch-action: manipulation;
}

.rzp-preset-btn:hover {
  background: #e8e8ed;
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Razorpay Blue Theme */
.rzp-preset-btn.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 3px 10px rgba(0, 113, 227, 0.28);
}

.rzp-preset-btn.active:hover {
  background: #005bb5;
  color: #ffffff;
}

/* PayPal Gold Theme */
.paypal-preset-btn.active {
  background: #FFD140;
  color: #000000;
  border-color: #dfaf00;
  box-shadow: 0 3px 10px rgba(223, 175, 0, 0.35);
}

.paypal-preset-btn.active:hover {
  background: #f5c428;
  color: #000000;
}

.rzp-preset-btn:active,
.paypal-preset-btn:active {
  transform: scale(0.95);
}

/* Custom Amount Box */
.rzp-custom-form {
  margin: 0;
  width: 100%;
}

.rzp-custom-box {
  display: flex;
  align-items: center;
  background: #f5f5f7;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  height: 42px;
  padding: 0 0.4rem 0 0.75rem;
  box-sizing: border-box;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.rzp-custom-box:focus-within {
  background: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.paypal-custom-box:focus-within {
  background: #ffffff;
  border-color: #dfaf00;
  box-shadow: 0 0 0 3px rgba(255, 209, 64, 0.25);
}

.rzp-currency-symbol {
  font-size: 1rem;
  font-weight: 700;
  color: #6e6e73;
  margin-right: 0.35rem;
  user-select: none;
}

.rzp-custom-input {
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d1d1f;
  width: 100%;
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.rzp-custom-input::-webkit-outer-spin-button,
.rzp-custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rzp-custom-input::placeholder {
  color: #a1a1a6;
  font-weight: 400;
  font-size: 0.88rem;
}

.rzp-custom-pay-btn {
  background: #0071e3;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 0.75rem;
  height: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  outline: none;
}

.rzp-custom-pay-btn:hover {
  background: #005bb5;
  transform: scale(1.02);
}

.rzp-custom-pay-btn:active {
  transform: scale(0.96);
}

/* PayPal Pay Button Variant */
.paypal-custom-pay-btn {
  background: #FFD140;
  color: #000000;
  border: 1px solid #dfaf00;
}

.paypal-custom-pay-btn:hover {
  background: #f5c428;
  color: #000000;
}

/* PayPal Smart Buttons Container */
.paypal-sdk-container {
  margin-top: 0.75rem;
  width: 100%;
}

.paypal-sdk-container iframe {
  z-index: 1 !important;
}

.paypal-sdk-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  font-size: 0.84rem;
  color: #8e8e93;
  background: #f5f5f7;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

/* Apple Pay Button */
.apple-pay-btn {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #1a1a1a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.apple-pay-btn:hover {
  background-color: #1a1a1a !important;
}

.apple-pay-btn:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transform: scale(0.97);
}

.apple-pay-logo-svg {
  height: 24px;
  width: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}


