"".ciit-payment-modal .modal-dialog {
    max-width: 680px;
}

.ciit-payment-modal .modal-content {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .18);
}

.ciit-payment-modal .modal-header {
    padding: 1.1rem 1.25rem .55rem;
}

.ciit-payment-modal .modal-body {
    padding: 0 1.25rem 1.1rem;
}

.ciit-payment-modal-eyebrow {
    display: block;
    margin-bottom: .2rem;
    color: #0d6efd;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ciit-payment-modal .modal-title {
    color: #18212f;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.ciit-payment-modal-subtitle {
    margin: .2rem 0 0;
    color: #718096;
    font-size: .78rem;
}

.ciit-payment-course-summary {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: .85rem;
    align-items: center;
    padding: .75rem;
    border: 1px solid #e7ebf0;
    border-radius: 13px;
    background: #f8fafc;
}

.ciit-payment-course-summary img {
    width: 120px;
    height: 78px;
    object-fit: cover;
    border-radius: 9px;
    background: #e9eef5;
}

.ciit-payment-course-summary > div > span {
    color: #0d6efd;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ciit-payment-course-summary h3 {
    margin: .15rem 0 .2rem;
    color: #243044;
    font-size: .98rem;
    font-weight: 800;
}

.ciit-payment-course-summary p {
    margin: 0;
    color: #6b7788;
    font-size: .74rem;
    line-height: 1.35;
}

.ciit-payment-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .8rem;
    margin-top: .45rem;
}

.ciit-payment-course-meta span {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #526174;
    font-size: .68rem;
    font-weight: 700;
}

.ciit-payment-course-meta i {
    color: #0d6efd;
}

.ciit-payment-order-box {
    display: grid;
    gap: .5rem;
    margin-top: .7rem;
    padding: .7rem .85rem;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
    background: #fff;
}

.ciit-payment-order-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #687587;
    font-size: .75rem;
}

.ciit-payment-order-box strong {
    color: #263246;
    font-weight: 800;
}

.ciit-payment-order-total {
    padding-top: .5rem;
    border-top: 1px solid #edf0f4;
}

.ciit-payment-order-total span {
    color: #1f2937;
    font-weight: 800;
}

.ciit-payment-order-total strong {
    color: #0d6efd;
    font-size: 1.15rem;
}

.ciit-payment-method-box {
    margin-top: .7rem;
    padding: .75rem .85rem;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
}

.ciit-payment-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .55rem;
}

.ciit-payment-section-heading span,
.ciit-payment-section-heading strong {
    display: block;
}

.ciit-payment-section-heading span {
    color: #0d6efd;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ciit-payment-section-heading strong {
    margin-top: .12rem;
    color: #293548;
    font-size: .78rem;
}

.ciit-payment-section-heading > i {
    color: #198754;
    font-size: 1rem;
}

.ciit-payment-methods {
    display: grid;
    gap: .45rem;
}

.ciit-payment-method {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: .6rem;
    padding: .55rem .65rem;
    border: 1px solid #e2e7ee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.ciit-payment-method:hover,
.ciit-payment-method:has(input:checked) {
    border-color: #a9c9fb;
    background: #f7faff;
}

.ciit-payment-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ciit-payment-method-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #edf4ff;
    color: #0d6efd;
}

.ciit-payment-method strong,
.ciit-payment-method small {
    display: block;
}

.ciit-payment-method strong {
    color: #2c3749;
    font-size: .76rem;
    font-weight: 800;
}

.ciit-payment-method small {
    margin-top: .08rem;
    color: #7a8798;
    font-size: .64rem;
}

.ciit-payment-method-check {
    color: #0d6efd;
    opacity: 0;
}

.ciit-payment-method:has(input:checked) .ciit-payment-method-check {
    opacity: 1;
}

.ciit-payment-pay-button {
    min-height: 46px;
    margin-top: .7rem;
    font-size: .9rem;
    font-weight: 800;
}

.ciit-payment-pay-button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.ciit-payment-modal-note {
    margin: .4rem 0 0;
    color: #7a8798;
    font-size: .64rem;
    line-height: 1.4;
    text-align: center;
}

.ciit-payment-state {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.ciit-payment-state strong {
    color: #202b3c;
    font-size: 1.15rem;
    font-weight: 800;
}

.ciit-payment-state span,
.ciit-payment-state small {
    color: #748195;
    font-size: .8rem;
}

.ciit-payment-processing-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: .5rem;
}

.ciit-payment-spinner {
    position: absolute;
    inset: 0;
    width: 72px;
    height: 72px;
    border: 4px solid #dbe8fb;
    border-top-color: #0d6efd;
    border-right-color: #5a9cff;
    border-radius: 50%;
    animation: ciit-payment-spin .8s linear infinite;
}

.ciit-payment-processing-icon > i {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #edf4ff;
    color: #0d6efd;
    font-size: 1.2rem;
}

.ciit-payment-processing-steps {
    width: min(100%, 360px);
    margin-top: .75rem;
    text-align: left;
}

.ciit-payment-processing-step {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem 0;
    color: #9aa5b5;
    font-size: .72rem;
    transition: color .2s ease;
}

.ciit-payment-processing-step i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 1px solid #dce3ec;
    border-radius: 50%;
    background: #fff;
    color: transparent;
    font-size: .66rem;
    transition: all .2s ease;
}

.ciit-payment-processing-step.is-active {
    color: #3d4b60;
    font-weight: 700;
}

.ciit-payment-processing-step.is-active i {
    border-color: #9fc4ff;
    background: #edf4ff;
    color: #0d6efd;
    animation: ciit-payment-step-pulse 1s ease-in-out infinite;
}

.ciit-payment-processing-step.is-complete {
    color: #344054;
}

.ciit-payment-processing-step.is-complete i {
    border-color: #198754;
    background: #198754;
    color: #fff;
}

.ciit-payment-success-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin-bottom: .5rem;
    border: 6px solid #e7f8ee;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 1.9rem;
    box-shadow: 0 10px 25px rgba(25, 135, 84, .18);
    animation: ciit-payment-success-pop .4s ease-out;
}

.ciit-payment-success-icon i {
    animation: ciit-payment-check-in .35s .08s ease-out both;
}

.ciit-payment-success-state strong {
    color: #198754;
}

.ciit-payment-success-course {
    margin-top: .3rem;
    color: #344054 !important;
    font-weight: 700;
}

.ciit-payment-success-note {
    margin-top: .55rem;
    color: #748195 !important;
}

.ciit-payment-redirect-bar {
    width: min(100%, 300px);
    height: 4px;
    margin-top: .65rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef6;
}

.ciit-payment-redirect-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #198754;
    animation: ciit-payment-redirect-fill 1.1s ease-out forwards;
}

@keyframes ciit-payment-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ciit-payment-step-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes ciit-payment-success-pop {
    0% {
        transform: scale(.65);
        opacity: .3;
    }
    70% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes ciit-payment-check-in {
    0% {
        transform: scale(.4) rotate(-20deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes ciit-payment-redirect-fill {
    to {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ciit-payment-spinner,
    .ciit-payment-processing-step.is-active i,
    .ciit-payment-success-icon,
    .ciit-payment-success-icon i,
    .ciit-payment-redirect-bar span {
        animation: none;
    }

    .ciit-payment-redirect-bar span {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .ciit-payment-modal .modal-header,
    .ciit-payment-modal .modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ciit-payment-course-summary {
        grid-template-columns: 1fr;
    }

    .ciit-payment-course-summary img {
        width: 100%;
        height: 140px;
    }

    .ciit-payment-state {
        min-height: 320px;
    }
}

.ciit-payment-toast {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 1085;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    width: min(420px, calc(100vw - 32px));
    padding: .9rem 1rem;
    border: 1px solid;
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    opacity: 0;
    transform: translateY(-10px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
}

.ciit-payment-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ciit-payment-toast-danger {
    border-color: #fecaca;
}

.ciit-payment-toast-success {
    border-color: #bbf7d0;
}

.ciit-payment-toast-warning {
    border-color: #fde68a;
}

.ciit-payment-toast-info {
    border-color: #bfdbfe;
}

.ciit-payment-toast-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    font-size: 1rem;
}

.ciit-payment-toast-danger .ciit-payment-toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.ciit-payment-toast-success .ciit-payment-toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.ciit-payment-toast-warning .ciit-payment-toast-icon {
    background: #fef3c7;
    color: #d97706;
}

.ciit-payment-toast-info .ciit-payment-toast-icon {
    background: #dbeafe;
    color: #2563eb;
}

.ciit-payment-toast-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: .15rem;
}

.ciit-payment-toast-content strong {
    color: #172033;
    font-size: .84rem;
    font-weight: 800;
}

.ciit-payment-toast-content > span {
    color: #64748b;
    font-size: .76rem;
    line-height: 1.45;
}

.ciit-payment-toast-close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin: -.15rem -.15rem 0 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.ciit-payment-toast-close:hover {
    background: #f1f5f9;
    color: #172033;
}

.ciit-payment-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .28);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .2s ease;
}

.ciit-payment-overlay.is-visible {
    opacity: 1;
}

.ciit-payment-overlay-card {
    display: flex;
    align-items: center;
    width: min(390px, calc(100vw - 32px));
    flex-direction: column;
    gap: .55rem;
    padding: 2rem 1.5rem 1.7rem;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .24);
    text-align: center;
    transform: translateY(8px) scale(.97);
    transition: transform .2s ease;
}

.ciit-payment-overlay.is-visible .ciit-payment-overlay-card {
    transform: translateY(0) scale(1);
}

.ciit-payment-overlay-card > strong {
    color: #172033;
    font-size: 1.15rem;
    font-weight: 800;
}

.ciit-payment-overlay-card > span {
    max-width: 320px;
    color: #64748b;
    font-size: .8rem;
    line-height: 1.55;
}

.ciit-payment-overlay-spinner {
    position: relative;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin-bottom: .35rem;
}

.ciit-payment-overlay-spinner::before,
.ciit-payment-overlay-spinner::after {
    position: absolute;
    inset: 0;
    border: 3px solid #dbeafe;
    border-radius: 50%;
    content: "";
}

.ciit-payment-overlay-spinner::after {
    border-color: #0d6efd transparent #5a9cff transparent;
    animation: ciit-payment-overlay-spin 1s linear infinite;
}

.ciit-payment-overlay-spinner > span {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

.ciit-payment-overlay-spinner > i {
    position: absolute;
    color: #0d6efd;
    font-size: 1.35rem;
}

.ciit-payment-overlay-dots {
    display: flex;
    gap: .3rem;
    margin-top: .35rem;
}

.ciit-payment-overlay-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60a5fa;
    animation: ciit-payment-dot 1.1s ease-in-out infinite;
}

.ciit-payment-overlay-dots span:nth-child(2) {
    animation-delay: .14s;
}

.ciit-payment-overlay-dots span:nth-child(3) {
    animation-delay: .28s;
}

.ciit-payment-overlay-action {
    margin-top: .5rem;
}

.ciit-payment-success-ring {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: .35rem;
    border: 6px solid #dcfce7;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 12px 30px rgba(22, 163, 74, .2);
    animation: ciit-payment-success-pop .42s ease-out;
}

.ciit-payment-success-ring i {
    animation: ciit-payment-check-in .32s .08s ease-out both;
}

.ciit-payment-overlay-progress {
    width: min(100%, 280px);
    height: 4px;
    margin-top: .65rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.ciit-payment-overlay-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #16a34a;
    animation: ciit-payment-overlay-progress 650ms ease-out forwards;
}

@keyframes ciit-payment-overlay-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ciit-payment-dot {
    0%, 70%, 100% { transform: translateY(0); opacity: .45; }
    35% { transform: translateY(-4px); opacity: 1; }
}

@keyframes ciit-payment-overlay-progress {
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ciit-payment-toast,
    .ciit-payment-overlay,
    .ciit-payment-overlay-card {
        transition: none;
    }

    .ciit-payment-overlay-spinner::after,
    .ciit-payment-overlay-dots span,
    .ciit-payment-success-ring,
    .ciit-payment-success-ring i,
    .ciit-payment-overlay-progress span {
        animation: none;
    }

    .ciit-payment-overlay-progress span {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .ciit-payment-toast {
        top: 76px;
        right: 16px;
        width: calc(100vw - 32px);
    }

    .ciit-payment-overlay-card {
        padding: 1.65rem 1.1rem 1.45rem;
    }
}
