.hexo-bnpl-box,
.hexo-bnpl-debt-summary,
.hexo-bnpl-nearest,
.hexo-bnpl-account-rules,
.hexo-bnpl-restricted-message {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}

.hexo-bnpl-choice,
.hexo-bnpl-accept {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
}

.hexo-bnpl-accept span {
    color: black;
}

.hexo-bnpl-summary {
    color: black;
    display: grid;
    gap: 6px;
    margin: 12px 0;
}

.hexo-bnpl-summary > span:first-child {
    /* display: none; */
}

.hexo-bnpl-rules {
    max-height: 170px;
    overflow: auto;
    background: #f8f8f8;
    padding: 12px;
    margin: 12px 0;
    color: black;
}

.hexo-bnpl-nearest {
    display: grid;
    gap: 8px;
    border-width: 2px;
}

.hexo-bnpl-nearest .button,
.hexo-bnpl-unpaid-links .button {
    text-align: center;
    font-size: 1.05em;
}

.hexo-bnpl-unpaid-links {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.hexo-bnpl-table-wrap {
    overflow-x: auto;
}

.hexo-bnpl-restricted-message {
    font-weight: bold;
}

.hexo-bnpl-debt-summary {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.hexo-bnpl-debt-summary strong {
    font-size: 1.25em;
}

.hexo-bnpl-rules-link {
    text-decoration: underline;
}

.hexo-bnpl-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.55);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.hexo-bnpl-modal.is-open {
    display: flex;
}

.hexo-bnpl-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
}

.hexo-bnpl-modal-content h3 {
    margin-top: 0;
    padding-left: 30px;
}

.hexo-bnpl-modal .hexo-bnpl-modal-close {
    position: absolute;
    top: 5px;
    left: 12px;
    border: 0;
    background: transparent;
    font-size: 30px !important;
    line-height: 0 !important;
    cursor: pointer;
    color: red;
    padding: 0;
    margin: 0;
}

.hexo-bnpl-modal .hexo-bnpl-modal-close:hover {
    background: transparent;
}

.hexo-bnpl-modal .hexo-bnpl-rules {
    max-height: none;
    margin-bottom: 0;
}
