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

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

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

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

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

.mb-5 {
    margin-bottom: 3rem !important;
}

.app-ctp-header {
    display: flex;
    align-items: flex-start;
}

.app-ctp-header-left {
    display: flex;
}

.app-ctp-header-left .separator {
    border-right: 1px solid #ccc;
    display: block;
    margin-left: 5px;
    margin-right: 5px;
    height: auto;
}

.app-ctp-header-left img:not(:first-child) {
    background: #ffffff;
    box-shadow: 0 0px 1px 0 rgba(0, 0, 0, .3);
    border-radius: 3px;
}

.app-ctp-header .app-ctp-header-left {
    flex-grow: 1;
}

#app-ctp-loading-animation p, #ctp-skip-button p {
    white-space: normal;
}

.app-ctp-loader .loader {
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    mix-blend-mode: multiply;
}

.app-ctp-add .app-ctp-add-header {
    display: flex;
}

.app-ctp-add .app-ctp-add-headertext {
    flex-grow: 1;
    margin-left: 10px;
    border-left: 1px solid #ccc;
    padding-left: 10px;
    line-height: 1.2;
}

.app-ctp-add .app-ctp-add-body {
    margin-top: 15px;
}

.app-ctp-add.collapsed .app-ctp-add-body {
    display: none;
}

.app-ctp-add #app-ctp-add-review .panel-body span {
    display: block;
}

.app-ctp-add #app-ctp-add-review .panel-body span#app-ctp-add-review-fullname {
    line-height: 25pt;
    font-weight: bold;
}

.app-ctp-add .px-checkbox {
    padding-left: 0 !important;
    margin-bottom: 0;
}

.app-ctp-add .px-checkbox input[type=checkbox] + .outer {
    position: relative;
}

.app-ctp-add .px-checkbox > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.app-ctp-add .form-control {
    background: #f9f9f9; /** this color depends on the look and feel profile - needs do be changed during implementation by stefan burri*/
    margin-bottom: 5px;
}

.app-ctp-otp-codefields {
    display: flex;
    gap: 10px;
}

.app-ctp-otp-codefields input.form-control {
    border: 1px solid #ccc !important;
    border-radius: 3px;
    font-size: 20px;
    flex-basis: 40px;
    text-align: center;
    padding-left: 3px;
    padding-right: 3px;
}

.app-ctp-otp-codefields input::-webkit-outer-spin-button,
.app-ctp-otp-codefields input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.app-ctp-otp-codefields input[type=number] {
    -moz-appearance: textfield;
}

.app-ctp-otp-codesection {
    max-width: 280px;
    margin: 25px auto;
}

.app-ctp-otp-codesection label {
    font-weight: normal;
}

.app-ctp-otp-codefields.has-error {
    animation: shake 0.15s ease-in-out 0s 2;
}

.app-ctp-otp-codefields.has-error .form-control, .app-ctp-otp-codefields input:invalid {
    box-shadow: 0 0 0.6rem rgb(255 0 0 / 25%);
    border-color: #a94442 !important;
}

@keyframes shake {
    0% {
        margin-left: 0rem;
    }
    25% {
        margin-left: 0.5rem;
    }
    75% {
        margin-left: -0.5rem;
    }
    100% {
        margin-left: 0rem;
    }
}

.app-ctp-cards .list-group {
    margin-bottom: 5px;
}

.app-ctp-cards .list-group-item {
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.app-ctp-cards .list-group-item.invalid-card {
    opacity: 0.4;
    cursor: not-allowed;
}

.app-ctp-cards .list-group-item:first-of-type {
    border-top-left-radius: 7.5px;
    border-top-right-radius: 7.5px;
}

.app-ctp-cards .list-group-item:last-of-type {
    border-bottom-left-radius: 7.5px;
    border-bottom-right-radius: 7.5px;
}

.app-ctp-cards.reduced-view .list-group-item:nth-child(2) {
    border-bottom-left-radius: 7.5px;
    border-bottom-right-radius: 7.5px;
}

.app-ctp-cards.reduced-view .list-group-item-only-expanded {
    display: none;
}

.app-ctp-cards.reduced-view #app-ctp-cards-show-less {
    display: none;
}

.app-ctp-cards:not(.reduced-view) #app-ctp-cards-show-more {
    display: none;
}

.app-ctp-cards .list-group-item:hover {
    /**
    there should only be a hover state when there are multiple cards available. Don't use the hover state when the user only has 1 card
     */
    box-shadow: 0 4px 15px 0 rgb(0 0 0 / 10%), 0 1px 3px 0 rgb(0 0 0 / 10%);
}

.app-ctp-cards .app-ctp-cards-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.app-ctp-cards .app-ctp-cards-details {
    display: flex;
    gap: 10px;
    line-height: 1.2;
    align-items: center;
}

.app-ctp-cards img {
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 56px;
    height: auto;
}

.app-ctp-cards input[type=radio] {
    margin: 0 !important;
    outline: none;
}

#app-px-supportedbrands {
    margin-top: 10px;
    margin-bottom: 15px;
    justify-content: center;
    display: flex;
    gap: 5px;
}
#app-px-supportedbrands img {
    border-radius: 3px;
    width: auto;
    height: 24px;
    display: none;
}

.app-ctp-otp-link {
    cursor: pointer;
}

.app-ctp-switch .app-ctp-switch-footer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    line-height: 1.2;
}

.app-ctp .popover, .app-ctp-add .popover {
    min-width: calc(100% - 30px);
    left: 15px !important;
}
.app-ctp .popover ul, .app-ctp-add .popover ul {
    padding-left: 15px;
}
.app-ctp .popover.top>.arrow {
    left: auto !important;
}
.app-ctp .popover.bottom {
    margin-top: 5px !important;
}
a[data-toggle=ctp-explainer] {
    cursor: pointer;
}
