#pok-payment-container * {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, sans-serif, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
}

#pok-payment-container {
    position: relative;
    min-height: 350px;
}

.pok-payment-loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

.pok-payment-form {
    background: white;
    width: 100%;
    max-width: 650px;
    margin: 10px auto;
    padding: 40px 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    grid-gap: 1rem;
    gap: 1rem;
    animation: slideInFromBottom 0.4s ease-out;
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.pok-payment-input-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 1rem;
    gap: 1rem;
}

.pok-payment-relative {
    position: relative;
}

.pok-payment-label {
    position: absolute;
    transition-duration: 300ms;
    color: rgba(31, 41, 55, 1);
    top: 0.375rem;
    left: 0.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

.pok-payment-input {
    display: block;
    width: 100%;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
    border-radius: 0.5rem;
    background-color: transparent;
    appearance: none;
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0);
    height: 2.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    padding-top: 2.25rem;
    padding-bottom: 0.875rem;
    color: rgba(17, 24, 39, 1);
}

.pok-payment-input-error {
    border-color: #dc3545;
}

.pok-payment-label-error {
    color: #dc3545;
}

.pok-payment-input:focus {
    border-color: rgba(0, 98, 165, 1);
}

.pok-payment-checkbox-container {
    width: 100%;
    display: flex;
    align-items: center;
}

.pok-payment-checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 3px;
    padding: 2px;
    cursor: pointer;
    position: relative;
}

.pok-payment-checkbox-container input[type="checkbox"]:checked {
    border-color: rgba(0, 98, 165, 1);
    background-color: rgba(0, 98, 165, 1);
}

.pok-payment-checkbox-container input[type="checkbox"]::before {
    content: "\2713";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: #fff;
}

.pok-payment-checkbox-container input[type="checkbox"]:checked::before {
    opacity: 1;
}

.pok-payment-checkbox-container label {
    margin-left: 0.5rem;
    font-weight: 700;
    cursor: pointer;
}

.pok-payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    background-color: #0062a5;
    color: #fff;
    font-size: 1.125rem;
    line-height: 1.75rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 138, 205, 0.2), 0 4px 8px rgba(0, 138, 205, 0.2);
}

.pok-payment-button:hover {
    background-color: #008acd;
}

.pok-payment-error-message {
    background-color: #dc354520;
    color: #dc3545;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
    font-weight: 500;
    border-radius: 2px;
    animation: slideInError 0.4s ease-out;
}

@keyframes slideInError {
    0% {
        transform: translateY(-10px);
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        max-height: 100px;
        padding-top: 12px;
        padding-bottom: 12px;
        margin-bottom: 10px;
    }
}

.pok-payment-spinner {
    border: 4px solid #fff;
    border-left-color: #0062a5;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-right: 5px;
    display: inline-block;
}

.pok-payment-loading .button-text {
    display: none;
}

.pok-payment-info-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    animation: fadeInScale 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pok-payment-info-icon {
    height: 5rem;
    width: 5rem;
    margin-bottom: 10px;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pok-payment-info-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 800;
    text-align: center;
    animation: slideInFromTop 0.5s ease-out 0.3s both;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pok-payment-info-message {
    font-size: 1rem;
    color: #898d9b;
    text-align: center;
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pok-payment-relative {
    position: relative;
}

.pok-payment-input-disabled {
    background-color: #f2f2f2;
    cursor: not-allowed;
}

.pok-payment-clear {
    position: absolute;
    top: 1.25rem;
    right: 0.75rem;
    cursor: pointer;
    color: #898d9b;
}

.pok-payment-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 14rem;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    margin-top: 0.25rem;
    border-radius: 0.5rem;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pok-payment-options-hidden {
    display: none;
}

.pok-payment-option {
    padding: 0.25rem 0.75rem;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pok-payment-option:hover {
    background: rgba(0, 138, 205, 0.1);
}

.pok-payment-option-selected {
    background-color: #0062a5;
    color: #fff;
}

.pok-payment-form-exit {
    animation: slideOutToTop 0.3s ease-in forwards;
}

@keyframes slideOutToTop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.pok-payment-info-container .pok-payment-info-icon img {
    animation: successPulse 2s ease-in-out infinite 1s;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}