.enroll-tabs-wrap {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.enroll-tab-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 22px;
    background: #dbe8ff;
    color: #0a3d9d;
    font-weight: 700;
}

.enroll-tab-btn.active {
    background: #1877f2;
    color: #fff;
}

.enroll-tab-pane {
    display: none;
}

.enroll-tab-pane.active {
    display: block;
}

.enroll-card,
.enroll-cart-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(20, 42, 86, 0.08);
    z-index: 1;
}

.enroll-card-title {
    font-size: 20px;
    margin-bottom: 16px;
    color: #102a56;
}

.enroll-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.enroll-card-heading .enroll-card-title,
.enroll-card-heading h5 {
    margin: 0;
}

.enroll-mobile-collapse-toggle {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(24, 119, 242, 0.12);
    color: #1558bf;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    display: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.enroll-mobile-collapse-toggle:hover {
    background: rgba(24, 119, 242, 0.2);
    color: #0f3e88;
}

.enroll-mobile-collapsible-content.is-collapsed {
    display: none;
}

.enroll-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.course-search-wrap {
    display: block;
}

.course-search-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.course-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #5c7297;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 10px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.course-clear-btn:hover {
    color: #153a72;
    background: rgba(21, 58, 114, 0.06);
}

.course-clear-btn:focus-visible {
    outline: 2px solid rgba(24, 119, 242, 0.45);
    outline-offset: 2px;
}

.course-clear-btn svg {
    flex-shrink: 0;
}

.course-clear-btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: default;
    background: transparent;
}

.enroll-course-item {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f4f8ff;
    display: flex;
    align-items: stretch;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.enroll-course-item:hover {
    background: #e8f1ff;
    transform: translateY(-1px);
}

.enroll-course-item input {
    display: none;
}

.enroll-course-item .course-thumb {
    width: 138px;
    background-size: cover;
    background-position: center;
    min-height: 90px;
    filter: saturate(0.95);
}

.enroll-course-item .course-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.enroll-course-item .course-body strong {
    font-size: 17px;
    line-height: 1.35;
    color: #1a3f73;
}

.enroll-course-item .course-body small {
    font-size: 12px;
    font-weight: 700;
    color: #4d6991;
}

.course-view-link {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(17, 47, 97, 0.08);
    color: #1a457f;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.course-view-link:hover {
    background: rgba(17, 47, 97, 0.16);
    color: #153762;
    text-decoration: none;
}

.enroll-course-item:has(input:checked) {
    background: linear-gradient(135deg, #1877f2 0%, #2c8cff 100%);
    color: #fff;
}

.enroll-course-item:has(input:checked) .course-body strong,
.enroll-course-item:has(input:checked) .course-body small {
    color: #fff;
}

.enroll-course-item:has(input:checked) .course-view-link {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.enroll-course-item:has(input:checked) .course-view-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.enroll-course-item:has(input:checked) .course-thumb {
    filter: saturate(1.05) brightness(1.03);
}

.enroll-course-item.preselected-focus {
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.35), 0 14px 26px rgba(24, 119, 242, 0.22);
    animation: preselectedPulse 0.9s ease 2;
}

@keyframes preselectedPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.01);
    }

    100% {
        transform: scale(1);
    }
}

.payment-method-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 6px;
}

.payment-method-grid::-webkit-scrollbar {
    width: 6px;
}

.payment-method-grid::-webkit-scrollbar-track {
    background: #f0f3f8;
    border-radius: 10px;
}

.payment-method-grid::-webkit-scrollbar-thumb {
    background: #b8cef0;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.payment-method-grid::-webkit-scrollbar-thumb:hover {
    background: #8fb5e0;
}

.payment-method-item {
    border: 1px solid #dbe5f4;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: stretch;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfd;
}

.payment-method-item:hover {
    border-color: #8fb5e0;
    transform: translateY(-2px);
    background: #f6f9ff;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.08);
}

.payment-method-item input[type="radio"] {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.payment-method-item input[type="radio"]:checked {
    accent-color: #1877f2;
}

.payment-method-item:has(input[type="radio"]:checked) {
    border-color: #1877f2;
    background: linear-gradient(135deg, #f6f9ff 0%, #f0f7ff 100%);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.15);
}

.payment-method-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.payment-method-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-method-top strong {
    color: #0f2851;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    word-break: break-word;
}

.payment-method-bank {
    color: #4a6fa5;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.payment-method-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.payment-method-info-item {
    background: linear-gradient(135deg, #f9fbfd 0%, #f6f9ff 100%);
    border: 1px solid #dde7f8;
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.payment-method-meta small {
    color: #6b7f9f;
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.payment-info-value {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.payment-method-meta strong {
    color: #1c355f;
    font-size: 11px;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.copy-btn {
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    color: #4a6fa5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.copy-btn.copied {
    color: #0f9d58;
}

.payment-method-qr-wrap {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    border: 2px solid #d8e2f5;
    background: #fff;
    padding: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(20, 42, 86, 0.08);
    transition: all 0.3s ease;
}

.payment-method-item:hover .payment-method-qr-wrap {
    border-color: #b8cef0;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.12);
}

.payment-method-item:has(input[type="radio"]:checked) .payment-method-qr-wrap {
    border-color: #1877f2;
    background: linear-gradient(135deg, #f0f7ff 0%, #f6f9ff 100%);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.2);
}

.payment-method-qr {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.selected-course-list {
    max-height: 220px;
    overflow: auto;
    border: 1px solid #e3eaf6;
    border-radius: 10px;
    padding: 10px;
}

.selected-course-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px dashed #e4ebf7;
}

.price-lines>div {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 14px;
}

.price-lines .total {
    border-top: 1px solid #dbe5f4;
    padding-top: 8px;
    margin-top: 10px;
    font-size: 16px;
}

.coupon-feedback.valid {
    color: #0f9d58;
}

.coupon-feedback.invalid {
    color: #d93025;
}

.terms-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin: 0;
}

.qualification_field_wrapper.is-visible {
    display: block !important;
}

[data-payment-card] {
    display: none;
}

[data-payment-card].is-visible {
    display: block;
}

.celebration-stickers {
    position: relative;
    min-height: 86px;
    margin-bottom: 8px;
}

.celebration-stickers span {
    position: absolute;
    font-size: 28px;
    animation: stickerFloat 1.8s ease-in-out infinite;
}

.celebration-stickers span:nth-child(1) {
    left: 4%;
    top: 18px;
    animation-delay: 0s;
}

.celebration-stickers span:nth-child(2) {
    left: 22%;
    top: 0;
    animation-delay: 0.15s;
}

.celebration-stickers span:nth-child(3) {
    left: 40%;
    top: 18px;
    animation-delay: 0.3s;
}

.celebration-stickers span:nth-child(4) {
    left: 58%;
    top: 3px;
    animation-delay: 0.45s;
}

.celebration-stickers span:nth-child(5) {
    left: 76%;
    top: 18px;
    animation-delay: 0.6s;
}

.celebration-stickers span:nth-child(6) {
    right: 3%;
    top: 2px;
    animation-delay: 0.75s;
}

@keyframes stickerFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-7px) scale(1.08);
    }
}

.payment-screenshot-preview-wrap {
    position: relative;
}

.payment-screenshot-preview {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    background: #f6f9ff;
    border: 2px solid #dbe5f4;
    max-width: 100%;
}

.payment-screenshot-preview-img {
    max-width: 100%;
    max-height: 250px;
    display: block;
    border-radius: 10px;
}

.remove-preview-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #d93025;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(217, 48, 37, 0.25);
}

.remove-preview-btn:hover {
    background: #c5221f;
    box-shadow: 0 4px 12px rgba(217, 48, 37, 0.35);
    transform: scale(1.1);
}

.existing-student-result {
    border: 1px solid #d5e4ff;
    border-radius: 14px;
    background: linear-gradient(145deg, #f7fbff 0%, #eef5ff 100%);
    box-shadow: 0 10px 26px rgba(23, 72, 153, 0.08);
    padding: 16px;
}

.existing-student-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #c5d9fb;
}

.existing-student-result-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #12356b;
}

.existing-student-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #e5f6eb;
    color: #116637;
    font-size: 12px;
    font-weight: 700;
}

.existing-student-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.existing-student-info-item {
    border: 1px solid #d8e3f6;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
}

.existing-student-info-item small {
    display: block;
    font-size: 11px;
    color: #6a81a8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
    font-weight: 700;
}

.existing-student-info-item strong {
    color: #153a72;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.existing-student-courses {
    margin-top: 14px;
}

.existing-student-courses-title {
    display: block;
    font-size: 12px;
    color: #6a81a8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    font-weight: 700;
}

.existing-student-course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.existing-student-course-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #164384;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #c8daf8;
    line-height: 1.2;
}

@media (max-width: 991px) {
    .enroll-cart-card {
        margin-top: 20px;
    }

    .payment-method-meta {
        grid-template-columns: 1fr;
    }

    .existing-student-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {

    .enroll-card,
    .enroll-cart-card {
        padding: 16px;
    }

    .enroll-cart-card {
        margin-bottom: 28px;
    }

    .enroll-card-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .enroll-card-heading {
        margin-bottom: 12px;
    }

    .enroll-mobile-collapse-toggle {
        display: inline-flex;
    }

    .enroll-mobile-collapsible-content.is-collapsed {
        display: none !important;
    }

    .course-search-wrap {
        margin-bottom: 12px;
    }

    .course-search-header {
        margin-bottom: 6px;
    }

    .course-clear-btn {
        font-size: 11px;
    }

    .enroll-course-item {
        border: 1px solid #d7e5fb;
        border-radius: 12px;
        background: #f7faff;
        box-shadow: 0 1px 6px rgba(20, 42, 86, 0.07);
    }

    .enroll-course-item .course-thumb {
        width: 92px;
        min-height: 84px;
        border-right: 1px solid #dce7f8;
    }

    .enroll-course-item .course-body {
        flex: 1;
        padding: 8px 9px 8px;
        gap: 4px;
    }

    .enroll-course-item .course-body strong {
        font-size: 12px;
        line-height: 1.4;
        color: #163867;
    }

    .enroll-course-item .course-body small {
        font-size: 11px;
        font-weight: 700;
        color: #41638f;
    }

    .course-view-link {
        margin-top: 5px;
        padding: 4px 9px;
        font-size: 10px;
        background: rgba(24, 119, 242, 0.12);
        color: #1555b4;
    }

    .course-view-link svg {
        width: 11px;
        height: 11px;
    }

    .enroll-course-item:has(input:checked) {
        border-color: rgba(24, 119, 242, 0.65);
        box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
    }

    .enroll-course-item:has(input:checked) .course-thumb {
        border-right-color: rgba(255, 255, 255, 0.35);
    }

    .coupon-input-row {
        flex-direction: column;
        gap: 10px;
    }

    .coupon-input-row .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .payment-method-item {
        padding: 11px;
    }

    .payment-method-qr-wrap {
        width: 82px;
        height: 82px;
    }
}



.enroll-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #fffbeb 0%, #fff8e1 100%);
    border: 1px solid #f5c842;
    border-left: 4px solid #f5c842;
    border-radius: 12px;
    padding: 14px 18px;
    max-width: 680px;
    margin: 0 auto;
}

.enroll-notice-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    margin-top: 1px;
}

.enroll-notice-body strong {
    display: block;
    color: #92400e;
    font-size: 14px;
    margin-bottom: 4px;
}

.enroll-notice-body p {
    color: #78350f;
    font-size: 13px;
    line-height: 1.6;
}

.enroll-notice-highlight {
    background: rgba(245, 200, 66, 0.35);
    color: #7c2d12;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}
