/* Teya Payments Setup Styles */
.teya-onboarding-container {
    max-width: 1000px;
    margin: 20px 0;
}

.teya-onboarding-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e1e5e9;
}

.teya-onboarding-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.teya-logo {
    height: 60px;
    width: auto;
}

.teya-onboarding-header h2 {
    margin: 0;
    color: #1e3a8a;
    font-size: 24px;
    font-weight: 600;
}

.teya-onboarding-header-right {
    display: flex;
    align-items: center;
}

.teya-onboarding-header-cards {
    display: flex;
    gap: 15px;
    align-items: center;
}

.teya-onboarding-header-cards img {
    height: 30px;
    width: auto;
}

.teya-connect-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    margin-bottom: 30px;
    text-align: center;
}

.teya-connect-content h3 {
    margin-top: 0;
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 15px;
}

.teya-connect-content .description {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.teya-connect-button-container {
    margin: 40px 0;
}

.wrap:not(.teya-payments-debug) .teya-test-connect-button-container{
    display: none;
}

.teya-connect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    min-width: 280px;
    text-decoration: none;
}

.teya-connect-button:hover {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #1a1a1a;
}

.teya-connect-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.teya-connect-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.teya-connect-logo {
    height: 32px;
    width: auto;
    /* Remove the white filter to show original logo colors */
}

.teya-connect-text {
    font-size: 18px;
    font-weight: 600;
}

.teya-connect-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.teya-connect-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.teya-connect-info a {
    color: #1e3a8a;
    text-decoration: none;
}

.teya-connect-info a:hover {
    text-decoration: underline;
}

/* Loading animation */
.teya-connect-button.loading {
    position: relative;
    color: transparent;
}

.teya-connect-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #1a1a1a;
    border-radius: 50%;
    animation: teya-spin 1s linear infinite;
}

@keyframes teya-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.teya-connect-button.loading .teya-connect-logo,
.teya-connect-button.loading .teya-connect-text {
    opacity: 0;
}

.teya-setup-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.teya-setup-actions .button {
    margin-right: 10px;
}

.teya-help-section {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.teya-help-section h3 {
    margin-top: 0;
    color: #1e40af;
}

.woocommerce-help-tip {
    cursor: help;
    color: #666;
    font-size: 16px;
    margin-left: 5px;
}

.woocommerce-help-tip:before {
    content: "?";
    background: #666;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-block;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-weight: bold;
}

.teya-payments-advanced-settings{
    margin: 1em 0 1.5em;
}
.teya-payments-advanced-settings a span{
    display: inline-block;
    vertical-align: middle;
}
.teya-payments-advanced-settings a span::before {
    font-family: Dashicons;
    speak: none;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    text-indent: 0;
    text-align: center;
    content: "\f10f";
}
.teya-payments-advanced-settings  a.advanced-settings-shown span::before {
    content: "\f14f";
}
.teya-payments-advanced-settings+table{
    display: none;
}
.teya-testmode-section{
    display: none;
}
.teya-testmode-section:not(.teya-payments-debug)+table{
    display: none;
}