/* 
  PayNow CSS Stylesheet - Devalia Park Safari Theme
  Includes mobile app intent support & desktop QR code scanner
*/
.upi-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 26, 12, 0.78);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 16px;
    box-sizing: border-box;
}

.upi-box {
    background: #FFFFFF;
    width: 100%;
    max-width: 480px;
    padding: 36px 30px 30px;
    border-radius: 18px;
    text-align: center;
    position: relative;
    border-top: 6px solid #D99A32;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2D3A1B;
    box-sizing: border-box;
    max-height: 92vh;
    overflow-y: auto;
}

.close-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 26px;
    line-height: 1;
    font-weight: bold;
    color: #6E7A60;
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: rgba(41, 53, 22, 0.06);
}

.close-icon:hover {
    background: #D99A32;
    color: #293516;
}

.upi-title {
    font-size: 25px;
    font-weight: 800;
    color: #293516;
    margin-bottom: 5px;
}

.upi-subtitle {
    font-size: 16px;
    color: #6E7A60;
    margin-top: 4px;
    line-height: 1.4;
}

.upi-qr-wrapper {
    background: #FAF7EE;
    border: 1px solid #ECE7D8;
    border-radius: 16px;
    padding: 16px;
    margin: 20px auto 16px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.upi-qr-image {
    width: 235px;
    height: 235px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
}

.upi-id-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #FAF7EE;
    border: 1px solid #ECE7D8;
    padding: 8px 14px;
    border-radius: 30px;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
}

.copy-btn {
    font-size: 12px;
    font-weight: 700;
    color: #9A6228;
    cursor: pointer;
    background: #FFFFFF;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #9A6228;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #9A6228;
    color: #FFFFFF;
}

.upi-amount-field {
    margin: 20px 0 14px;
}

.upi-input {
    width: 100%;
    padding: 13px;
    border: 2px solid #ECE7D8;
    border-radius: 10px;
    font-size: 16px; /* Prevents auto-zoom on mobile iOS */
    outline: none;
    box-sizing: border-box;
    text-align: center;
    font-weight: 700;
    color: #293516;
    background: #FAF7EE;
}

.upi-input:focus {
    border-color: #D99A32;
    background: #FFFFFF;
}

.pay-btn {
    width: 100%;
    margin-top: 10px;
    background: #D99A32;
    color: #293516;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(217, 154, 50, 0.35);
}

.pay-btn:hover {
    background: #9A6228;
    color: #FFFFFF;
}

.upi-alert {
    margin-top: 16px;
    font-size: 12.5px;
    color: #78350F;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    line-height: 1.4;
}

.alert-icon {
    font-size: 16px;
    font-weight: bold;
    color: #D99A32;
    flex-shrink: 0;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
    color: #FFFFFF;
}

.no-scroll {
    overflow: hidden !important;
}
