.hostedb-payment-page .card {
    border-color: #d9dee7;
    border-radius: 0;
    box-shadow: none;
}

.hostedb-payment-page .card-header {
    min-height: 48px;
    padding: 13px 16px;
    border-bottom-color: #d9dee7;
    border-radius: 0;
    color: #202938;
}

.hostedb-payment-page .card-body {
    padding: 20px;
}

.hostedb-payment-page > [class*="col-"] {
    align-items: stretch;
}

.hostedb-paytr__form--client {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.hostedb-paytr__card-scene {
    width: min(100%, 420px);
    height: 224px;
    margin: 0 auto 24px;
    perspective: 1100px;
}

.hostedb-paytr__card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .2s ease;
}

.hostedb-paytr__card-scene:hover .hostedb-paytr__card {
    filter: drop-shadow(0 12px 18px rgba(17, 24, 39, .18));
}

.hostedb-paytr__card.is-flipped {
    transform: rotateY(180deg);
}

.hostedb-paytr__card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 25px;
    border: 1px solid #111720;
    border-radius: 3px;
    backface-visibility: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .11), transparent 27%),
        linear-gradient(135deg, #252f40 0%, #151c27 52%, #273244 100%);
    color: #fff;
}

.hostedb-paytr__card-front::before {
    position: absolute;
    top: -80%;
    left: -55%;
    width: 46%;
    height: 250%;
    transform: rotate(22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent);
    content: "";
    animation: hostedb-card-shine 5.5s ease-in-out infinite;
}

.hostedb-paytr__card-front::after {
    position: absolute;
    top: -110px;
    right: -85px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, .07);
    content: "";
    transform: rotate(32deg);
}

.hostedb-paytr__card-back {
    justify-content: flex-start;
    padding: 24px 0;
    transform: rotateY(180deg);
}

.hostedb-paytr__magnetic {
    width: 100%;
    height: 48px;
    margin-top: 10px;
    background: #070a0f;
}

.hostedb-paytr__signature {
    display: flex;
    height: 42px;
    align-items: center;
    justify-content: flex-end;
    margin: 22px 25px 0;
    padding: 0 11px;
    background: repeating-linear-gradient(0deg, #f4f5f7 0 4px, #e5e8ed 4px 7px);
    color: #202938;
}

.hostedb-paytr__signature span {
    margin-right: auto;
    color: #667085;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .7px;
}

.hostedb-paytr__signature strong {
    padding: 4px 7px;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    letter-spacing: 1px;
}

.hostedb-paytr__card-back > small {
    margin: auto 25px 0;
    color: rgba(255, 255, 255, .45);
    font-size: 8px;
    letter-spacing: 1px;
}

.hostedb-paytr__card-top,
.hostedb-paytr__card-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.hostedb-paytr__brand {
    min-width: 76px;
    color: rgba(255, 255, 255, .9);
    text-align: right;
    font-size: 13px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: .8px;
}

.hostedb-paytr__chip {
    position: relative;
    display: block;
    width: 41px;
    height: 30px;
    overflow: hidden;
    border: 1px solid #aa9e82;
    border-radius: 2px;
    background: linear-gradient(135deg, #eee2c5, #b8a77e);
}

.hostedb-paytr__chip::before,
.hostedb-paytr__chip::after {
    position: absolute;
    content: "";
}

.hostedb-paytr__chip::before {
    top: 50%;
    right: 0;
    left: 0;
    border-top: 1px solid rgba(84, 73, 48, .35);
}

.hostedb-paytr__chip::after {
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 1px solid rgba(84, 73, 48, .35);
}

.hostedb-paytr__card-number {
    position: relative;
    z-index: 1;
    margin: 25px 0 22px;
    color: #fff;
    font-size: clamp(20px, 3vw, 25px);
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    white-space: nowrap;
}

.hostedb-paytr__card-bottom > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.hostedb-paytr__card-bottom > div:first-child {
    flex: 1;
}

.hostedb-paytr__card-bottom small {
    color: rgba(255, 255, 255, .52);
    font-size: 8px;
    letter-spacing: .8px;
}

.hostedb-paytr__card-bottom span {
    overflow: hidden;
    color: rgba(255, 255, 255, .92);
    font-size: 11px;
    letter-spacing: .4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hostedb-paytr__network {
    position: relative;
    display: block !important;
    width: 42px;
    height: 26px;
    flex: 0 0 42px;
}

.hostedb-paytr__network i {
    position: absolute;
    top: 2px;
    width: 23px;
    height: 23px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
}

.hostedb-paytr__network i:first-child {
    left: 2px;
}

.hostedb-paytr__network i:last-child {
    right: 2px;
}

@keyframes hostedb-card-shine {
    0%, 55% { left: -55%; }
    78%, 100% { left: 135%; }
}

.hostedb-paytr__fields--client {
    margin-right: -7px;
    margin-left: -7px;
}

.hostedb-test-mode {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #d7dce4;
    background: #f7f8fa;
    color: #596579;
    font-size: 10px;
}

.hostedb-test-mode > strong {
    color: #273244;
    font-size: 11px;
}

.hostedb-test-mode > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
}

.hostedb-test-mode code {
    color: #344054;
    font-size: 10px;
    word-break: break-all;
}

.hostedb-form-error {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-color: #e1b8b8;
    background: #fff8f8;
    color: #8b2e2e;
    font-size: 11px;
}

.hostedb-paytr__fields--client > [class*="col-"] {
    padding-right: 7px;
    padding-left: 7px;
}

.hostedb-field {
    margin-bottom: 15px;
}

.hostedb-paytr__fields--client label {
    display: flex;
    min-height: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
}

.hostedb-paytr__fields--client label small {
    overflow: hidden;
    color: #8b95a5;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hostedb-paytr__fields--client .form-control {
    height: 46px;
    padding: 10px 12px;
    border-color: #cbd2dc;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #182230;
    font-size: 14px;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.hostedb-paytr__fields--client .form-control:hover {
    border-color: #aeb7c5;
    background: #fcfcfd;
}

.hostedb-paytr__fields--client .form-control:focus {
    border-color: #596579;
    background: #fff;
    box-shadow: inset 3px 0 0 #596579;
}

.hostedb-field__control {
    position: relative;
}

.hostedb-field__control--number .form-control {
    padding-right: 105px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .45px;
}

.hostedb-field__control--number > span {
    position: absolute;
    top: 1px;
    right: 1px;
    display: grid;
    width: 92px;
    height: 44px;
    place-items: center;
    border-left: 1px solid #d7dce4;
    background: #f7f8fa;
    color: #596579;
    font-size: 9px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: .5px;
    pointer-events: none;
}

.hostedb-paytr__submit--client {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 3px;
    padding: 11px 15px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
}

.hostedb-paytr__submit--client strong {
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, .26);
    font-size: 13px;
    font-weight: 700;
}

.hostedb-invoice-body {
    display: flex;
    min-height: 430px;
    flex-direction: column;
}

.hostedb-invoice-items {
    max-height: 360px;
    overflow-y: auto;
    color: #475467;
    font-size: 12px;
}

.hostedb-invoice-total {
    margin-top: auto;
    color: #182230;
    font-size: 15px;
}

@media (max-width: 575px) {
    .hostedb-payment-page .card-body {
        padding: 15px;
    }

    .hostedb-paytr__card-scene {
        height: 175px;
    }

    .hostedb-paytr__card-face {
        padding: 18px;
    }

    .hostedb-paytr__card-number {
        margin: 18px 0;
        font-size: 17px;
        letter-spacing: 1.2px;
    }

    .hostedb-paytr__card-back {
        padding: 18px 0;
    }

    .hostedb-paytr__magnetic {
        height: 38px;
        margin-top: 4px;
    }

    .hostedb-paytr__signature {
        margin: 16px 18px 0;
    }

    .hostedb-field__control--number .form-control {
        padding-right: 78px;
        font-size: 13px;
        letter-spacing: 0;
    }

    .hostedb-field__control--number > span {
        width: 68px;
    }

    .hostedb-paytr__fields--client label small {
        font-size: 8px;
    }

    .hostedb-invoice-body {
        min-height: 0;
    }

    .hostedb-test-mode > div {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hostedb-paytr__card {
        transition: none;
    }

    .hostedb-paytr__card-front::before {
        animation: none;
    }
}
