/* Styling for the VikingPay (ACI COPYandPAY) widget, shared by the inline popup and the standalone page. */

.vikingpay-box {
    max-width: 480px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

/* Strip the default ACI grey card chrome (we use style: "plain"). */
.wpwl-form-card { background: none; border: none; box-shadow: none; padding: 0; }
.wpwl-wrapper, .wpwl-sup-wrapper { width: 100%; }
.wpwl-group { margin-bottom: 1rem; }

.wpwl-label {
    color: #333;
    font-weight: 600;
    text-align: left;
    margin-bottom: .35rem;
}

.wpwl-control {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0 .75rem;
    height: 44px;
    line-height: 44px;
    box-sizing: border-box;
    box-shadow: none;
}

/* Card number & CVV are rendered as iframes; the embedded input paints inside the content box,
   so horizontal padding here indents the field text to match the normal inputs. */
.wpwl-control-iframe {
    padding: 0 .75rem;
    height: 44px;
    line-height: normal;
}

.wpwl-control:focus,
.wpwl-control-iframe.wpwl-control-focus {
    border-color: #57328a;
    box-shadow: 0 0 0 3px #57328a26; /* ~15% alpha */
    outline: none;
}

/* Keep Expiry Date and CVV as compact, left-aligned fields instead of stretching full width. */
.wpwl-group-expiry .wpwl-control,
.wpwl-group-cvv .wpwl-control {
    max-width: 160px;
}

.wpwl-button-pay {
    background: #2ecc71; /* site btn-success green */
    border: none;
    border-radius: 8px;
    padding: .65rem 1.5rem;
    font-weight: 600;
    color: #fff;
    width: 100%;
    margin-top: .5rem;
    transition: filter .15s ease;
}

.wpwl-button-pay:hover { filter: brightness(.93); }

.wpwl-brand { margin-top: .25rem; }

/* Brand logo moved next to the Brand select (see onReady). */
.wpwl-brand-inline {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.wpwl-brand-inline .wpwl-control-brand { flex: 1 1 auto; width: auto; }

.wpwl-brand-inline .wpwl-brand-card {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 auto;
    margin-left: auto;
}

/* Checkout footer: accepted card logos + legal company info (acquirer requirement). */
.vikingpay-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.vikingpay-footer .vikingpay-cards {
    max-height: 26px;
    width: auto;
    margin-bottom: .6rem;
}

.vikingpay-footer .vikingpay-company {
    font-size: 11px;
    color: #999;
    line-height: 1.5;
}
