/* M-Pesa Payment Styles */

/* Wrapper styles */
.wc-mpesa-blocks-payment {
    border: transparent;
    background: transparent;
    border-radius: 8px;
}

/* Tab buttons */
.mpesa-tabs {
    display: flex;
    justify-content: flex-start;
}

.mpesa-tabs button {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-bottom: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    border-radius: 6px 6px 0 0;
    margin-right: 8px;
}

.mpesa-tabs button.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Tab content area */
.mpesa-tab-content {
    border: 1px solid #ccc;
    border-radius: 0 0 6px 6px;
    padding: 15px;
    background: #fafafa;
}

/* Form row */
.mpesa-form-row {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.mpesa-form-row label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.mpesa-form-row input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Error message */
.mpesa-error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

/* Description */
.mpesa-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}


.mpesa-payment-container {
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mpesa-payment-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 2em;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpesa-payment-tabs-vertical {
    display: flex;
    gap: 2em;
    min-height: 400px;
}

.tabs-sidebar {
    width: 240px;
    border-right: 1px solid #f0f0f0;
}

.tabs-nav-vertical {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tabs-nav-vertical li {
    margin: 0;
    padding: 0;
}

.tabs-nav-vertical li a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.tabs-nav-vertical li.active a {
    background: #f8fff9;
    color: #1e874b;
    border-left: 3px solid #1e874b;
    font-weight: 500;
}

.tabs-nav-vertical li a:hover:not(.active) {
    background: #f9f9f9;
}

.tabs-content-vertical {
    flex: 1;
    padding: 0 1em;
}

.tab-pane-vertical {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane-vertical.active {
    display: block;
}

.tab-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5em;
}

.form-row {
    margin-bottom: 1.5em;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 15px;
}

.input-text {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease;
}

.input-text:focus {
    outline: none;
    border-color: #1e874b;
    box-shadow: 0 0 0 3px rgba(30, 135, 75, 0.1);
}

.input-text::placeholder {
    color: #999;
}

.input-text[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

#mpesa-pay-button {
    width: 100%;
    padding: 14px;
    background: #1e874b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#mpesa-pay-button:hover {
    background: #156c3c;
    transform: translateY(-1px);
}

#mpesa-pay-button:active {
    transform: translateY(0);
}

#mpesa-pay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mpesa-payment-container {
        margin: 1em;
        padding: 1.5em;
    }

    .mpesa-payment-tabs-vertical {
        flex-direction: column;
    }

    .tabs-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 1.5em;
    }

    .tabs-nav-vertical {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1em;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tabs-nav-vertical::-webkit-scrollbar {
        display: none;
    }

    .tabs-nav-vertical li {
        flex: none;
    }

    .tabs-nav-vertical li a {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    .tabs-nav-vertical li.active a {
        border-left: none;
        border-bottom: 3px solid #1e874b;
    }
} 

    .toastr {
        z-index: 10000;
    }

    .toastr-top-right {
        top: 12px !important;
        right: 12px !important;
    }

    .toastr-top-right {
        top: 12px !important;
        right: 12px !important;
    }   

    .toastr-success {
        background-color: #28a745;
    }

    .toastr-error {
        background-color: #dc3545;
    }

    .toastr-warning {
        background-color: #ffc107;
    }

    .toastr-info {
        background-color: #007bff;
    }   

    .toastr-close-button {
        color: #fff;
    }

    .toastr-close-button:hover {
        color: #fff;
    }   

    .toastr-progress-bar {
        background-color: #fff;
    }   

    .toastr-progress-bar-animated {
        background-color: #fff;
    } 

    .mpesa-payment-container {
        max-width: 800px;
        margin: 2em auto;
        padding: 2em;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .mpesa-payment-title {
        text-align: center;
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 2em;
        color: #333;
    }

    .mpesa-payment-tabs-vertical {
        display: flex;
    }

    .tabs-sidebar {
        width: 240px;
        border-right: 1px solid #f0f0f0;
    }

    .tabs-nav-vertical {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .tabs-nav-vertical li {
        margin: 0;
        padding: 0;
    }

    .tabs-nav-vertical li a {
        display: block;
        padding: 12px 20px;
        color: #666;
        text-decoration: none;
        font-size: 15px;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .tabs-nav-vertical li.active a {
        background: #f2e8e4;
        color: #CD5928;
        border-left: 3px solid #CD5928;
        font-weight: 500;
    }

    .tabs-nav-vertical li a:hover:not(.active) {
        background: #f8fff9;
    }

    .tabs-content-vertical {
        flex: 1;
        padding: 0 1em;
    }

    .tab-pane-vertical {
        display: none;
    }

    .tab-pane-vertical.active {
        display: block;
    }

    .tab-title {
        font-size: 20px;
        font-weight: 500;
        color: #333;
        margin-bottom: 1.5em;
    }

    .form-row {
        margin-bottom: 1.5em;
    }

    .form-row label {
        display: block;
        margin-bottom: 8px;
        color: #666;
        font-size: 15px;
    }

    .input-text {
        width: 100%;
        padding: 12px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        font-size: 15px;
        color: #333;
        background: #fff;
        transition: border-color 0.2s ease;
    }

    .input-text:focus {
        outline: none;
        border-color: #CD5928;
    }

    .input-text::placeholder {
        color: #999;
    }

    .button {
        width: 100%;
        padding: 14px;
        background: #CD5928;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .button:hover {
        background: #CD5928;
    }

    .payment-instructions {
        padding: 1.5em;
        background: #f8f9fa;
        border-radius: 4px;
        border: 1px solid #eee;
    }

    .payment-instructions h3 {
        color: #333;
        margin-bottom: 1em;
        font-size: 1.3em;
    }

    .payment-instructions ol {
        margin-left: 1.5em;
        color: #666;
    }

    .payment-instructions li {
        margin-bottom: 0.8em;
        line-height: 1.5;
    }

    .payment-instructions strong {
        color: #333;
        font-weight: 600;
    }

    .till-info {
        background: #fff;
        padding: 1.5em;
        border-radius: 4px;
        margin-top: 1em;
    }

    .till-info p {
        margin-bottom: 0.8em;
        color: #666;
    }

    .contact-info {
        margin-top: 1.5em;
    }

    .contact-info p {
        display: flex;
        align-items: center;
        margin-bottom: 0.8em;
        color: #666;
    }

    .contact-info i {
        margin-right: 0.8em;
        color: #28a745;
        width: 20px;
        text-align: center;
    }

    @media (max-width: 768px) {
        .mpesa-payment-container {
            margin: 1em;
            padding: 1.5em;
        }

        .mpesa-payment-tabs-vertical {
            flex-direction: column;
        }

        .tabs-sidebar {
            width: 100%;
            border-right: none;
            border-bottom: 1px solid #f0f0f0;
            margin-bottom: 1.5em;
        }

        .tabs-nav-vertical {
            display: flex;
            overflow-x: auto;
            padding-bottom: 1em;
        }

        .tabs-nav-vertical li {
            flex: none;
        }

        .tabs-nav-vertical li a {
            border-left: none;
            border-bottom: 3px solid transparent;
            white-space: nowrap;
        }

        .tabs-nav-vertical li.active a {
            border-left: none;
            border-bottom: 3px solid #CD5928;
        }
    }