/* Complete carousel redesign to fix centering issues */

/* Reset any previously defined styles that might interfere */
.pricing-carousel,
.pricing-grid,
.pricing-card {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force important overrides to ensure this works */
.pricing-grid {
    display: none !important; /* Hide the grid completely as we're not using it */
}

@media (max-width: 768px) {
    /* Container that holds everything */
    .pricing-carousel {
        position: relative;
        width: 100%;
        overflow: hidden;
        padding: 0;
    }
    
    /* Hide all cards by default */
    .pricing-card {
        display: none;
        padding: 20px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    /* Only show active card */
    .pricing-card.active {
        display: block;
    }
    
    /* Arrow styling */
    .pricing-carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: rgba(107, 78, 47, 0.9);
        border-radius: 50%;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: white;
    }
    
    .pricing-carousel-left {
        left: 10px;
    }
    
    .pricing-carousel-right {
        right: 10px;
    }
    
    /* Indicators */
    .pricing-carousel-indicators {
        display: flex;
        justify-content: center;
        margin: 15px 0;
    }
    
    .pricing-indicator {
        width: 12px;
        height: 12px;
        background-color: #ddd;
        border-radius: 50%;
        margin: 0 5px;
        cursor: pointer;
    }
    
    .pricing-indicator.active {
        background-color: var(--primary-color, #6b4e2f);
        transform: scale(1.2);
    }
    
    /* Image styling */
    .pricing-image {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .pricing-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        max-height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin: 0 auto;
    }
    
    /* Buttons and content positioning */
    .pricing-card .btn {
        display: block;
        width: 90%;
        max-width: 250px;
        margin: 20px auto 10px;
        text-align: center;
    }
    
    .expand-btn {
        display: block;
        margin: 10px auto;
        background: transparent;
        border: none;
        color: var(--primary-color, #6b4e2f);
        cursor: pointer;
        text-decoration: underline;
    }
    
    /* Hide details by default */
    .pricing-card .features,
    .pricing-card .size-pricing,
    .pricing-card .pricing-note {
        display: none;
    }
    
    /* Show when expanded */
    .pricing-card.expanded .features,
    .pricing-card.expanded .size-pricing,
    .pricing-card.expanded .pricing-note {
        display: block;
    }
}