/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/*
* Custom CSS to override the default "Shipment Tracker for Woocommerce" plugin styles.
* This CSS is designed to work with the shortcodes and give the page a modern, clean look.
*/

/* General page and form container styles */
.bt_order_tracking_page {
    /* Set a max-width and center the container for a clean look */
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* Style the main tracking form */
.bt_order_tracking_page .bt_tracking_form {
    padding: 2rem;
    text-align: center;
    border-radius: 0.75rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

/* Style the input field and button to match a clean design */
.bt_order_tracking_page .bt_tracking_form input[type="text"] {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* Tailwind's rounded-full equivalent */
    border: 1px solid #d1d5db;
    font-size: 1rem;
    line-height: 1.5rem;
    transition: all 0.2s ease-in-out;
}

.bt_order_tracking_page .bt_tracking_form input[type="text"]:focus {
    outline: none;
    border-color: #ef4444; /* red-500 */
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.bt_order_tracking_page .bt_tracking_form button {
    background-color: #ef4444; /* red-600 */
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px; /* rounded-full */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bt_order_tracking_page .bt_tracking_form button:hover {
    background-color: #dc2626; /* red-700 */
    transform: scale(1.05);
}

/* Style the details section after the form submission */
.bt_order_tracking_page .bt_order_details,
.bt_order_tracking_page .order-track {
    background-color: #f9fafb;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
}

/* Style the tracking timeline */
.bt_order_tracking_page .track {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

.bt_order_tracking_page .order-track-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.bt_order_tracking_page .order-track-status {
    position: relative;
    margin-right: 1.5rem;
}

.bt_order_tracking_page .order-track-status-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid;
    position: relative;
    z-index: 10;
}

.bt_order_tracking_page .order-track-status-line {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 2rem);
    background-color: #e5e7eb;
}

/* Color codes for status dot and line */
.faded .order-track-status-dot {
    border-color: #9ca3af; /* gray-400 */
    background-color: #fff;
}
.coloured .order-track-status-dot {
    border-color: #ef4444; /* red-500 */
    background-color: #ef4444;
}
.coloured .order-track-status-line {
    background-color: #ef4444; /* red-500 */
}

/* Status text styling */
.bt_order_tracking_page .order-track-text-stat {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937; /* gray-800 */
}

.bt_order_tracking_page .order-track-text-sub {
    font-size: 0.875rem;
    color: #6b7280; /* gray-500 */
}

/* Loader CSS (if still in use) */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ef4444;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bt_order_tracking_page {
        padding: 1rem;
    }
    .bt_order_tracking_page .bt_tracking_form {
        padding: 1rem;
    }
    .bt_order_tracking_page .order-track {
        padding: 1rem 0;
    }
    .bt_order_tracking_page .order-track-step {
        align-items: flex-start;
        padding-left: 1rem;
    }
    .bt_order_tracking_page .order-track-status {
        margin-right: 1rem;
    }
    .bt_order_tracking_page .order-track-text-stat {
        font-size: 1rem;
    }
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}