/* Buttons */
.btn-primary {
    background-color: #3479B6 !important;
}

.btn-secondary2 {
    background-color: white;
    border-color: var(--ph-color-primary-600);
    color: var(--ph-color-primary-600) !important;
    border-width: 1px !important;
}

a.btn-secondary2:hover {
    color: #e88c07 !important;
}

.text-primary {
    color: #3479B6 !important;
}

.btn-pay {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    width: 100%;
}

/* Cards */
.card-title h3 {
    font-size: 1.3rem;
    margin-top: 37px;
    margin-bottom: 10px;
    font-weight: 500;
}

.card-img-top {
    border-radius: 15px;
}

.card-text {
    font-size: 1.1rem;
    font-weight: normal;
    line-height: 28px;
    color: #4a4a4a;
}

.card-img-cat {
    width: 5em;
    max-width: 128px;
}

.card-profile {
    transition: transform .1s;
    border-color: lightgrey;
}

    .card-profile::after {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .1), 0 8px 8px 0 rgba(0, 0, 0, .1);
        content: '';
        opacity: 0;
        z-index: -1;
    }

    .card-profile:hover,
    .card-profile:focus {
        transform: scale3d(1, 1, 1);
    }

    .card-profile::after {
        opacity: 1;
    }

/* Forms (inputs, radios, custom selects) */
/*disable html5 spinner in number textbox*/
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-control-danger, .form-control-success {
    padding-right: 2.25rem !important;
    background-repeat: no-repeat !important;
    background-position: center right .5625rem !important;
    -webkit-background-size: 1.125rem 1.125rem !important;
    background-size: 1.125rem 1.125rem !important;
}

.form-group .form-control-success {
    background-image: url(/images/icons/check.png) !important;
}

.form-group .form-control-danger {
    background-image: url(/images/icons/cross.png) !important;
}

.radio {
    margin: 1rem;
}

    .radio input[type="radio"] {
        display: none;
        opacity: 0;
    }

        .radio input[type="radio"] + .radio-label:before {
            content: '';
            background: #f4f4f4;
            border-radius: 100%;
            border: 1px solid #b4b4b4;
            display: inline-block;
            width: 1.4em;
            height: 1.4em;
            position: relative;
            margin-right: 1rem;
            vertical-align: top;
            cursor: pointer;
            text-align: center;
            transition: all 250ms ease;
        }

        .radio input[type="radio"]:checked + .radio-label:before {
            background-color: #007e68;
            box-shadow: inset 0 0 0 5px #f4f4f4;
        }

        .radio input[type="radio"]:focus + .radio-label:before {
            outline: none;
            border-color: #007e68;
        }

        .radio input[type="radio"]:disabled + .radio-label:before {
            box-shadow: inset 0 0 0 5px #f4f4f4;
            content: '';
            background: whitesmoke;
            border-color: whitesmoke;
        }

        .radio input[type="radio"] + .radio-label:empty:before {
            margin-right: 0;
        }

        .radio input[type="radio"] + .radio-label {
            width: 100%;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
        }

.address .radio-inline {
    margin-right: 1.5rem;
    color: #494848;
    display: inline !important;
}

.custom-selector {
    height: auto;
    padding: 0;
    position: relative;
}

    .custom-selector select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        /* Add some styling */
        display: block;
        width: 100%;
        max-width: 200px;
        float: right;
        padding: 5px 30px 4px 15px;
        font-size: 0.8rem;
        line-height: 1.75;
        color: #333;
        background-color: white;
        border: 1px solid #ced4da;
        border-radius: .25rem;
        -ms-word-break: normal;
        word-break: normal;
        text-align-last: center;
    }

        /* For IE10 */
        .custom-selector select::-ms-expand {
            display: none;
        }

    /* Arrow rendered by an actual <i class="fas fa-chevron-down"> in the markup (Font Awesome 7
       moved glyph codepoints into a --fa custom property its own classes consume, so a bare
       CSS content:'\f078' hack no longer renders anything). */
    .custom-selector-arrow {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #adb5bd;
        font-size: 0.7rem;
        pointer-events: none;
    }

/* Search box */
#custom-search-input {
    padding: 3px;
    border: solid 1px #E4E4E4;
    border-radius: 6px;
    background-color: #fff;
}

    #custom-search-input input {
        border: 0;
        box-shadow: none;
    }

        #custom-search-input input::-webkit-input-placeholder {
            font-size: 0.95rem;
            font-style: italic;
        }

    #custom-search-input button {
        margin: 2px 0 0 0;
        background: none;
        box-shadow: none;
        border: 0;
        color: #666666;
        padding: 0 8px 0 10px;
        border-left: solid 1px #ccc;
    }

        #custom-search-input button:hover {
            border: 0;
            box-shadow: none;
            border-left: solid 1px #ccc;
        }

    #custom-search-input .fa-search {
        font-size: 20px;
    }

/* Loading spinner */
/* Start 'Page loading' gif */
@keyframes lds-rolling {
    0% {
        -webkit-transform: translate(-50%, -50%) rotate(0deg);
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotate(360deg);
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@-webkit-keyframes lds-rolling {
    0% {
        -webkit-transform: translate(-50%, -50%) rotate(0deg);
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotate(360deg);
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.lds-rolling {
    position: relative;
    width: 30px;
    height: 30px;
    -webkit-transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
    transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
}

    .lds-rolling div,
    .lds-rolling div:after {
        position: absolute;
        width: 30px;
        height: 30px;
        border: 6px solid var(--ph-color-primary-600);
        border-top-color: transparent;
        border-radius: 50%;
    }

    .lds-rolling div {
        -webkit-animation: lds-rolling 1s linear infinite;
        animation: lds-rolling 1s linear infinite;
        top: 15px;
        left: 15px;
    }

        .lds-rolling div:after {
            -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
        }
/* End 'Page loading' gif */

/* Footer */
.page-prefooter h2 {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
}

.page-prefooter a {
    color: white;
}

.div-footer-paymenticons span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 70px;
    margin-right: 15px;
    border: 1px solid rgba(198, 198, 198, 0.67);
    border-radius: 3px;
    background: white;
}

.div-footer-paymenticons img {
    max-width: 90%;
    max-height: 80%;
    background: white;
}

/* Misc */
ul.address {
    margin-top: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blink_text {
    animation: 1s blinker linear infinite;
    -webkit-animation: 1s blinker linear infinite;
    -moz-animation: 1s blinker linear infinite;
    color: darkblue;
}

@-moz-keyframes blinker {
    0% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}

@-webkit-keyframes blinker {
    0% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}

@keyframes blinker {
    0% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}

.badge {
    cursor: pointer;
    background: rgb(243, 106, 90) none repeat scroll 0% 0% / auto padding-box border-box;
    border: 0px none rgb(255, 255, 255);
    margin: -25px -13px 0px -10px;
    color: #fff;
    vertical-align: middle;
    border-radius: 12px !important;
}

.note.note-success {
    background-color: #c0edf1;
    border-color: #58d0da;
    color: #000;
}

.note {
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
    border: 0;
    margin: 0 0 20px;
    padding: 15px 30px 15px 15px;
}

a.invisible-hyperlink,
a.invisible-hyperlink:hover {
    text-decoration: none;
    color: inherit;
}

.table-hover tr:hover td {
    background-color: #FBFCFC;
}

/* Invalid-field attention glow (replaces jquery.pulsate) */
@keyframes pulsate-error-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
    25%, 75% { box-shadow: 0 0 12px 4px rgba(255, 0, 0, 0.65); }
    50% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.pulsate-error {
    animation: pulsate-error-glow 3s ease-in-out;
    border-radius: 4px;
}

/* Loading overlay (replaces jquery.blockui / LoadingOverlay plugin) */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #adb5bd;
    z-index: 1000;
}

/* File upload drop zone + previews (replaces bootstrap-fileinput) */
.file-upload-zone {
    border: 2px dashed #ced4da;
    border-radius: .375rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    background-color: #f8f9fa;
}

    .file-upload-zone.dragover {
        border-color: var(--ph-color-primary-600);
        background-color: #eef6ff;
    }

    .file-upload-zone .file-upload-title {
        font-weight: 500;
    }

    .file-upload-zone .file-upload-subtitle {
        font-size: 0.85rem;
        color: #6c757d;
    }

.file-upload-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .75rem;
}

.file-upload-preview-item {
    position: relative;
    width: 100px;
    text-align: center;
}

    .file-upload-preview-item img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: .25rem;
        border: 1px solid #dee2e6;
    }

    .file-upload-preview-item .fa-file-alt {
        width: 100px;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #dee2e6;
        border-radius: .25rem;
        color: #6c757d;
    }

    .file-upload-preview-item .file-upload-remove {
        position: absolute;
        top: -6px;
        right: -6px;
        background-color: white;
        border: 1px solid #dee2e6;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        padding: 0;
    }

/* Image picker grid (replaces image-picker.min.js) */
.image-picker-list {
    margin-top: .5rem;
}

.image-picker-item {
    cursor: pointer;
    margin-bottom: 1rem;
}

    .image-picker-item .image-picker-thumb {
        height: 140px;
        background-size: cover;
        background-position: center;
        border-radius: .375rem;
        border: 3px solid transparent;
    }

    .image-picker-item.selected .image-picker-thumb {
        border-color: var(--ph-color-primary-600);
    }

.touchspin-group {
    flex-wrap: nowrap;
}

    .touchspin-group button {
        flex: 0 0 auto;
        width: 32px;
        padding: 0.375rem 0;
    }

    .touchspin-group input {
        min-width: 0;
        text-align: center;
    }
