/* Previous mobile.css content remains the same */

/* Product Image Styles */
.product-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fixed-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: #fff;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  min-height: 64px;
  transition: min-height 0.2s;
}

/* Next case button in mobile */
.next-case-footer {
    position: center;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Adding result line styles for desktop */
.action-buttons {
    padding-top: 1rem;
    border-top: 1px solid #e6e7e9;
    margin-top: 1rem;
    display: flex;
    align-items: center; /* Center buttons vertically */
}

/* Add positioning for the card to make it a relative container */
.card-lg {
    position: relative;
}

@media (min-width: 768px) {
    /* Previous desktop styles remain */
    .product-image-container {
        margin-right: 1.5rem;
    }

    .action-buttons {
        padding-left: 1rem;
        border-left: 1px solid #e6e7e9;
        border-top: none;
        margin-top: 0;
        padding-top: 0;
        height: 100%; /* Make the container full height */
        align-self: stretch; /* Stretch to match parent height */
    }
}

/* Mobile Styles */
@media (max-width: 767.98px) {
    /* Previous mobile styles remain */
    .product-image-container {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }

    .product-image {
        max-height: 200px;
    }

    /* Add positioning for the card to make it a relative container */
    .card-lg {
        position: relative;
    }
    /* Adjust spacing for images in mobile view */
    .list-group-item {
        padding: 1.5rem !important;
    }

    /* New mobile styles for vertical steps */
    .steps-vertical-container {
        position: fixed;
        right: 0;
        top: 80px; /* Adjust top position to be below header */
        height: calc(95% - 80px); /* Adjust height to account for header */
        z-index: 2;
        padding: 0;
    }

    .steps-vertical {
        padding: 40px 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        position: relative;
    }

    /* Action buttons in mobile view */
    .action-buttons {
        width: 100%;
        flex-direction: row !important;
        justify-content: space-between;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e6e7e9;
        align-items: center; /* Center buttons vertically */
    }

    .action-buttons .btn {
        flex: 1;
        margin: 0 0.5rem;
    }

    #next-btn {
        order: 1
    }
    #skip-btn {
        order: 2
    }

    .fixed-header {
        min-height: 56px; /* Меньшая высота для мобильных */
        padding: 0.5rem 1rem;
    }
}
