/* === Shared Styles for All Marquee Widgets === */
.ame-marquee__wrapper {
    width: 100%;
    overflow: hidden;
}

.ame-marquee__items {
    display: flex;
    transition-timing-function: linear !important;
    transition-delay: 0s !important;
    will-change: transform;
}

/* .ame-marquee__items.ame-equal-height {
    display: flex;
    align-items: stretch;
} */

.ame-marquee__item {
    width: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: auto !important;
    padding: 8px;
    background-color: #fff;
}

.ame-marquee__item.ame-center-content {
    justify-content: center;
}

.ame-marquee__item_inner a {
    text-decoration: none !important;
}

.ame-marquee__image img {
    height: 100%;
    object-fit: cover;
}

.ame-marquee__details {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.ame-marquee__details p {
    margin: 0;
}

.ame-marquee__caption {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    font-weight: bold;
}

.ame-marquee__description {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.ame-align-left {
    text-align: left;
}

.ame-align-center {
    text-align: center;
}

.ame-align-right {
    text-align: right;
}


.ame-aliment-top {
    justify-content: flex-start;
}

.ame-aliment-center {
    justify-content: center;
}

.ame-aliment-bottom {
    justify-content: flex-end;
}


.vertical.ame-align-v-left {
    align-items: flex-start;
}

.vertical.ame-align-v-center {
    align-items: center;
}

.vertical.ame-align-v-right {
    align-items: flex-end;
}

.horizontal.ame-align-h-top {
    align-items: flex-start;
}

.horizontal.ame-align-h-center {
    align-items: center;
}

.horizontal.ame-align-h-bottom {
    align-items: flex-end;
}

.horizontal.ame-align-h-stretch {
    align-items: stretch;
}

/* === Image Marquee Widget Specific Styles === */
.ame-marquee-image .ame-marquee__item {
    /* No unique styles required; inherits shared styles */
}

/* === Post Marquee Widget Specific Styles === */
.ame-marquee-post .ame-marquee__item {
    /* No unique styles required; inherits shared styles */
}

/* === Testimonials Marquee Widget Specific Styles === */
.ame-marquee-testimonials .ame-marquee__item.ame-testimonial--default,
.ame-marquee-testimonials .ame-marquee__item.ame-testimonial--modern,
.ame-marquee-testimonials .ame-marquee__item.ame-testimonial--bubble {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ame-marquee-testimonials .ame-marquee__image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.ame-marquee-testimonials .ame-marquee__details {
    font-size: 14px;
    color: #666;
}

.ame-marquee-testimonials .ame-marquee__rating {
    display: flex;
    margin: 0 0 10px 0;
}

.ame-marquee-testimonials .ame-marquee__star {
    font-size: 16px;
    color: #ccc;
}

.ame-marquee-testimonials .ame-marquee__star--filled {
    color: #f39c12;
}

.ame-marquee-testimonials .ame-marquee__author {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.ame-marquee-testimonials .ame-marquee__designation {
    font-size: 12px;
    color: #999;
}

.ame-marquee__author-image img {
    object-fit: cover;
    border: 1px solid #000000;
    padding: 2px;
}

.ame-marquee__author-image {
    margin-bottom: 8px;
}

.ame-marquee__testimonial-content .ame-marquee__testimonial-text {
    margin-bottom: 8px;
}

.ame-marquee__testimonial-content .ame-marquee__author-name {
    margin-bottom: 8px;
}

.ame-marquee__testimonial-content .ame-marquee__author-title {
    margin-bottom: 0;
}

/* Testimonials Modern Design Style */
.ame-marquee-testimonials .ame-marquee__item.ame-testimonial--modern {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.ame-marquee-testimonials .ame-marquee__item.ame-testimonial--modern .ame-marquee__title {
    color: #2c3e50;
}

.ame-marquee-testimonials .ame-marquee__item.ame-testimonial--modern .ame-marquee__details {
    color: #34495e;
}

/* Testimonials Bubble Design Style */
.ame-marquee-testimonials .ame-marquee__item.ame-testimonial--bubble {
    background: #fff;
    border: none;
    border-radius: 20px;
    position: relative;
    padding-bottom: 40px;
}

.ame-marquee-testimonials .ame-marquee__item.ame-testimonial--bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #fff;
}

.ame-marquee-testimonials .ame-marquee__item.ame-testimonial--bubble .ame-marquee__image img {
    border: 2px solid #3498db;
}

/* === Marquee Text Widget Specific Styles === */
.ame-marquee-text_section {
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* Wrapper for scrolling effect */
.ame-marquee-text_wrap {
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Scrolling text container */
.ame-marquee-text_content {
    display: flex;
    gap: 20px;
    flex: 0 0 auto;
    min-width: 100%;
}

/* Individual marquee items */
.ame-marquee-text_item {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    border-radius: 8px;
    line-height: 1;
}

/* Reset padding and margin for all child elements */
.ame-marquee-text_item * {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove text decoration from links */
.ame-marquee-text_content a {
    text-decoration: none !important;
}

.ame-marquee-text_content a:hover {
    text-decoration: none !important;
}

/* Separator icon styling */
.ame_marquee_text_separator__icon {
    display: flex;
}

/* ticker label */
.ame-ticker-label {
    position: absolute;
    background: rgb(33, 9, 50);
    line-height: 0;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ame-ticker-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 8px;
    gap: 8px;
}

.ame-ticker-label p {
    margin: 0;
    padding: 0;
    color: #fff;
}

/* Left to Right Marquee */
.ame-marquee-text_content.marquee-text-left-to-right {
    animation: marquee-text-left-to-right linear infinite;
}

@keyframes marquee-text-left-to-right {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Right to Left Marquee */
.ame-marquee-text_content.marquee-text-right-to-left {
    animation: marquee-text-right-to-left linear infinite;
}

/* Right to Left */
@keyframes marquee-text-right-to-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.ame-marquee-text_wrap:hover .ame-push-on-hover {
    animation-play-state: paused;
}


/* === Marquee Team Members Widget Specific Styles === */
.ame-marquee__member-content h2,
.ame-marquee__member-content h5,
.ame-marquee__member-content p {
    margin-bottom: 4px;
}

.ame-team-marquee .ame-marquee__member-name {
    font-size: 24px;
}

.ame-team-marquee .ame-marquee__member-designation {
    font-size: 16px;
}

.ame-team-marquee .ame-marquee__past-exp h5 {
    font-size: 16px;
}

.ame-team-marquee .ame-marquee__past-exp {
    margin-top: 16px;
}

.ame-team-marquee .ame-marquee__member-image img {
    object-fit: cover;
}

.ame-team-marquee .social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ame-team-marquee .social-icons .social-icon {
    display: flex;
    width: 32px;
    background: #efefef;
    padding: 8px;
    height: 32px;
    text-align: center;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.ame-team-marquee .social-icons .social-icon svg {
    transition: all 0.3s ease-in-out;
}

.ame-team-marquee .social-icons .social-icon:hover svg {
    transform: scale(1.1);
}

.ame-align-left .social-icons {
    justify-content: flex-start;
}

.ame-align-center .social-icons {
    justify-content: center;
}

.ame-align-right .social-icons {
    justify-content: flex-end;
}

/* === Marquee Call to Action Widget Specific Styles === */
.ame-marquee__cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #efefef;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.ame-marquee__cta-icon img {
    object-fit: cover;
}

.ame-marquee__cta-icon.ame-icon svg {
    border: 1px solid #878787;
    border-radius: 50px;
}

.ame-marquee__cta-content h4,
.ame-marquee__cta-content p {
    margin: 0;
}

.ame-cta-marquee .ame-marquee__item:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ame-cta-marquee .ame-marquee__cta-content {
    z-index: 999;
    position: relative;
}

.ame-cta-marquee .ame-marquee__cta-icon {
    z-index: 999;
    position: relative;
}

/* === WooCommerce Product Marquee Specific Styles === */
.ame-woocommerce-marquee .ame-marquee__item {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 240px;
}

.ame-woo-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.ame-woo-product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.horizontal.ame-align-h-stretch .ame-marquee__item_inner {
    height: 100%;
}

.horizontal.ame-align-h-stretch .ame-woo-product-card {
    height: 100%;
}

.ame-woo-product-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
}

.ame-woo-product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ame-woo-product-card:hover .ame-woo-product-thumbnail {
    transform: scale(1.05);
}

.ame-woo-sale-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.ame-woo-product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ame-woo-product-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}

.ame-woo-product-title a {
    color: #1e293b;
    transition: color 0.15s ease;
    text-decoration: none !important;
}

.ame-woo-product-title a:hover {
    color: #7209b7;
}

.ame-woo-product-rating {
    font-size: 11px;
    margin: 2px 0;
}

.ame-woo-product-price {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.ame-woo-product-price del {
    font-size: 11px;
    color: #94a3b8;
    margin-right: 4px;
    font-weight: 400;
}

.ame-woo-low-stock-alert {
    font-size: 10.5px;
    font-weight: 600;
    color: #ef4444;
    background-color: #fef2f2;
    padding: 2px 6px;
    border-radius: 3px;
    align-self: flex-start;
    margin: 2px 0;
}

.ame-woo-product-btn {
    display: inline-block;
    text-align: center;
    background-color: #0f172a;
    color: #fff;
    text-decoration: none !important;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: auto;
    transition: background-color 0.15s ease;
}

.ame-woo-product-btn:hover {
    background-color: #334155;
    color: #fff;
}

/* === WooCommerce Recent Orders Marquee Specific Styles === */
.ame-woo-recent-orders-marquee .ame-marquee__item {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 320px;
}

.ame-order-marquee-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 6px 14px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin: 4px 0;
    width: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.ame-order-marquee-pill:hover {
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.08);
}

.horizontal.ame-align-h-stretch .ame-woo-recent-orders-marquee .ame-marquee__item_inner {
    height: 100%;
}

.horizontal.ame-align-h-stretch .ame-order-marquee-pill {
    height: 100%;
}

.ame-order-product-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ame-order-details {
    font-size: 12px;
    color: #475569;
    text-align: left;
}

.ame-order-details p {
    margin: 0;
    line-height: 1.3;
}

.ame-order-product-link {
    color: #7209b7;
    text-decoration: none !important;
}

.ame-order-product-link:hover {
    text-decoration: underline !important;
}

.ame-order-time {
    font-size: 10.5px;
    color: #94a3b8;
    display: block;
    margin-top: 1px;
}

.ame-marquee-error {
    color: #ef4444;
    padding: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}