/**
* 2007-2026 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2026 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.xtdwfp-payment-info {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 12px 0 0;
    padding: 16px 18px;
    border: 1px solid #d7e2ea;
    border-radius: 8px;
    background: #edf7fb;
}

.xtdwfp-payment-info__brand {
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 14px 12px;
    border: 1px solid #d8e3ee;
    border-radius: 6px;
    background: #ffffff;
}

.xtdwfp-payment-info__logo {
    color: #2e6289;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.xtdwfp-payment-info__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.xtdwfp-payment-info__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f4f7fb;
    color: #22324a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.xtdwfp-payment-info__badge--wallet {
    background: #f1f5f9;
    color: #334155;
}

.xtdwfp-payment-info__badge--visa {
    background: #e8f0ff;
    color: #1746a2;
}

.xtdwfp-payment-info__badge--mc {
    background: #fff1eb;
    color: #9a3412;
}

.xtdwfp-payment-info__content {
    min-width: 0;
}

.xtdwfp-payment-info__title {
    margin: 0 0 8px;
    color: #174b6b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.xtdwfp-payment-info__lead,
.xtdwfp-payment-info__text {
    margin: 0;
    color: #24465f;
    font-size: 14px;
    line-height: 1.55;
}

.xtdwfp-payment-info__lead {
    margin-bottom: 6px;
}

.xtdwfp-widget-page {
    --xtdwfp-bg: #f5f7fb;
    --xtdwfp-surface: #ffffff;
    --xtdwfp-ink: #172033;
    --xtdwfp-muted: #667085;
    --xtdwfp-line: #e4e8f0;
    --xtdwfp-accent: #1167d8;
    --xtdwfp-accent-dark: #0c4fa8;
    --xtdwfp-soft: #eef5ff;
    margin: 24px auto;
    max-width: 1120px;
    color: var(--xtdwfp-ink);
    font-family: Arial, Helvetica, sans-serif;
}

.xtdwfp-result-page {
    max-width: 860px;
    margin: 32px auto;
    padding: 0 16px;
    color: #172033;
}

.xtdwfp-result-card {
    padding: 32px;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(23, 32, 51, 0.08);
}

.xtdwfp-result-heading {
    display: flex;
    gap: 16px;
    align-items: center;
}

.xtdwfp-result-mark {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef5ff;
    color: #1167d8;
    font-size: 24px;
    font-weight: 700;
}

.xtdwfp-result-kicker {
    margin: 0 0 3px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xtdwfp-result-heading h1 {
    margin: 0;
    color: #172033;
    font-size: 28px;
    line-height: 1.2;
}

.xtdwfp-result-message {
    margin: 24px 0;
    padding: 16px 18px;
    border-left: 4px solid #1167d8;
    border-radius: 6px;
    background: #f4f8ff;
}

.xtdwfp-result-message p {
    margin: 0;
    color: #344054;
    font-size: 15px;
    line-height: 1.55;
}

.xtdwfp-result-order {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #e4e8f0;
    border-radius: 7px;
    background: #fafbfc;
}

.xtdwfp-result-order span {
    color: #667085;
}

.xtdwfp-result-order strong {
    color: #172033;
}

.xtdwfp-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.xtdwfp-result-actions .btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.xtdwfp-result-actions .xtdwfp-result-primary {
    border-color: #1167d8;
    background: #1167d8;
    color: #ffffff;
}

.xtdwfp-result-actions .xtdwfp-result-secondary {
    border-color: #cfd7e3;
    background: #ffffff;
    color: #172033;
}

.xtdwfp-result-actions .xtdwfp-result-link {
    color: #1167d8;
}

.xtdwfp-result-details {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #e4e8f0;
}

.xtdwfp-result-details summary {
    color: #475467;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.xtdwfp-result-details dl {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

.xtdwfp-result-details dl div {
    display: grid;
    grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
    gap: 16px;
}

.xtdwfp-result-details dt {
    color: #667085;
    font-weight: 400;
}

.xtdwfp-result-details dd {
    margin: 0;
    color: #172033;
    overflow-wrap: anywhere;
}

.xtdwfp-result-note {
    margin: 16px 0 0;
    padding: 12px;
    border-radius: 6px;
    background: #fff8e6;
    color: #7a4d00;
    font-size: 13px;
}

.xtdwfp-confirm-card {
    --xtdwfp-confirm-accent: #1167d8;
    --xtdwfp-confirm-bg: #ffffff;
    --xtdwfp-confirm-text: #172033;
    --xtdwfp-confirm-radius: 8px;
    position: relative;
    margin: 24px 0;
    padding: 24px;
    border-radius: var(--xtdwfp-confirm-radius);
    background: var(--xtdwfp-confirm-bg);
    color: var(--xtdwfp-confirm-text);
}

.xtdwfp-confirm-card--card {
    border: 1px solid #dfe5ec;
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.xtdwfp-confirm-card--highlighted {
    border-left: 5px solid var(--xtdwfp-confirm-accent);
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.xtdwfp-confirm-card--minimal {
    padding-right: 0;
    padding-left: 0;
}

.xtdwfp-confirm-card__brand,
.xtdwfp-confirm-card__status {
    display: inline-flex;
    margin: 0 8px 12px 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--xtdwfp-confirm-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.xtdwfp-confirm-card h2 {
    margin: 0 0 14px;
    color: var(--xtdwfp-confirm-text);
}

.xtdwfp-confirm-card__content {
    color: var(--xtdwfp-confirm-text);
}

.xtdwfp-confirm-card__content > :last-child {
    margin-bottom: 0;
}

.xtdwfp-confirm-card__content img {
    max-width: 100%;
    height: auto;
}

.xtdwfp-widget-page *,
.xtdwfp-widget-page *:before,
.xtdwfp-widget-page *:after {
    box-sizing: border-box;
}

.xtdwfp-widget-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: stretch;
    background: var(--xtdwfp-bg);
    border: 1px solid var(--xtdwfp-line);
    border-radius: 8px;
    padding: 24px;
}

.xtdwfp-widget-main,
.xtdwfp-summary-card {
    min-width: 0;
}

.xtdwfp-pay-card,
.xtdwfp-summary-card {
    height: 100%;
    background: var(--xtdwfp-surface);
    border: 1px solid var(--xtdwfp-line);
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(23, 32, 51, 0.08);
}

.xtdwfp-pay-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.xtdwfp-pay-badge {
    width: fit-content;
    margin-bottom: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--xtdwfp-soft);
    color: var(--xtdwfp-accent-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.xtdwfp-pay-card h1 {
    margin: 0 0 12px;
    color: var(--xtdwfp-ink);
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
}

.xtdwfp-pay-lead {
    max-width: 520px;
    margin: 0 0 28px;
    color: var(--xtdwfp-muted);
    font-size: 16px;
    line-height: 1.5;
}

.xtdwfp-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px 20px;
    border: 1px solid var(--xtdwfp-line);
    border-radius: 8px;
    background: #fbfcff;
}

.xtdwfp-total-box span {
    color: var(--xtdwfp-muted);
    font-size: 14px;
}

.xtdwfp-total-box strong {
    color: var(--xtdwfp-ink);
    font-size: 28px;
    font-weight: 700;
    white-space: nowrap;
}

.xtdwfp-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.xtdwfp-primary-btn,
.xtdwfp-secondary-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.xtdwfp-primary-btn {
    border: 1px solid var(--xtdwfp-accent);
    background: var(--xtdwfp-accent);
    color: #ffffff;
}

.xtdwfp-primary-btn:hover,
.xtdwfp-primary-btn:focus {
    border-color: var(--xtdwfp-accent-dark);
    background: var(--xtdwfp-accent-dark);
    color: #ffffff;
}

.xtdwfp-primary-btn.xtdwfp-is-loading {
    opacity: 0.82;
    cursor: wait;
}

.xtdwfp-secondary-btn {
    border: 1px solid var(--xtdwfp-line);
    background: #ffffff;
    color: var(--xtdwfp-ink);
}

.xtdwfp-secondary-btn:hover,
.xtdwfp-secondary-btn:focus {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: var(--xtdwfp-ink);
}

.xtdwfp-cancel-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 18px;
    color: var(--xtdwfp-muted);
    font-size: 14px;
    text-decoration: none;
}

.xtdwfp-cancel-link:hover,
.xtdwfp-cancel-link:focus {
    color: var(--xtdwfp-ink);
    text-decoration: underline;
}

.xtdwfp-modal-cancel {
    position: fixed;
    right: 56px;
    top: 16px;
    z-index: 2147483647;
    display: none;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #cfd7e3;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(23, 32, 51, 0.2);
    color: #172033;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.xtdwfp-modal-cancel:hover,
.xtdwfp-modal-cancel:focus {
    border-color: #98a2b3;
    background: #f8fafc;
}

.xtdwfp-retry-box {
    display: none;
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 1px solid #f4c95d;
    border-radius: 8px;
    background: #fff8e6;
    color: #7a4d00;
}

.xtdwfp-retry-box strong {
    display: block;
    margin-bottom: 4px;
    color: #5f3b00;
    font-size: 15px;
}

.xtdwfp-retry-box p {
    margin: 0;
    color: #7a4d00;
    font-size: 14px;
    line-height: 1.45;
}

.xtdwfp-summary-card {
    padding: 24px;
}

.xtdwfp-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.xtdwfp-summary-head strong {
    font-size: 18px;
}

.xtdwfp-summary-head span,
.xtdwfp-customer-line {
    color: var(--xtdwfp-muted);
    font-size: 13px;
}

.xtdwfp-customer-line {
    margin-bottom: 20px;
    word-break: break-word;
}

.xtdwfp-item-list {
    display: grid;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--xtdwfp-line);
    border-bottom: 1px solid var(--xtdwfp-line);
}

.xtdwfp-item-row,
.xtdwfp-summary-lines div,
.xtdwfp-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.xtdwfp-item-row strong {
    display: block;
    color: var(--xtdwfp-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.xtdwfp-item-row span,
.xtdwfp-summary-lines span {
    color: var(--xtdwfp-muted);
    font-size: 13px;
}

.xtdwfp-item-row em,
.xtdwfp-summary-lines strong {
    color: var(--xtdwfp-ink);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.xtdwfp-summary-lines {
    display: grid;
    gap: 10px;
    padding: 18px 0;
}

.xtdwfp-summary-total {
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--xtdwfp-line);
}

.xtdwfp-summary-total span {
    color: var(--xtdwfp-ink);
    font-size: 16px;
    font-weight: 700;
}

.xtdwfp-summary-total strong {
    color: var(--xtdwfp-ink);
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .xtdwfp-widget-shell {
        grid-template-columns: 1fr;
    }

    .xtdwfp-pay-card {
        padding: 28px;
    }
}

@media (max-width: 575px) {
    .xtdwfp-payment-info {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .xtdwfp-payment-info__brand {
        justify-items: stretch;
    }

    .xtdwfp-payment-info__logo {
        text-align: center;
        font-size: 24px;
    }

    .xtdwfp-payment-info__title {
        font-size: 16px;
    }

    .xtdwfp-widget-page {
        margin: 12px auto;
    }

    .xtdwfp-widget-shell {
        gap: 16px;
        padding: 12px;
    }

    .xtdwfp-pay-card,
    .xtdwfp-summary-card {
        padding: 20px;
    }

    .xtdwfp-pay-card h1 {
        font-size: 26px;
    }

    .xtdwfp-total-box,
    .xtdwfp-action-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .xtdwfp-total-box strong {
        font-size: 24px;
    }

    .xtdwfp-primary-btn,
    .xtdwfp-secondary-btn {
        width: 100%;
    }

    .xtdwfp-result-page {
        margin: 16px auto;
        padding: 0 10px;
    }

    .xtdwfp-result-card {
        padding: 20px;
    }

    .xtdwfp-result-heading h1 {
        font-size: 23px;
    }

    .xtdwfp-result-actions,
    .xtdwfp-result-actions .btn {
        width: 100%;
    }

    .xtdwfp-result-details dl div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
