#cccard-form .p-Grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

#cccard-form .p-GridCell {
    padding: 0 8px;
    box-sizing: border-box;
}

#cccard-form .p-GridCell--12 {
    width: 100%;
}

@media (min-width: 768px) {
    #cccard-form .p-GridCell--sm6 {
        width: 50%;
    }
}

#cccard-form .p-Field {
    margin-bottom: 16px;
}

#cccard-form .p-FieldLabel {
    font-weight: 500;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
    color: #424770;
}

#cccard-form .p-Select, .p-Input {
    position: relative;
}

#cccard-form .p-Select-select, .p-Input-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    background-image: none !important;
    background-position: initial !important;
    background-repeat: initial !important;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 40px 0 12px !important;
    width: 100%;
    font-size: 16px;
    line-height: 50px !important;
    color: #32325d;
    box-sizing: border-box;
    transition: background 0.15s ease, border 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02);
}

#cccard-form .p-Select-select:focus, .p-Input-input:focus {
    outline: none;
    border-color: #80bdff; /* Blue border on focus */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .25);
}

#cccard-form .p-InputIcon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#cccard-form .p-InputIcon svg {
    width: 0.8em;
    height: 0.8em;
}

#cccard-form :root {
    --colorIconChevronDown: #32325d;
}

/*#cccard-form .u-mt-grid {
    margin-top: 16px;
}
*/
#cccard-form .error-message {
    color: #df1b41; /* Red text for error message */
    font-size: 15px;
    margin-top: 4px;
    display: none; /* Initially hidden */
}
#cccard-form .error-message.visible {
    display: block; /* Show error messages when visible */
}

#cccard-form input.error {
    color: red; /* Turns input text red */
    border-color: #df1b41; /* Red border */
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02), 0 0 0 1px #df1b41;
}


/* CSS to hide the ZIP code field */
.visibility-none {
    visibility: hidden;
    max-height: 1px !important;
}

#cccard-form .hidden {
    display: none;
}

/* CSS to make the country field full width */
#cccard-form .full-width {
    width: 100%;
}

#cccard-form .cccard-form-row {
    margin-bottom: 16px;
}

#cccard-form .cccard-form-row-inline {
    display: block;
    /*    justify-content: space-between;*/
}

#cccard-form .col-50 {
/*    width: 50%;*/
    display: inline-block;
}

#cccard-form .col-50-left {
    margin-right: 7px;
}

#cccard-form .col-50-right {
    margin-left: 7px;
}

#cccard-form label {
    font-weight: 500;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
    color: #424770;
}

#cccard-form .input-container {
    position: relative;
    height: 50px;
}

.cccard-container {
    container-type: inline-size;
}

#cccard-form input {
    background-color: white;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 12px !important;
    width: 100%;
    font-size: 16px;
    line-height: 50px !important;
    color: #32325d;
    box-sizing: border-box;
    transition: background 0.15s ease, border 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02);
}

#cccard-form input:focus {
    outline: none !important;
    border-color: #80bdff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .25) !important;
}

#cccard-form input::placeholder {
    color: #aab7c4;
}

#cccard-form input.error {
    color: red;
    border-color: #df1b41;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02), 0 0 0 1px #df1b41;
}

#cccard-form .card-brand-icon {
    vertical-align: middle;
}
#cccard-form .card-brand-icons {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: auto;
}

#cccard-form .card-brand-icon {
    display: block;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-left: 0;
    transition: width 0.4s ease-in-out;
    opacity: 1;
}

#cccard-form .card-brand-icon.dynamic.active {
    margin-left: 4px;
}

#cccard-form .card-brand-icon:not(.active) {
    width: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    transition: width 0.4s ease-in-out;
}

#cccard-form .card-brand-icon.dynamic {
    transition: opacity 0s;
}

#cccard-form .card-brand-icon.dynamic:not(.active) {
    opacity: 0;
    width: 24px;
    position: absolute;
    right: 0;
}

#cccard-form .invalid-cvc-icon,
#cccard-form .invalid-card-icon {
    display: none;
    fill: red;
}

#cccard-form .invalid-cvc-icon.active,
#cccard-form .invalid-card-icon.active {
    display: block;
}

#cccard-form .cvc-wrapper {
    position: relative;
    height: 50px;
}

#cccard-form .cvc-icons {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    height: auto;
}

#cccard-form .cvc-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: none;
}

#cccard-form .invalid-cvc-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
}

#cccard-form .cvc-icon.active {
    display: block;
}

#cccard-form #pay-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #635bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    overflow: hidden;
    height: 44px;
}

#cccard-form .lock-icon {
    display: none;
}

#cccard-form #pay-button:hover:not(:disabled) {
    background-color: #5851e6;
}

#cccard-form #pay-button:focus:not(:disabled) {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99,91,255,0.2);
}

#cccard-form #pay-button:active:not(:disabled) {
    background-color: #4f47d8;
}

#cccard-form #pay-button:disabled {
    background-color: #e0e0e0; /* Grey background to indicate disabled state */
    color: #a0a0a0; /* Light grey text color */
    cursor: not-allowed;
}
.SubmitButton--disabled {
    background-color: #e0e0e0 !important; /* Same grey background as above */
    color: #a0a0a0 !important; /* Same light grey text color */
}

.SubmitButton--disabled .SubmitButton-IconContainer {
    display: none;
}

#cccard-form .SubmitButton-IconContainer {
    position: absolute;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

#cccard-form .Icon {
    width: 100%;
    height: 100%;
}

#cccard-form .Icon svg {
    width: 100%;
    height: 100%;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

#cccard-form .Icon--loading svg {
    animation: rotate 1s linear infinite;
}

#cccard-form .Icon--loading circle {
    stroke-dasharray: 60;
    stroke-dashoffset: 20;
    stroke-linecap: round;
}

#cccard-form .SubmitButton--success {
    background-color: #24b47e !important;
    transition: background-color 0.3s ease;
}

#cccard-form .SubmitButton--success span {
    display: none;
}

#cccard-form .SubmitButton--success .SubmitButton-IconContainer {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 28.8px;
    height: 28.8px;
}

#cccard-form .SubmitButton-CheckmarkIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#cccard-form .SubmitButton-CheckmarkIcon svg path.checkmark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmark 0.3s ease-in-out forwards;
}

@keyframes checkmark {
    0% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

#cccard-form .error-message {
    color: #df1b41;
    font-size: 15px;
    margin-top: 4px;
    display: none; /* Initially hidden */
    line-height: 1.3;
    word-wrap: break-word;
}

#cccard-form .input-container {
    position: relative;
    margin-bottom: 5px; /* Increase bottom margin to accommodate error messages */
}

#cccard-form .col-50-1 {
    margin-right: 5px;
}
#cccard-form .col-50-1,
#cccard-form .col-50-2 {
    width: calc(50% - 5px);
}

#cccard-form .col-50-2 {
    margin-left: 5px;
}

.cccard-layout-compact #cccard-form .cccard-form-row {
    margin-bottom: 12px;
}

.cccard-layout-compact #cccard-form label,
.cccard-layout-compact #cccard-form .p-FieldLabel {
    margin-bottom: 7px;
}

.cccard-layout-compact #cccard-form .cccard-form-row-inline {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cccard-layout-compact #cccard-form .cccard-form-row-inline .col-50 {
    width: calc(50% - 7px);
    margin-left: 0;
    margin-right: 0;
}

.cccard-layout-compact #cccard-form .col-50-Col-1,
.cccard-layout-compact #cccard-form .col-50-Col-2 {
    width: calc(50% - 7px);
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.cccard-layout-compact #cccard-form .p-GridCell--sm6 {
    width: 50%;
}

.cccard-layout-mobile #cccard-form .cccard-form-row-inline {
    display: block;
}

.cccard-layout-mobile #cccard-form .cccard-form-row-inline .col-50,
.cccard-layout-mobile #cccard-form .p-GridCell--sm6 {
    width: 100%;
}

@container (min-width: 300px) and (max-width: 665px) {
    #cccard-form .cccard-form-row {
        margin-bottom: 12px;
    }

    #cccard-form .input-container {
        margin-bottom: 0;
    }

    #cccard-form .cccard-form-row-inline {
        display: flex;
        align-items: flex-start;
        gap: 14px;
    }

    #cccard-form .cccard-form-row-inline .col-50 {
        width: calc(50% - 7px);
        margin-left: 0;
        margin-right: 0;
    }

    #cccard-form .col-50-Col-1,
    #cccard-form .col-50-Col-2 {
        width: calc(50% - 7px);
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
    }

    #cccard-form .p-GridCell--sm6 {
        width: 50%;
    }
}

@media (max-width: 600px) {
    @container (max-width: 419px) {
        #cccard-form .cccard-form-row-inline {
            display: block;
        }

        #cccard-form .cccard-form-row-inline .col-50,
        #cccard-form .p-GridCell--sm6 {
            width: 100%;
        }
    }
}

/* media queries */
#cccard-form .col-50-Col-1 {
    margin-bottom: 16px;
    width: 100%;
}
#cccard-form .col-50-Col-2 {
    width: 100%;
    margin-left: 0;
}
#cccard-form .cccard-cccard-form-row-1-col,
#cccard-form .cccard-cccard-form-row-2-col {
    width: 50%;
    width: 50%;
    display: inline-block;
    vertical-align: top;
}
#cccard-form .cccard-cccard-form-row-2-col .card-cvc-50 {
    vertical-align: top;
}

#cccard-form .cccard-cccard-form-row-1-col {
    margin-right: 2%;
    width: 48%;
}
#cccard-form .cccard-cccard-form-row-2-col {
    margin-bottom: 0;
    width: 50%;
}
#cccard-form .cccard-cccard-form-row-2-col .col-50 {
    width: 48%;
}
#cccard-form .cccard-cccard-form-row-2-col .col-50-1 {
    margin-left: 0;
    margin-right: 0;
}
#cccard-form .cccard-cccard-form-row-2-col .col-50-2 {
    margin-left: 4%;
    margin-right: 0;
}
/*#cccard-form .card-brand-icons-1 {
    top: 7px;
}*/

#cccard-root div.cccard-form-row {
    padding: 0;
}

.cccard-tokenized-container {
    visibility: visible;
}

.cccard-tokenized-panel {
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    background: #fff;
    padding: 14px;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02);
}

.cccard-tokenized-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cccard-tokenized-badge {
    border-radius: 999px;
    background: #eef6ff;
    color: #075985;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
}

.cccard-tokenized-title {
    color: #1f2a44;
    font-size: 15px;
    font-weight: 700;
}

.cccard-tokenized-frame {
    border: 1px solid #d8dee8;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

.cccard-tokenized-frame-title {
    background: #f5f7fb;
    border-bottom: 1px solid #d8dee8;
    color: #526070;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
}

.cccard-tokenized-card-preview {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.cccard-tokenized-card-preview span {
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    color: #6b7280;
    display: block;
    font-size: 13px;
    padding: 11px 12px;
}

.cccard-tokenized-steps {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.cccard-tokenized-steps div {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 22px 1fr;
}

.cccard-tokenized-steps strong {
    align-items: center;
    background: #f1f5f9;
    border-radius: 999px;
    color: #334155;
    display: flex;
    font-size: 12px;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.cccard-tokenized-steps span {
    color: #475569;
    font-size: 13px;
    line-height: 1.35;
}

.cccard-tokenized-session-link {
    align-items: center;
    background: #1f2a44;
    border-radius: 4px;
    color: #fff;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    text-decoration: none;
}

.cccard-tokenized-session-link:hover,
.cccard-tokenized-session-link:focus {
    color: #fff;
    text-decoration: none;
}

.cccard-origin-stack {
    display: grid;
    gap: 7px;
    margin: 4px 0 14px;
}

.cccard-origin-layer {
    align-items: center;
    border: 1px solid #d8e1ec;
    border-radius: 7px;
    display: grid;
    gap: 10px;
    grid-template-columns: 34px 1fr;
    min-height: 58px;
    padding: 9px 11px;
    position: relative;
}

.cccard-origin-layer + .cccard-origin-layer::before {
    background: #9eb2c9;
    content: "";
    height: 8px;
    left: 27px;
    position: absolute;
    top: -8px;
    width: 1px;
}

.cccard-origin-index {
    align-items: center;
    background: #eef4fb;
    border-radius: 6px;
    color: #135f9c;
    display: flex;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
    height: 32px;
    justify-content: center;
}

.cccard-origin-layer strong,
.cccard-origin-layer small {
    display: block;
}

.cccard-origin-layer strong {
    color: #1f2a44;
    font-size: 13px;
}

.cccard-origin-layer small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 2px;
}

.cccard-origin-authorize {
    border-color: #b9d9d0;
    background: #f3faf7;
}

.cccard-origin-authorize .cccard-origin-index {
    background: #dff3ea;
    color: #18745a;
}

.cccard-sandbox-readiness {
    align-items: center;
    background: #fff8e6;
    border-radius: 7px;
    color: #805b09;
    display: flex;
    font-size: 12px;
    font-weight: 650;
    gap: 8px;
    padding: 10px 11px;
}

.cccard-sandbox-readiness.is-ready {
    background: #eaf7f1;
    color: #18745a;
}

.cccard-sandbox-dot {
    background: currentColor;
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.cccard-tokenized-note {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    margin: 12px 1px 0;
}
