/* NETOPIA / MyElectrica payment card layout */
:root {
    --np-header-bg: #d1e3f8;
    --np-navy: #1a2b44;
    --np-text: #3d4a5c;
    --np-muted: #8a96a8;
    --np-line: #c5ced9;
    --np-btn-locked: #b8d4f0;
    --np-btn-ready: #2a6fc4;
    --np-btn-ready-hover: #1f5ca8;
    --np-page-bg: #e8eef5;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: var(--np-text);
    background: var(--np-page-bg);
    -webkit-font-smoothing: antialiased;
}

.np-page {
    min-height: 100vh;
    padding: 20px 16px 32px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.np-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(26, 43, 68, 0.1);
    overflow: hidden;
}

.np-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--np-header-bg);
    border-bottom: 1px solid rgba(26, 43, 68, 0.06);
}

.np-logo-box {
    background: var(--np-navy);
    color: #fff;
    padding: 10px 12px 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
}

.np-logo-box small {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-top: 2px;
    opacity: 0.95;
}

.np-cards-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.np-head-cards-img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center right;
}

.np-body {
    padding: 22px 20px 20px;
}

.np-merchant {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--np-navy);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.np-url {
    font-size: 0.9rem;
    color: #2563c4;
    text-decoration: none;
    word-break: break-all;
}

.np-url:hover {
    text-decoration: underline;
}

.np-desc {
    font-size: 0.8rem;
    color: var(--np-muted);
    margin: 10px 0 6px;
    line-height: 1.4;
}

.np-instant {
    text-align: center;
    font-size: 0.78rem;
    color: var(--np-muted);
    margin: 0 0 20px;
}

.np-wallets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.np-wallet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.np-wallet:hover {
    background: #1a1a1a;
}

.np-wallet--gpay {
    gap: 8px;
    padding: 11px 18px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.np-gpay-logo {
    flex-shrink: 0;
    display: block;
}

.np-gpay-word {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.np-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 22px;
    color: var(--np-muted);
    font-size: 0.8rem;
}

.np-sep::before,
.np-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--np-line);
}

.np-field {
    margin-bottom: 20px;
}

.np-field label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--np-navy);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.np-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--np-line);
    padding: 10px 4px 8px 0;
    font-size: 1rem;
    color: var(--np-navy);
    background: transparent;
    border-radius: 0;
    transition: border-color 0.15s;
}

.np-input::placeholder {
    color: #b8c0cc;
}

.np-input:focus {
    outline: none;
    border-bottom-color: var(--np-navy);
}

.np-row {
    display: flex;
    gap: 16px;
}

.np-half {
    flex: 1;
    min-width: 0;
}

.np-pay-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.2s, opacity 0.2s, transform 0.15s;
}

.np-pay-btn--locked {
    background: var(--np-btn-locked);
    cursor: not-allowed;
    opacity: 0.92;
}

.np-pay-btn--ready {
    background: var(--np-btn-ready);
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 4px 14px rgba(42, 111, 196, 0.35);
}

.np-pay-btn--ready:hover {
    background: var(--np-btn-ready-hover);
}

.np-pay-btn--ready:active {
    transform: translateY(1px);
}

.np-cancel {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--np-muted);
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.np-cancel:hover {
    color: var(--np-navy);
}

.np-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf2;
}

.np-footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px 20px;
    margin-bottom: 16px;
}

.np-foot-logo-mc {
    height: 26px;
    width: auto;
    opacity: 0.9;
}

.np-foot-logo-trust {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
    opacity: 0.95;
}

.np-foot-logo-fallback {
    height: 24px;
    width: auto;
    opacity: 0.85;
}

.np-legal {
    font-size: 0.65rem;
    line-height: 1.5;
    color: var(--np-muted);
    margin: 0 0 12px;
}

.np-legal a {
    color: #2563c4;
    text-decoration: none;
}

.np-legal a:hover {
    text-decoration: underline;
}

.np-copy {
    display: block;
    font-size: 0.72rem;
    color: #2563c4;
    text-decoration: underline;
    text-align: center;
}

@media (min-width: 480px) {
    .np-page {
        padding-top: 32px;
    }
}
