@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.kenpesa-stk-form {
    background-color: #ffffff;
    display: flex;
    width: 300px;
    padding: 22px 18px;
    margin: 15px auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.kenpesa-stk-form * {
    box-sizing: border-box;
}

.kenpesa-stk-form h4 {
    font-family: inherit !important;
    font-weight: 600;
}

.kenpesa_logo {
    display: flex;
    padding: 8px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.kenpesa-stk-form img {
    width: 110px;
}

.kenpesa-stk-form .kenpesa-amt {
    background-color: #f8fafc;
    width: 100%;
    display: block;
    padding: 14px;
    text-align: center;
    margin: auto;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 10px;
    color: #475569;
    border: 1px dashed #e2e8f0;
}

.kenpesa-how-to-instructions {
    background-color: #f8fafc;
    width: 100%;
    display: block;
    padding: 14px 10px;
    text-align: left;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.kenpesa-how-to-instructions ol {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
}

.kenpesa-how-to-instructions li {
    margin-bottom: 8px;
}

.kenpesa-how-to-instructions li:last-child {
    margin-bottom: 0;
}

.kenpesa-warn, #result-error-partial-payment {
    color: #d97706;
    font-size: 13px;
    font-weight: 500;
    margin: 5px 0;
}

.kenpesa-danger, #result-error, #result-error-stk {
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    margin: 5px 0;
}

.kenpesa-time {
    color: #16a34a;
    font-weight: 700;
}

#mpesa_codes {
    text-transform: uppercase;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 100%;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

#mpesa_codes:focus {
    border-color: #39b54a;
    box-shadow: 0 0 0 3px rgba(57, 181, 74, 0.1);
}

.kenpesa-stk-form .kenpesa-paybill-account, .kenpesa-phonenumber {
    background-color: #ecfdf5;
    width: 100%;
    display: block;
    text-align: left;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1fae5;
    color: #065f46;
    font-size: 13px;
    line-height: 1.5;
}

.goto, .go-to-mpesa-paybill, #go-to-mpesa-express {
    font-size: 13px;
    color: #2563eb !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.goto:hover, .go-to-mpesa-paybill:hover, #go-to-mpesa-express:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

.kenpesa-stk-form .kenpesa-pay {
    font-weight: 600;
    font-size: 20px;
}

.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #475569;
    gap: 8px;
}

.countdown-container .fa-hourglass {
    animation: rotate 2s linear infinite;
    color: #39b54a;
}

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

.float-right {
    float: right;
}

.copy-tooltip {
    position: absolute;
    padding: 5px 10px;
    background-color: #0f172a;
    color: #fff;
    border-radius: 6px;
    font-size: 11px;
    text-align: center;
    display: none;
    z-index: 1000;
}

.kenpesa-flag-icon {
    width: 24px;
    height: auto;
    margin-right: 5px;
}

.kenpesa-country-code {
    margin-right: 5px;
    font-weight: bold;
}

.kenpesa-input-container {
    text-align: center;
    margin-top: 10px;
    width: 100%;
}

.kenpesa-input-container input {
    display: flex;
    height: 42px;
    padding: 10px 14px;
    align-items: center;
    gap: 10px;
    width: 100%;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.kenpesa-input-container input:focus {
    border-color: #39b54a !important;
    box-shadow: 0 0 0 3px rgba(57, 181, 74, 0.1);
}

.kenpesa-stk-form td {
    text-align: center;
    border: none;
    padding: 8px 0px !important;
}

.kenpesa-stk-form table, .kenpesa-stk-form td {
    border: none;
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.kenpesa-center {
    text-align: center !important;
}

.kenpesa-btn-green {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #ffffff !important;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #39b54a !important;
    border: none !important;
    padding: 8px 16px;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 8px !important;
    height: 46px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(57, 181, 74, 0.15);
}

.kenpesa-btn-green:hover {
    background-color: #2e963b !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(57, 181, 74, 0.2);
}

.kenpesa-btn-clear {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    color: #475569 !important;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 8px !important;
    height: 46px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kenpesa-btn-clear:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

.kenpesa-lipa-title {
    color: #475569;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kenpesa-how-to-pay {
    color: #2563eb !important;
    font-size: 12px;
    text-align: left;
}

.kenpesa-how-to-pay a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.kenpesa-how-to-pay a:hover {
    text-decoration: underline;
}

.copy-btn {
    color: #64748b;
    text-decoration: none !important;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    color: #39b54a;
    background: #d1fae5;
}

/* Alert Boxes Styling overrides */
.info, .warning, .success, .error {
    padding: 10px 14px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    width: 100%;
}

.info {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.warning {
    border: 1px solid #fef08a;
    background: #fefbeb;
    color: #854d0e;
}

.success {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.error {
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}