/**
 * Metadologie Connector Admin Styles
 * 
 * @package Metadologie_Connector
 * @since 1.2.1
 */

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

.metadologie-pricing-wrapper {
    padding: 10px 20px 40px;
    /* Reduced top padding from 40px to 10px */
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.metadologie-pricing-header {
    text-align: center;
    margin-bottom: 35px;
    /* Reduced margin-bottom from 50px to 25px */
}

.metadologie-pricing-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #1a202c;
}

.metadologie-pricing-header p {
    color: #718096;
    font-size: 18px;
    margin: 0;
}

.metadologie-pricing-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.metadologie-pricing-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e1e3e5;
    min-width: 250px;
    max-width: 320px;
    transition: all 0.3s ease;
    position: relative;
}

.metadologie-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #5c6ac4;
}

.metadologie-pricing-card.popular {
    border: 2px solid #5c6ac4;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1;
    transform: scale(1.02);
}

.metadologie-pricing-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
}


/* Enterprise Plan Styling */
.metadologie-pricing-card.enterprise-plan {
    /* border: 2px solid #5c6ac4; Removed brand blue highlight */
    box-shadow: 0 20px 25px -5px rgba(92, 106, 196, 0.15), 0 10px 10px -5px rgba(92, 106, 196, 0.1);
    z-index: 2;
    transform: scale(1.02);
    background: linear-gradient(to bottom, #fff, #f0f4ff);
    /* Subtle cool tint */
}

.metadologie-pricing-card.enterprise-plan:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 25px 30px -5px rgba(92, 106, 196, 0.25), 0 15px 15px -5px rgba(92, 106, 196, 0.15);
}

.metadologie-card-badge.enterprise-badge {
    background: #5c6ac4;
    box-shadow: 0 4px 6px -1px rgba(92, 106, 196, 0.3);
}

.metadologie-card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #5c6ac4;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metadologie-card-title {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 600;
    color: #2d3748;
}

.metadologie-card-price {
    font-size: 36px;
    font-weight: 800;
    color: #1a202c;
    display: flex;
    align-items: baseline;
}

.metadologie-card-price span {
    font-size: 16px;
    font-weight: 500;
    color: #718096;
    margin-left: 4px;
}

.metadologie-card-desc {
    color: #718096;
    font-size: 15px;
    line-height: 1.5;
    margin-top: 5px;
}

.metadologie-card-divider {
    border-top: 1px solid #e2e8f0;
    margin: 5px 0;
}

.metadologie-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
    color: #4a5568;
}

.metadologie-card-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.metadologie-check {
    color: #48bb78;
    margin-right: 10px;
    font-size: 18px;
}

.metadologie-pricing-btn {
    background: #5c6ac4;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    margin-top: auto;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(92, 106, 196, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
}

.metadologie-pricing-btn:hover {
    background: #4c58a4;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(92, 106, 196, 0.3);
}

.metadologie-pricing-btn.secondary {
    /* Reuse primary styles for uniformity */
    background: #5c6ac4;
    color: white;
}

.metadologie-pricing-btn.secondary:hover {
    background: #4c58a4;
}

/* ==========================================================================
   LOADER STYLES
   ========================================================================== */

.metadologie-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10005;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.metadologie-loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #5c6ac4;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: metadologie-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes metadologie-spin {
    0% {
        transform: rotate(0deg);
    }

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

.metadologie-loader-text {
    font-size: 18px;
    color: #2d3748;
    font-weight: 600;
}

/* ==========================================================================
   ROCKET ANIMATION STYLES
   ========================================================================== */

.rocket-launch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.rocket-launch-overlay.active {
    display: flex;
}

.rocket-container {
    position: relative;
    transform: translateY(0);
    will-change: transform;
}

.rocket-launch-overlay.preparing .rocket-container {
    animation: rocketEnter 0.7s ease-out forwards, rocketPrepare 3s ease-in-out infinite 0.7s;
}

.rocket-launch-overlay.preparing .rocket-flames {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(180deg);
}

.rocket-launch-overlay.launching .rocket-container {
    animation: rocketLaunch 2s ease-in forwards;
}

.rocket-launch-overlay.launching .rocket-flames {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(180deg);
}

.rocket-svg {
    width: 80px;
    height: 120px;
    filter: drop-shadow(0 0 20px rgba(255, 100, 50, 0.8));
}

.rocket-flames {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 40px;
    height: 60px;
    animation: flameFlicker 0.1s infinite alternate;
}

.flame {
    position: absolute;
    bottom: 0;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.flame-outer {
    width: 40px;
    height: 60px;
    left: 0;
    background: linear-gradient(to bottom, #ff4500, #ff8c00, #ffd700);
    animation: flameOuter 0.15s infinite alternate;
}

.flame-inner {
    width: 24px;
    height: 40px;
    left: 8px;
    background: linear-gradient(to bottom, #ffffcc, #ffff99, #ffcc00);
    animation: flameInner 0.1s infinite alternate;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: starMove 0.5s linear infinite;
}

.rocket-text {
    margin-top: 60px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.rocket-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 10px;
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

@keyframes rocketEnter {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }

    100% {
        transform: translateY(0) rotate(-1deg);
    }
}

@keyframes rocketPrepare {
    0% {
        transform: translateY(0px) rotate(-1deg);
    }

    25% {
        transform: translateY(-15px) rotate(0deg);
    }

    50% {
        transform: translateY(0px) rotate(1deg);
    }

    75% {
        transform: translateY(-10px) rotate(0deg);
    }

    100% {
        transform: translateY(0px) rotate(-1deg);
    }
}

@keyframes rocketLaunch {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-100px) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translateY(-800px) scale(0.5);
        opacity: 0;
    }
}

/* Success message styles */
.rocket-success-message {
    display: none;
    text-align: center;
    animation: fadeInUp 0.5s ease-out forwards;
}

.rocket-launch-overlay.success .rocket-success-message {
    display: block;
}

.rocket-launch-overlay.success .rocket-container,
.rocket-launch-overlay.success .rocket-text,
.rocket-launch-overlay.success .rocket-subtext {
    display: none;
}

/* Error message styles */
.rocket-error-message {
    display: none;
    text-align: center;
    animation: fadeInUp 0.5s ease-out forwards;
}

.rocket-launch-overlay.error .rocket-error-message {
    display: block;
}

.rocket-launch-overlay.error .rocket-container,
.rocket-launch-overlay.error .rocket-text,
.rocket-launch-overlay.error .rocket-subtext {
    display: none;
}

.error-icon {
    font-size: 80px;
    animation: bounceIn 0.6s ease-out;
    margin-bottom: 20px;
    line-height: 1.2;
    display: block;
}

.error-title {
    color: #f87171;
    font-size: 28px;
    font-weight: 700;
    margin-top: 10px;
}

.error-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-top: 10px;
}

.error-retry-btn {
    margin-top: 25px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.error-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.4);
}

.success-checkmark {
    font-size: 80px;
    animation: bounceIn 0.6s ease-out;
}

.success-title {
    color: #4ade80;
    font-size: 28px;
    font-weight: 700;
    margin-top: 20px;
}

.success-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-top: 10px;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes flameFlicker {
    0% {
        transform: translateX(-50%) scaleY(1) rotate(180deg);
    }

    100% {
        transform: translateX(-50%) scaleY(1.1) rotate(180deg);
    }
}

@keyframes flameOuter {
    0% {
        height: 50px;
        opacity: 0.9;
    }

    100% {
        height: 65px;
        opacity: 1;
    }
}

@keyframes flameInner {
    0% {
        height: 35px;
    }

    100% {
        height: 45px;
    }
}

@keyframes starMove {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Overlay Styles */
.metadologie-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 20px;
}

.checkmark-circle .background {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #48bb78;
    position: absolute;
}

.checkmark-circle .checkmark {
    border-radius: 5px;
}

.checkmark-circle .checkmark.draw:after {
    animation-delay: 100ms;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
    animation-fill-mode: forwards;
}

.checkmark-circle .checkmark:after {
    opacity: 1;
    height: 50px;
    width: 25px;
    transform-origin: left top;
    border-right: 10px solid white;
    border-top: 10px solid white;
    content: '';
    left: 25px;
    top: 50px;
    position: absolute;
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }

    20% {
        height: 0;
        width: 25px;
        opacity: 1;
    }

    40% {
        height: 50px;
        width: 25px;
        opacity: 1;
    }

    100% {
        height: 50px;
        width: 25px;
        opacity: 1;
    }
}

.success-message {
    font-size: 24px;
    font-weight: bold;
    color: #2d3748;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   PAYMENT MODAL STYLES
   ========================================================================== */

.metadologie-payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.metadologie-payment-modal {
    background: #fff;
    width: 600px;
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.metadologie-payment-header {
    padding: 24px;
    background: #f8f9fc;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metadologie-payment-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

.metadologie-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #e53e3e;
    line-height: 1;
    transition: transform 0.2s;
}

.metadologie-close-btn:hover {
    color: #c53030;
    transform: scale(1.1);
}

.metadologie-payment-options {
    padding: 24px;
    overflow-y: auto;
}

.metadologie-payment-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.metadologie-payment-option:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.metadologie-payment-option.selected {
    border-color: #5c6ac4;
    background-color: #f0f4ff;
    box-shadow: 0 0 0 1px #5c6ac4;
}

.payment-radio {
    margin-right: 16px;
    display: flex;
    align-items: center;
}

.payment-radio input {
    accent-color: #5c6ac4;
    width: 18px;
    height: 18px;
    margin: 0;
}

.payment-icon {
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-details {
    flex: 1;
}

.payment-title {
    font-weight: 700;
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 2px;
}

.required-text {
    font-weight: 600;
    font-size: 11px;
    margin-left: 5px;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-desc {
    color: #718096;
    font-size: 13px;
    margin: 0;
}

.payment-logos {
    margin-top: 4px;
}

.payment-price {
    font-size: 13px;
    color: #2d3748;
    font-weight: 600;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    margin-left: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.payment-input-section {
    padding: 0 24px 24px;
    background: #fff;
}

.payment-input-section h3 {
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 16px;
    color: #2d3748;
    font-weight: 700;
}

.metadologie-payment-footer {
    padding: 24px;
    border-top: 1px solid #edf2f7;
    text-align: right;
    background: #f8f9fc;
}

/* ==========================================================================
   WP FOOTER FIXES
   ========================================================================== */

#wpfooter {
    position: fixed !important;
    bottom: 0;
    left: 160px;
    right: 0;
    padding: 10px 20px;
    color: #50575e;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 999;
    margin-left: 0;
    /* Offset handled by left property */
    pointer-events: none;
    /* Allow clicking through the transparent area */
}

#wpfooter .clear {
    display: none !important;
}

#wpfooter p {
    margin: 0;
    pointer-events: auto;
    /* Make text clickable */
}

@media screen and (max-width: 782px) {
    #wpfooter {
        left: 0;
        margin-left: 0;
    }
}

#wpfooter #footer-left {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
}

#wpfooter #footer-upgrade {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right;
}


.metadologie-payment-footer button {
    padding: 12px 32px;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(92, 106, 196, 0.2);
}

.metadologie-payment-footer button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(92, 106, 196, 0.3);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.metadologie-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    align-items: center;
}

.metadologie-toast {
    background: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    min-width: 300px;
    justify-content: center;
}

.metadologie-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.metadologie-toast.success {
    border-left: 4px solid #28a745;
    color: #155724;
}

.metadologie-toast.error {
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #4a5568;
}

.form-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f7fafc;
    color: #2d3748;
    transition: all 0.2s;
}

.form-row input:focus {
    background: #fff;
    border-color: #5c6ac4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 106, 196, 0.1);
}

.form-row input:disabled {
    background: #edf2f7;
    color: #a0aec0;
    cursor: not-allowed;
}

.form-row.split {
    display: flex;
    gap: 16px;
}

.form-row.split>div {
    flex: 1;
}

/* ==========================================================================
   MERCHANT INFO MODAL
   ========================================================================== */

.metadologie-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metadologie-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.metadologie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #f6f7f7;
    border-radius: 8px 8px 0 0;
}

.metadologie-modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.metadologie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
}

.metadologie-modal-close:hover {
    color: #d63638;
}

.metadologie-modal-body {
    padding: 20px;
}

.metadologie-modal-body .form-table th {
    width: 150px;
    padding: 10px 10px 10px 0;
    font-weight: 600;
}

.metadologie-modal-body .form-table td {
    padding: 10px 0;
}

.merchant-info-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.merchant-info-btn:hover .dashicons {
    color: #135e96;
}

/* ==========================================================================
   TOOLTIP STYLES
   ========================================================================== */

.metadologie-tooltip-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    cursor: help;
}

.metadologie-tooltip-container .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #888;
}

.metadologie-tooltip-text {
    visibility: hidden;
    width: 140px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: normal;
    position: fixed;
    z-index: 100001;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    white-space: nowrap;
}

.metadologie-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.metadologie-tooltip-container:hover .metadologie-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ==========================================================================
   STORE STATUS BADGE
   ========================================================================== */

.store-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.store-connected {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.store-disconnected {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* ==========================================================================
   TABS STYLES
   ========================================================================== */

.metadologie-tab {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.metadologie-tab .dashicons {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
    vertical-align: middle !important;
}

.metadologie-tab-active {
    background: #2271b1 !important;
    color: #fff !important;
    border-color: #2271b1 !important;
}

.metadologie-tab:not(.metadologie-tab-active) {
    background: #f6f7f7 !important;
    color: #1d2327 !important;
    border-color: #c3c4c7 !important;
}

.metadologie-tab:hover:not(.metadologie-tab-active) {
    background: #f0f0f1 !important;
}

/* ==========================================================================
   CARD AND TABLE STYLES
   ========================================================================== */

#metadologie-connector .card,
#metadologie-connector .card.full-width {
    max-width: 100% !important;
    width: 100% !important;
    margin-right: -20px !important;
    margin-left: -20px !important;
}

#metadologie-connector .merchants-table {
    min-width: 1200px !important;
    width: 100% !important;
}

.card {
    background: #fff;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.card.full-width {
    margin-right: -20px;
    margin-left: -20px;
}

.merchants-table {
    min-width: 1000px;
    width: 100%;
}

.active-count {
    font-weight: normal;
    color: #666;
    font-size: 14px;
}

/* ==========================================================================
   SWITCH/TOGGLE STYLES
   ========================================================================== */

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background: #00a32a;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

.button-link-delete {
    background: none;
    border: none;
    color: #d63638;
    cursor: pointer;
    padding: 5px;
}

.button-link-delete:hover {
    background: #f0f0f1;
    border-radius: 3px;
}

/* ==========================================================================
   FULLSCREEN LOADER
   ========================================================================== */

.metadologie-loader {
    width: 48px;
    height: 48px;
    border: 5px solid #ccc;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: metadologie-spin 0.8s linear infinite;
}

/* Fix for spinner inside payment modal */
#metadologie-cc-loading .metadologie-loader-spinner {
    margin: 0 auto 20px;
}

/* Hide Default WordPress Footer */
#wpfooter {
    display: none !important;
}