/* Cybersource 3-D Secure: the bank's pop-up (web checkout and app page) and the app's payment page */

.cybersource-collect-frame {
    position: absolute;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.cybersource-challenge {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
}

.cybersource-challenge__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: min(640px, 100%);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.cybersource-challenge__frame {
    width: 100%;
    height: 100%;
    border: 0;
}

.cybersource-challenge__close {
    position: absolute;
    top: 4px;
    right: 8px;
    z-index: 1;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #333;
}

/* App payment page */

.cs-app {
    --cs-brand: var(--panel-color, #b8792a);
    margin: 0;
    min-height: 100vh;
    background: #f5f5f7;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.cs-app__card {
    box-sizing: border-box;
    max-width: 440px;
    margin: 0 auto;
    padding: 24px 16px;
}

.cs-app__title {
    margin: 0 0 4px;
    font-size: 20px;
}

.cs-app__amount {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.cs-app__muted {
    margin: 4px 0 24px;
    color: #6e6e73;
    font-size: 14px;
}

.cs-app__field {
    display: block;
    margin-bottom: 16px;
}

.cs-app__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.cs-app__input {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    background: #fff;
    font-size: 17px;
}

.cs-app__input:focus {
    outline: 2px solid var(--cs-brand);
    border-color: transparent;
}

.cs-app__row {
    display: flex;
    gap: 12px;
}

.cs-app__row .cs-app__field {
    flex: 1;
}

.cs-app__error {
    min-height: 20px;
    margin: 0 0 12px;
    color: #c62828;
    font-size: 14px;
}

.cs-app__button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 10px;
    background: var(--cs-brand);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.cs-app__button:disabled {
    opacity: 0.6;
}

.cs-app__cancel {
    display: block;
    margin-top: 16px;
    color: #6e6e73;
    font-size: 15px;
    text-align: center;
}

.cs-app__note {
    margin-top: 24px;
    color: #6e6e73;
    font-size: 13px;
    text-align: center;
}
