.ros-cp-payment-row {
    margin-top: 8px;
}

.ros-cp-payment-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    color: #fff;
    background: #198754;
}

.ros-cp-payment-btn:hover,
.ros-cp-payment-btn:focus {
    background: #157347;
}

.ros-cp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ros-cp-modal-box {
    width: 100%;
    max-width: 420px;
    max-height: 92vh;
    max-height: 92dvh;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.ros-cp-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
    flex-shrink: 0;
}

.ros-cp-modal-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111;
}

.ros-cp-modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #111;
    padding: 0 4px;
}

.ros-cp-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ros-cp-wallet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ros-cp-wallet-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    color: #111;
    text-decoration: none;
    box-sizing: border-box;
}

a.ros-cp-wallet-btn:link,
a.ros-cp-wallet-btn:visited,
a.ros-cp-wallet-btn:hover,
a.ros-cp-wallet-btn:active {
    color: #111;
    text-decoration: none;
}

.ros-cp-wallet-btn:hover,
.ros-cp-wallet-btn:focus {
    border-color: #198754;
    background: #eef8f1;
}

.ros-cp-wallet-btn-selected {
    border-color: #198754 !important;
    background: #e8f6ee !important;
    box-shadow: inset 0 0 0 1px #198754;
}

.ros-cp-wallet-label {
    font-weight: 700;
    font-size: 1rem;
    color: #111;
}

.ros-cp-wallet-meta {
    font-size: 0.85rem;
    color: #555;
}

.ros-cp-amount-due {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #111;
}

.ros-cp-amount-label {
    font-size: 0.9rem;
    color: #555;
}

.ros-cp-amount-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
}

.ros-cp-payment-hint {
    margin: 12px 0 0;
    padding: 0;
    border-radius: 8px;
    background: #f4f6f8;
    color: #333;
    font-size: 0.88rem;
    line-height: 1.4;
    border: none;
    overflow: hidden;
}

.ros-cp-payment-hint--success,
.ros-cp-payment-hint--warning {
    background: #f4f6f8;
    color: #333;
    border: none;
}

.ros-cp-hint-panel {
    padding: 10px 12px;
}

.ros-cp-hint-panel--minimal {
    padding: 10px 12px;
}

.ros-cp-hint-title {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: inherit;
}

.ros-cp-hint-detail {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #444;
}

.ros-cp-hint-links {
    margin: 8px 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
}

.ros-cp-hint-link {
    color: #198754;
    font-weight: 600;
    text-decoration: none;
}

.ros-cp-hint-link:hover,
.ros-cp-hint-link:focus {
    text-decoration: underline;
}

.ros-cp-hint-sep {
    margin: 0 8px;
    color: #bbb;
    font-weight: 400;
}

.ros-cp-hint-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.ros-cp-hint-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    box-sizing: border-box;
    cursor: pointer;
}

.ros-cp-hint-btn--primary {
    background: #198754;
    color: #fff !important;
    border: 1px solid #198754;
}

.ros-cp-hint-btn--primary:hover,
.ros-cp-hint-btn--primary:focus {
    background: #157347;
    border-color: #157347;
    color: #fff !important;
}

.ros-cp-hint-btn--secondary {
    background: #fff;
    color: #333 !important;
    border: 1px solid #ddd;
}

.ros-cp-hint-btn--secondary:hover,
.ros-cp-hint-btn--secondary:focus {
    background: #fafafa;
}

.ros-cp-install-link {
    color: #198754;
    font-weight: 600;
    text-decoration: none;
}

.ros-cp-qr-preview-wrap {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    background: #fff;
}

.ros-cp-qr-preview {
    max-width: 100%;
    max-height: 36vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.ros-cp-qr-actions {
    display: none;
    flex-direction: row;
    justify-content: stretch;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    width: 100%;
}

.ros-cp-qr-actions.is-visible {
    display: flex !important;
}

.ros-cp-qr-actions .ros-cp-btn-save-qr,
.ros-cp-qr-actions .ros-cp-btn-done {
    flex: 1 1 0;
    min-height: 48px;
    display: inline-flex !important;
}

.ros-cp-modal-actions {
    display: flex;
    justify-content: stretch;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
}

.ros-cp-modal-actions.is-hidden {
    display: none !important;
}

.ros-cp-btn-secondary,
.ros-cp-btn-save-qr,
.ros-cp-btn-done {
    flex: 1 1 0;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.ros-cp-btn-secondary {
    display: inline-flex;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #111 !important;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.ros-cp-btn-save-qr {
    display: none;
    padding: 12px 16px;
    border: 1px solid #0d6efd;
    border-radius: 8px;
    background: #fff;
    color: #0d6efd !important;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
}

.ros-cp-btn-save-qr.is-visible {
    display: inline-flex !important;
}

.ros-cp-btn-save-qr:disabled {
    opacity: 0.65;
    cursor: wait;
}

.ros-cp-btn-done {
    display: inline-flex;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #198754;
    color: #fff !important;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
}

.ros-cp-btn-done:disabled,
.ros-cp-btn-secondary:disabled {
    opacity: 0.65;
    cursor: wait;
}
