/**
 * Stitch Express BNPL Product Widget Styles
 */

.stitch-bnpl-product-widget {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    animation: fadeIn 0.3s ease-in-out;
}

.stitch-bnpl-widget-header {
    flex-wrap: wrap;
}

.stitch-bnpl-logo-container svg {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .stitch-bnpl-product-widget {
        padding: 12px !important;
        margin: 12px 0 !important;
    }

    .stitch-bnpl-widget-header {
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    .stitch-bnpl-logo-container {
        height: 32px !important;
        width: 115px !important;
        padding: 10px 8px !important;
    }

    .stitch-bnpl-widget-header span {
        font-size: 14px !important;
        line-height: 18px !important;
    }

    .stitch-bnpl-product-widget p {
        font-size: 11px !important;
        line-height: 18px !important;
    }
}

@media (max-width: 480px) {

    .stitch-bnpl-widget-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .stitch-bnpl-logo-container {
        margin-bottom: 8px;
    }
}

/* Accessibility */
.stitch-bnpl-product-widget:focus-within {
    outline: 2px solid #5f19e2;
    outline-offset: 2px;
}

/* Animation for dynamic loading */

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Print styles - hide widget when printing */
@media print {

    .stitch-bnpl-product-widget {
        display: none;
    }
}
