* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #212529;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.credipay-embedded .container {
    max-width: 100%;
}


#mainContent,
#step1Left, #step1Right,
#step2Left, #step2Right,
#step3Left, #step3Right,
#step4Left, #step4Right {
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    margin-bottom: 1.5rem;
}

#mainContent .card,
#step1Left .card, #step1Right .card,
#step2Left .card, #step2Right .card,
#step3Left .card,
#step4Left .card,
#step3Right .payment-summary,
#step4Right .payment-summary,
.step .card {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    max-width: 100%;
}

@media (min-width: 992px) {
    #step1Left, #step1Right,
    #step2Left, #step2Right,
    #step4Left, #step4Right {
        margin-bottom: 0;
    }
    
    #mainContent .card,
    #step1Left .card, #step1Right .card,
    #step2Left .card, #step2Right .card,
    #step3Left .card,
    #step4Left .card {
        width: 100%;
    }

    #step3Right .payment-summary,
    #step4Right .payment-summary {
        width: 100%;
    }
}

.mt-5 {
    margin-top: 3rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.justify-content-center {
    justify-content: center;
}

.col-md-8 {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-md-6 {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-md-4 {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-md-3 {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-lg-6 {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-lg-8 {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-lg-4 {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-md-12 {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.tarjetas-logo {
    margin: -28px 0px;
}

@media (min-width: 768px) {
    .col-md-8 {
        width: 66.666667%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-4 {
        width: 33.333333%;
    }

    .col-md-3 {
        width: 25%;
    }
}

@media (min-width: 992px) {
    .col-lg-6 {
        width: 50%;
    }

    .col-lg-8 {
        width: 66.666667%;
        padding: 0 15px;
    }

    .col-lg-4 {
        width: 33.333333%;
        padding: 0 15px;
    }
}

.card {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    background-color: #ffffff;
    /* color: #fff; */
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.card-body {
    padding: 1.5rem;
}

.step {
    display: none;
    width: 100%;
}

.step.active {
    display: block;
    width: 100%;
}

#step2Left, #step2Right, #step3Left, #step3Right, #step4Left, #step4Right {
    display: none;
}

#step1Left.step-active, #step1Right.step-active,
#step2Left.step-active, #step2Right.step-active,
#step3Left.step-active, #step3Right.step-active,
#step4Left.step-active, #step4Right.step-active {
    display: block !important;
}

#step1Left, #step1Right {
    display: block;
}

@media (min-width: 992px) {
    #step1Left.step-active, #step1Right.step-active,
    #step2Left.step-active, #step2Right.step-active,
    #step3Left.step-active, #step3Right.step-active,
    #step4Left.step-active, #step4Right.step-active {
        display: block;
    }
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.pt-3 {
    padding-top: 1rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.p-3 {
    padding: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #323232;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(204, 0, 0, 0.25);
}

.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.btn {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 6px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary-credipay {
    color: #fff;
    background-color: #323232;
    border-color: #323232;
}

.btn-primary-credipay:hover:not(:disabled) {
    color: #fff;
    background-color: #cc0000;
    border-color: #cc0000;
}

.btn-secondary {
    color: #000;
    background-color: #ffcb03;
    border-color: #ffcb03;
}

.btn-secondary:hover:not(:disabled) {
    color: #fff;
    background-color: #cc0000;
    border-color: #cc0000;
}

.btn-success {
    color: #fff;
    background-color: #323232;
    border-color: #323232;
}

.btn-success:hover:not(:disabled) {
    color: #fff;
    background-color: #cc0000;
    border-color: #cc0000;
}

.btn-outline-primary-credipay {
    color: #323232;
    border-color: #323232;
    background-color: transparent;
}

.btn-outline-primary-credipay:hover {
    color: #fff;
    background-color: #323232;
    border-color: #323232;
}

.btn-outline-primary-credipay.active {
    color: #fff;
    background-color: #323232;
    border-color: #323232;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.125rem;
    border-radius: 6px;
}

.w-100 {
    width: 100%;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.gap-2 {
    gap: 0.5rem;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.text-primary-credipay {
    color: #323232;
}

.fw-bold {
    font-weight: 700;
}

.bg-light {
    background-color: #f8f9fa;
}

.rounded {
    border-radius: 0.375rem;
}

.border-top {
    border-top: 1px solid #dee2e6;
}

hr {
    margin: 1rem 0;
    color: inherit;
    background-color: currentColor;
    border: 0;
    opacity: 0.25;
    height: 1px;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.375rem 0 0 0.375rem;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-radius: 0 0.375rem 0.375rem 0;
}

.credit-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s;
    overflow: hidden;
}

.credit-item:hover {
    /* Efecto flotante/levitar para el ítem de crédito al hacer hover solo si no está seleccionado */
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 24px rgba(50, 50, 50, 0.15), 0 1.5px 4px rgba(0, 0, 0, 0.09);
}

.credit-item.excluded {
    border-color: #999;
    background-color: #f5f5f5;
    opacity: 0.7;
}

.credit-header {
    padding: 15px;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s;
}

.credit-header:hover {
    background-color: #f8f9fa;
}

.credit-content {
    padding: 0 15px 15px 15px;
    background-color: #fff;
}

.credit-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #323232;
}

.credit-arrow {
    font-size: 1.2rem;
    color: #323232;
    transition: transform 0.3s;
}

.payment-option-btn {
    text-align: left;
    border-color: #323232;
    color: #323232;
    width: 100%;
    margin-bottom: 0.5rem;
}

.payment-option-btn:hover:not(:disabled) {
    background-color: #cc0000;
    border-color: #cc0000;
    color: #fff;
}

.payment-option-btn.active {
    background-color: #323232;
    border-color: #323232;
    color: #fff;
}

.payment-option-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.manual-amount-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e9ecef;
}

.manual-amount-input {
    font-weight: bold;
    color: #323232;
}

.exclude-credit-btn {
    font-size: 0.9rem;
    width: 100%;
}

#processingMessage {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#resultMessage.success {
    color: #198754;
}

#resultMessage.error {
    color: #dc3545;
}

.spinner-border {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border.text-primary-credipay {
    color: #323232;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}


.payment-summary {
    background-color: #fff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid #dee2e6;
    min-height: auto;
    height: auto;
}

.payment-summary-header {
    background-color: #323232;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #cc0000;
}

.payment-summary-body {
    background-color: #fff;
    padding: 1.5rem;
    color: #212529;
}

@media (min-width: 992px) {
    .payment-summary {
        margin-left: 1.5rem;
        position: sticky;
        top: 20px;
    }

    .payment-summary-body {
        padding: 2rem 1.5rem;
    }

    .payment-summary-header {
        padding: 2rem 1.5rem;
    }
}

.summary-credit-item {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #cc0000;
    margin-bottom: 0.75rem;
}

.summary-credit-item:last-child {
    margin-bottom: 0;
}

.summary-credit-item strong {
    color: #323232;
    font-size: 1.1rem;
}

#summaryTotalAmount {
    color: #cc0000;
    font-weight: bold;
    font-size: 1.5rem;
}

div#content {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

@media (min-width: 992px) {
    .summary-credit-item {
        padding: 15px;
        margin-bottom: 1rem;
    }

    .payment-summary-body>div {
        margin-bottom: 1.5rem;
    }

    .payment-summary-body>div:last-child {
        margin-bottom: 0;
    }

    .payment-summary-body hr {
        margin: 2rem 0;
    }
}

#step3Right.step.active {
    display: block;
}

#step1Left.step.active,
#step2Left.step.active {
    display: block;
}

#step4Right.step.active,
#step5Right.step.active {
    display: none;
}

.carousel-container {
    min-height: 500px;
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 500px;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(204, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(204, 0, 0, 0.9);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #cc0000;
}

@media (max-width: 991px) {
    .row {
        flex-direction: column;
        margin: 0 -15px;
    }

    .col-lg-8,
    .col-lg-4,
    .col-lg-6 {
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
        margin-bottom: 1rem;
    }

    .col-lg-8:last-child,
    .col-lg-4:last-child,
    .col-lg-6:last-child {
        margin-bottom: 0;
    }

    #step1Left, #step1Right,
    #step2Left, #step2Right,
    #step3Left, #step3Right,
    #step4Left, #step4Right {
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
        margin-bottom: 1.5rem;
    }

    #step1Left:last-child,
    #step1Right:last-child,
    #step2Left:last-child,
    #step2Right:last-child,
    #step3Left:last-child,
    #step3Right:last-child,
    #step4Left:last-child,
    #step4Right:last-child {
        margin-bottom: 0;
    }

    .payment-summary {
        min-height: auto;
        margin-top: 0;
    }
}

.credipay-embedded {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f9fa;
    min-height: auto;
    height: auto;
    position: relative;
    overflow: visible;
}

.credipay-embedded .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem 15px;
    box-sizing: border-box;
    overflow: visible;
    height: auto;
}

.credipay-embedded * {
    box-sizing: border-box;
}

.credipay-embedded .row {
    overflow: visible;
}

.credipay-embedded #mainContent,
.credipay-embedded #step3Left,
.credipay-embedded #step3Right {
    overflow: visible;
}


.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.w-full {
    width: 100%;
}

.block {
    display: block;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-medium {
    font-weight: 500;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-400 {
    color: #9ca3af;
}

.mt-2 {
    margin-top: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.-space-y-px> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(-1px * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(-1px * var(--tw-space-y-reverse));
}

.-space-x-px> :not([hidden])~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(-1px * var(--tw-space-x-reverse));
    margin-left: calc(-1px * calc(1 - var(--tw-space-x-reverse)));
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-t-xl {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.rounded-b-xl {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.rounded-bl-xl {
    border-bottom-left-radius: 0.75rem;
}

.rounded-br-xl {
    border-bottom-right-radius: 0.75rem;
}

.rounded-tl-xl {
    border-top-left-radius: 0.75rem;
}

.rounded-tr-xl {
    border-top-right-radius: 0.75rem;
}

.bg-white {
    background-color: #ffffff;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.group {
    position: relative;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.pointer-events-none {
    pointer-events: none;
}

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.right-0 {
    right: 0;
}

.z-20 {
    z-index: 20;
}

.items-center {
    align-items: center;
}

.pr-3 {
    padding-right: 0.75rem;
}

.pr-10 {
    padding-right: 2.5rem;
}

.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.slim-input {
    position: relative;
    width: 100%;
    border-radius: 0;
    border-width: 1px;
    border-color: #d1d5db;
    background-color: #ffffff;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 400;
}

.slim-input::placeholder {
    color: #9ca3af;
}

.slim-input:focus {
    z-index: 15;
    border-color: #1f2937;
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px #1f2937;
}

.slim-input:disabled {
    cursor: not-allowed;
    background-color: #f3f4f6;
    color: #9ca3af;
}

select.slim-input {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
}

select.slim-input option {
    background-color: #ffffff;
    color: #212529;
}

.payment-steps-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.payment-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
}

.step-item.active .step-number {
    background-color: #cc0000;
    color: #fff;
    border-color: #cc0000;
    box-shadow: 0 0 0 4px rgba(204, 0, 0, 0.1);
}

.step-item.completed .step-number {
    background-color: #198754;
    color: #fff;
    border-color: #198754;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
}

.step-item.active .step-label {
    color: #cc0000;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #198754;
}

.step-line {
    flex: 1;
    height: 3px;
    background-color: #e9ecef;
    margin: -47px -100px 0px;
    position: relative;
    z-index: 1;
}

.step-line.completed {
    background-color: #198754;
}

.step-instructions {
    border-left: 4px solid #cc0000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.step-instructions h5 {
    color: #cc0000;
}

.step-instructions ul {
    margin-left: 1.5rem;
    margin-bottom: 0;
}

.step-instructions ul li {
    margin-bottom: 0.5rem;
    color: #495057;
}

@media (max-width: 768px) {
    .credipay-embedded {
        width: 100%;
        overflow: visible;
    }

    .credipay-embedded .container {
        padding: 1rem 10px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .payment-steps-container {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .payment-steps {
        flex-wrap: nowrap;
        gap: 0.25rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .payment-steps::-webkit-scrollbar {
        display: none;
    }

    .step-item {
        flex: 0 0 auto;
        min-width: 70px;
    }

    .step-line {
        display: block;
        height: 2px;
        margin: -46px -26px -20px;
        min-width: 20px;
        flex-shrink: 0;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
        border-width: 2px;
    }

    .step-label {
        font-size: 0.7rem;
        line-height: 1.2;
        text-align: center;
    }

    .card {
        border-radius: 8px;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-header h3 {
        font-size: 1.25rem;
    }

    .card-header h4 {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .step-instructions {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }

    .step-instructions h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .step-instructions p {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .step-instructions ul {
        font-size: 0.8125rem;
        margin-left: 1.25rem;
    }

    .form-control {
        font-size: 16px !important;
        padding: 0.625rem 0.75rem;
        min-height: 44px;
        -webkit-appearance: none;
        appearance: none;
    }

    .slim-input {
        padding: 0.75rem 0.75rem !important;
        font-size: 16px !important;
        min-height: 44px;
        -webkit-appearance: none;
        appearance: none;
        margin-bottom: 0.5rem;
    }

    .slim-input:focus {
        font-size: 16px !important;
    }

    input::placeholder,
    .slim-input::placeholder {
        font-size: 14px;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    .credit-item {
        margin-bottom: 10px;
    }

    .credit-header {
        padding: 12px;
    }

    .credit-content {
        padding: 0 12px 12px 12px;
    }

    .payment-option-btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .manual-amount-input {
        font-size: 0.9375rem;
        padding: 0.5rem 0.75rem;
    }

    .payment-summary {
        min-height: auto;
        margin-top: 1rem;
        border-radius: 8px;
    }

    .payment-summary-header {
        padding: 1rem;
    }

    .payment-summary-header h4 {
        font-size: 1.125rem;
    }

    .payment-summary-body {
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .summary-credit-item {
        padding: 8px;
        font-size: 0.875rem;
    }

    .summary-credit-item strong {
        font-size: 1rem;
    }

    #summaryTotalAmount {
        font-size: 1.25rem;
    }

    .flex-col {
        gap: 1rem;
    }

    .gap-6 {
        gap: 1.5rem;
    }

    .gap-4 {
        gap: 1rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1.125rem;
    }

    .text-sm {
        font-size: 0.8125rem;
    }

    .d-grid {
        gap: 0.75rem;
    }

    .mb-4 {
        margin-bottom: 1rem;
    }

    .mt-4 {
        margin-top: 1rem;
    }

    .p-3 {
        padding: 0.75rem;
    }

    #processingMessage h5 {
        font-size: 1.125rem;
    }

    #resultMessage h4 {
        font-size: 1.25rem;
    }

    #resultMessage .bi {
        font-size: 3rem !important;
    }

    .spinner-border {
        width: 2.5rem;
        height: 2.5rem;
    }

    .w-full {
        margin-bottom: 0.5rem;
    }

    .rounded-xl {
        border-radius: 0.5rem;
    }

    .rounded-t-xl,
    .rounded-b-xl,
    .rounded-tl-xl,
    .rounded-tr-xl,
    .rounded-bl-xl,
    .rounded-br-xl {
        border-radius: 0.5rem;
    }

    .flex.-space-x-px>.group {
        flex: 1;
    }

    .flex.-space-x-px>.group:first-child {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .flex.-space-x-px>.group:last-child {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .flex.-space-x-px>.group:not(:first-child):not(:last-child) {
        border-radius: 0;
    }

    .flex.-space-x-px {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .flex.-space-x-px>.group {
        width: 100% !important;
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }

    .flex.-space-x-px>.group:first-child {
        border-radius: 0.375rem !important;
    }

    .flex.-space-x-px>.group:last-child {
        border-radius: 0.375rem !important;
        margin-bottom: 0;
    }

    .group.relative.w-full {
        margin-bottom: 0;
    }

    .flex.-space-x-px>.group input {
        border-radius: 0.375rem !important;
    }

    .rounded-bl-xl,
    .rounded-br-xl {
        border-radius: 0.375rem !important;
    }

    .rounded-t-xl {
        border-bottom-left-radius: 0.375rem !important;
        border-bottom-right-radius: 0.375rem !important;
    }

    .rounded-b-xl {
        border-top-left-radius: 0.375rem !important;
        border-top-right-radius: 0.375rem !important;
    }
}

@media (max-width: 480px) {
    .payment-steps {
        gap: 0.15rem;
        padding-top: 0.5rem;
    }

    .step-item {
        min-width: 60px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-line {
        min-width: 15px;
        margin: -26px -30px 0;
    }

    .card-header h3 {
        font-size: 1.125rem;
    }

    .container {
        padding: 8px;
    }

    .payment-steps-container {
        padding: 0.75rem;
    }

    .credit-display-amount,
    .credit-amount {
        font-size: 0.75rem;
    }

    .btn-lg {
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    button,
    .btn {
        -webkit-tap-highlight-color: transparent;
    }

    .credit-header {
        touch-action: manipulation;
        min-height: 44px;
    }

    .payment-option-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
}


.joinchat__button,
.joinchat__badge,
.joinchat__chatbox {
    display: none;
}