/**
 * PPCP Fastlane — classic + Blocks checkout styles.
 */

/* --- Watermark next to the billing email field ------------------------ */
#wpp-fastlane-watermark {
    margin-top: 6px;
    min-height: 18px;
}

/* --- Wordmark fallback (used when no logo asset is provided) ---------- */
.wpp-fastlane-wordmark {
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
    color: #576062;
}

.wpp-fastlane-wordmark small {
    font-weight: 400;
    font-style: normal;
    font-size: 0.72em;
    margin-left: 2px;
}

/* --- Express button ---------------------------------------------------- */
.wpp-fastlane-express {
    margin: 0 0 20px;
    text-align: center;
}

.wpp-fastlane-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 750px;
    min-height: 45px;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    background: #ffc439;
    color: #111;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.wpp-fastlane-button:hover {
    filter: brightness(0.95);
}

.wpp-fastlane-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.wpp-fastlane-button .wpp-fastlane-logo {
    max-height: 20px;
    width: auto;
}

/* --- Signup link -------------------------------------------------------- */
.wpp-fastlane-signup-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    cursor: pointer;
    font-size: 0.92em;
    color: #576062;
}

.wpp-fastlane-signup-link:hover {
    text-decoration: underline;
}

.wpp-fastlane-signup-link .wpp-fastlane-logo {
    max-height: 14px;
    width: auto;
}

/* --- Modal --------------------------------------------------------------- */
.wpp-fastlane-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wpp-fastlane-overlay.active {
    display: flex;
}

body.wpp-fastlane-modal-open {
    overflow: hidden;
}

.wpp-fastlane-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
}

.wpp-fastlane-modal-body {
    min-height: 120px;
}

.wpp-fastlane-modal-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.wpp-fastlane-modal-buttons .wpp-fastlane-tokenize {
    flex: 1 1 auto;
}

.wpp-fastlane-modal-buttons .wpp-fastlane-cancel {
    cursor: pointer;
    color: #576062;
    text-decoration: underline;
}

/* --- Tokenized card summary ---------------------------------------------- */
.wpp-tokenized-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    background: #fff;
}

.wpp-tokenized-card-icon img {
    display: block;
    height: 26px;
    width: auto;
}

.wpp-tokenized-card-label {
    flex: 1 1 auto;
    font-weight: 500;
}

.wpp-tokenized-card-actions {
    display: flex;
    gap: 12px;
    font-size: 0.9em;
}

.wpp-tokenized-card-actions a {
    cursor: pointer;
    text-decoration: underline;
    color: #576062;
}

/* "Change" only makes sense for authenticated Fastlane members. */
.wpp-tokenized-card .wpp-tokenized-card-change {
    display: none;
}

.wpp-tokenized-card.has-customer-context .wpp-tokenized-card-change {
    display: inline;
}

/* --- Notices --------------------------------------------------------------- */
.wpp-fastlane-notice {
    margin-bottom: 16px;
}
