﻿

/* ProductDetails Caurosels CSS*/
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
    border-radius: 50%; /* Round the icons */
    width: 40px;
    height: 40px;
}

/* Change the arrow color to white */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: url('data:image/svg+xml,%3csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22white%22 viewBox=%220 0 16 16%22%3e%3cpath d=%22M11.5 1.5l-6 6 6 6%22/%3e%3c/svg%3e');
}

.carousel-control-prev-icon {
    background-image: url('data:image/svg+xml,%3csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22white%22 viewBox=%220 0 16 16%22%3e%3cpath d=%22M11.5 1.5l-6 6 6 6%22/%3e%3c/svg%3e'); /* Left arrow */
}

.carousel-control-next-icon {
    background-image: url('data:image/svg+xml,%3csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22white%22 viewBox=%220 0 16 16%22%3e%3cpath d=%22M4.5 1.5l6 6-6 6%22/%3e%3c/svg%3e'); /* Right arrow */
}









/* Checkout Page Styles */

/* Form container */
.checkout-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form group */
.checkout-form-group {
    position: relative;
    margin-bottom: 20px;
    flex: 1 1 45%;
}

/* Form row for side-by-side elements */
.checkout-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* Input fields */
.checkout-form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s;
}

/* Label styling */
.checkout-form-label {
    position: absolute;
    top: 16px;
    left: 15px;
    font-size: 1rem;
    color: #6c757d;
    background-color: white;
    padding: 0 5px;
    transition: 0.2s ease all;
    pointer-events: none;
}

/* Focused or filled fields */
.checkout-form-control:focus + .checkout-form-label,
.checkout-form-control:not(:placeholder-shown) + .checkout-form-label {
    top: -8px;
    left: 10px;
    font-size: 0.85rem;
    color: #007bff;
}

/* Error message styling */
.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #dc3545;
}

.checkout-form-control:invalid ~ .invalid-feedback {
    display: block;
}

/* Show error message when field is invalid */
.checkout-form-control:invalid {
    border-color: #dc3545;
}

/* Focused field styling */
.checkout-form-control:focus {
    border-color: #007bff;
    outline: none;
}

/* Order Summary */
.checkout-order-summary {
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Button styling */
.btn {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 4px;
    border: none;
    transition: background-color 0.3s ease;
}

    .btn:hover {
        background-color: #28a745;
    }

.btn-success {
    background-color: #4CAF50;
    color: white;
}

    .btn-success:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);
    }
