/* Fix button alignment */
.single_add_to_cart_button {
    margin-left: 0 !important;
}

/* Fix button position */
.woocommerce div.product form.cart {
    clear: both;
    display: flex;
    flex-direction: column;
}

.single_add_to_cart_button {
    margin-top: 20px;
    width: 100%;
    background-color: #0E3954 !important;
    font-weight: bold !important;
    text-transform: uppercase;
}

/* Ensure the button stands out */
.single_add_to_cart_button {
    padding: 12px 20px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* Make sure the rental section is above the button */
.rental-periods-container {
    order: 1;
    margin-bottom: 20px;
}

/* Button at the bottom */
.single_add_to_cart_button.button {
    order: 2;
}

/* Cross-sell slider product layout fixes */
.elementor-widget-woocommerce-product-etheme_cross_sells .swiper-slide {
    height: auto !important;
}

/* Make product boxes equal height */
.elementor-widget-woocommerce-product-etheme_cross_sells .content-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
}

/* Fix product image wrapper */
.elementor-widget-woocommerce-product-etheme_cross_sells .product-image-wrapper {
    position: relative;
    margin-bottom: 15px;
}

/* Consistent image height */
.elementor-widget-woocommerce-product-etheme_cross_sells .product-image-wrapper img {
    height: 200px;
    object-fit: contain;
    width: 100%;
}

/* Fix product details layout */
.elementor-widget-woocommerce-product-etheme_cross_sells .product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Consistent product title height */
.elementor-widget-woocommerce-product-etheme_cross_sells .product-title {
    min-height: 2.5em;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

/* Price styling */
.elementor-widget-woocommerce-product-etheme_cross_sells .price {
    margin-bottom: 15px;
    color: #0B3954;
    font-weight: bold;
}

/* Button styling */
.elementor-widget-woocommerce-product-etheme_cross_sells .add_to_cart_button {
    width: 100%;
    margin-top: auto;
    padding: 10px;
    background-color: #0E3954 !important;
    color: white !important;
    font-weight: bold !important;
    text-transform: uppercase;
    text-align: center;
}

/* Hide duplicate add to cart button that appears in footer */
.elementor-widget-woocommerce-product-etheme_cross_sells .footer-product .add_to_cart_button {
    display: none;
}

/* Footer product positioning */
.elementor-widget-woocommerce-product-etheme_cross_sells .footer-product {
    z-index: 2;
}

/* Fix for swiper slides width and spacing */
.elementor-widget-woocommerce-product-etheme_cross_sells .swiper-slide {
    height: auto !important;
    display: flex;
}

/* Fix spacing between elements */
.elementor-widget-woocommerce-product-etheme_cross_sells .product-details > * {
    margin-bottom: 10px;
}

.elementor-widget-woocommerce-product-etheme_cross_sells .product-details > *:last-child {
    margin-bottom: 0;
}

/* Rental periods styling */
.rental-periods-container {
    width: 100%;
    margin-bottom: 20px;
}

.rental-price-options {
    margin-bottom: 25px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.rental-price-options h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rental-period-option {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.rental-period-option:last-child {
    border-bottom: none;
}

.period-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.period-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.period-price {
    text-align: right;
}

.main-price {
    font-weight: bold;
    color: #0B3954;
    font-size: 16px;
}

.insurance-note {
    font-size: 14px;
    color: #666;
    margin-top: 3px;
}

.rental-dates {
    margin-top: 15px;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 4px;
}

.rental-dates h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.date-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.date-label {
    width: 120px;
    font-weight: bold;
}

.date-input {
    flex: 1;
    margin-right: 10px;
}

.time-input select {
    padding-left: 8px;
    padding-right: 8px;
    width: 120px;
}

.date-input input {
    width: 100%;
    padding: 8px;
}

.rental-error {
    color: red;
    margin-top: 10px;
    font-weight: bold;
}

.rental-price-summary {
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #e9f7fe;
    border-radius: 4px;
    border-left: 4px solid #0B3954;
}

.rental-duration {
    font-size: 16px;
    margin-bottom: 5px;
}

.rental-price {
    font-size: 18px;
    font-weight: bold;
    color: #0B3954;
}

.rental-insurance {
    font-size: 14px;
    color: #666;
    margin-top: 3px;
}

.insurance-option {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.insurance-option label {
    display: flex;
    align-items: center;
    font-weight: bold;
}

.insurance-option input[type="checkbox"] {
    margin-right: 10px;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    .elementor-widget-woocommerce-product-etheme_cross_sells .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px;
    }

    .elementor-widget-woocommerce-product-etheme_cross_sells .product-title {
        min-height: auto;
    }

    .date-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .date-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .date-input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .time-input {
        width: 100%;
    }

    .time-input select {
        width: 100%;
    }
}