#aliko-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(15, 23, 42, 0.55);
    overflow-y: auto;
}

#aliko-pay-sheet {
    position: relative;
    width: min(440px, calc(100% - 8px)) !important;
    max-width: 440px !important;
    margin: 32px auto;
    background: #ffffff;
    color: #0F172A;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    padding: 28px 24px 24px;
}

#aliko-pay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

#aliko-pay-kicker {
    margin: 0 0 6px;
    color: #FF4E02;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#aliko-pay-title {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.3;
    color: #0F172A;
}

.aliko-pay-amount {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #0F172A;
    color: #ffffff;
}

.aliko-pay-amount span {
    display: block;
    font-size: 12px;
    color: #cbd5e1;
}

.aliko-pay-amount strong {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    line-height: 1.2;
}

.aliko-pay-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
}

#aliko-pay-phone {
    width: 100%;
    height: 48px;
    margin-bottom: 14px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0F172A;
    font-size: 16px;
}

#aliko-pay-phone:focus {
    outline: 2px solid rgba(255, 78, 2, 0.35);
    border-color: #FF4E02;
}

#aliko-pay-detected {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    margin: -6px 0 12px;
    color: #0F172A;
    font-size: 13px;
    font-weight: 600;
}

#aliko-pay-detected[hidden] {
    display: none !important;
}

.aliko-pay-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 4px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: -0.03em;
    flex: 0 0 auto;
}

.aliko-pay-networks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.aliko-pay-networks label {
    flex: 1 1 calc(50% - 8px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.aliko-pay-networks input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.aliko-pay-networks label.is-selected {
    border-color: #FF4E02;
    background: #fff7ed;
}

#aliko-pay-confirm,
#aliko-pay-retry {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: #FF4E02;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

#aliko-pay-confirm:hover,
#aliko-pay-retry:hover {
    background: #e04302;
}

#invoice-pay-btn {
    background: #FF4E02;
    color: #ffffff;
    border: 0;
}

#aliko-pay-confirm:disabled {
    opacity: 0.7;
    cursor: default;
}

.aliko-pay-wait,
.aliko-pay-success,
.aliko-pay-error {
    text-align: center;
    padding: 12px 8px 4px;
}

.aliko-pay-spinner {
    width: 46px;
    height: 46px;
    margin: 8px auto 16px;
    border: 3px solid #ffd7c7;
    border-top-color: #FF4E02;
    border-radius: 50%;
    animation: aliko-pay-spin 0.8s linear infinite;
}

@keyframes aliko-pay-spin {
    to { transform: rotate(360deg); }
}

.aliko-pay-shield {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff7ed;
    color: #FF4E02;
}

.aliko-pay-wait p,
.aliko-pay-success p,
.aliko-pay-error p {
    margin: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.5;
}

.aliko-pay-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 8px auto 16px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    font-size: 32px;
    animation: aliko-pay-pop 0.35s ease;
}

@keyframes aliko-pay-pop {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.aliko-pay-error {
    color: #b91c1c;
}

#aliko-pay-error-text {
    margin-bottom: 16px;
    color: #b91c1c;
}
