/**
 * Custom WooCommerce Order Tracking – Styled to match BensonFinds website
 *
 * Design tokens extracted from theme settings:
 *   Text font:      Open Sans, 15px, Normal 400
 *   Title font:     Lexend Deca, Medium 500
 *   Primary color:  #F7941D  (orange)
 *   Secondary color: #FACA68 (light gold)
 *   Buttons:        light-blue bg (#D6E9F8), blue text (#2A6EB5), rounded style
 *   Button hover bg: slightly deeper blue (#C4DCF0 approx)
 */

/* ============================================================
   1. CONTAINER
   ============================================================ */
.custom-order-tracking {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #333;
}

/* ============================================================
   2. INTRODUCTION / HEADER
   ============================================================ */
.tracking-introduction {
    text-align: center;
    margin-bottom: 30px;
}

.tracking-title,
.custom-tracking-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #222;
    margin-bottom: 14px;
    text-align: center;
}

.tracking-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.tracking-benefits {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* ============================================================
   3. TRACKING FORM
   ============================================================ */
.custom-tracking-form {
    background-color: #f7f8fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.custom-tracking-form .form-instruction,
.form-instruction {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 18px;
}

.custom-tracking-form .form-row {
    margin-bottom: 15px;
}

/* Input fields */
.custom-tracking-form .input-text,
.input-text {
    width: 100%;
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.custom-tracking-form .input-text:focus,
.input-text:focus {
    border-color: #F7941D;
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15);
    outline: none;
}

/* Override Elementor kit border rule to match */
.elementor-kit-18 input:not([type="button"]):not([type="submit"]) {
    border-color: #ccc !important;
}

/* Input + button row */
.input-button-group,
.input-button-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* ============================================================
   4. BUTTONS  –  light-blue background, blue text, rounded
   ============================================================ */

/* Primary action button (Rastrear / Track) */
.rastrear-button {
    background-color: #D6E9F8 !important;
    color: #2A6EB5 !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s, box-shadow 0.2s !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.rastrear-button:hover {
    background-color: #C0DAF0 !important;
    box-shadow: 0 2px 6px rgba(42, 110, 181, 0.18) !important;
}

.rastrear-button svg {
    width: 18px;
    height: 18px;
    fill: #2A6EB5;
}

.rastrear-button .dashicons {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    line-height: 1;
    color: #2A6EB5;
}

/* Generic .button inside the plugin */
.custom-tracking-form .button,
.custom-order-tracking .button {
    background-color: #D6E9F8;
    color: #2A6EB5;
    font-family: 'Open Sans', sans-serif;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.custom-tracking-form .button:hover,
.custom-order-tracking .button:hover {
    background-color: #C0DAF0;
    box-shadow: 0 2px 6px rgba(42, 110, 181, 0.18);
}

.custom-order-tracking .button.view-details {
    font-size: 13px;
    padding: 8px 16px;
}

.custom-order-tracking .return-button {
    margin-top: 15px;
}

/* ============================================================
   5. ORDER DETAILS TABLE
   ============================================================ */
.shop_table.order_details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
}

.shop_table.order_details th,
.shop_table.order_details td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
    color: #333;
}

.shop_table.order_details thead th {
    background-color: #f5f6f8;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #444;
}

/* ============================================================
   6. ERROR MESSAGES
   ============================================================ */
.error {
    color: #9a3b26;
    background-color: #fdecea;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6bb;
    font-size: 14px;
}

/* ============================================================
   7. SECTION TITLES & ORDER INFO
   ============================================================ */
.custom-order-tracking .tracking-title {
    font-family: 'Lexend Deca', sans-serif;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 500;
    color: #222;
}

.custom-order-tracking .order-info {
    background-color: #f7f8fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.custom-order-tracking .items-title {
    font-family: 'Lexend Deca', sans-serif;
    margin: 25px 0 15px;
    font-size: 20px;
    font-weight: 500;
    color: #222;
}

/* ============================================================
   8. ORDER STATUS BADGES
   Using the orange primary accent for active statuses
   ============================================================ */
.custom-order-tracking .status-completed {
    color: #2e9e5a;
    font-weight: 600;
}

.custom-order-tracking .status-processing {
    color: #F7941D;          /* primary orange */
    font-weight: 600;
}

.custom-order-tracking .status-on-hold {
    color: #E8A317;
    font-weight: 600;
}

.custom-order-tracking .status-pending {
    color: #888;
    font-weight: 600;
}

.custom-order-tracking .status-cancelled,
.custom-order-tracking .status-failed {
    color: #d04437;
    font-weight: 600;
}

.custom-order-tracking .status-refunded {
    color: #888;
    font-weight: 600;
}

/* ============================================================
   9. ASSURANCE & CONTACT
   ============================================================ */
.tracking-assurance {
    font-size: 13px;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.tracking-contact {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 14px;
}

.contact-link {
    color: #F7941D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #d67e0f;
    text-decoration: underline;
}

/* ============================================================
   10. ORDER TIMELINE
   ============================================================ */
.order-timeline {
    margin: 30px 0;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-family: 'Open Sans', sans-serif;
}

.timeline-heading {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #222;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
}

.timeline-container {
    position: relative;
    padding-left: 45px;
}

.timeline-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    height: 100%;
    width: 2px;
    background-color: #dde3ea;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-bottom: 10px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Marker — uses the primary orange */
.timeline-marker {
    position: absolute;
    top: 5px;
    left: -33px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #F7941D;
    background-color: #fff;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F7941D;
    font-size: 12px;
}

.timeline-item.completed .timeline-marker {
    background-color: #F7941D;
    color: #fff;
}

.timeline-item.current .timeline-marker {
    background-color: #fff;
    border-color: #F7941D;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.18);
}

/* Content cards */
.timeline-content {
    background-color: #f7f8fa;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-item.current .timeline-content {
    border-left: 3px solid #F7941D;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.timeline-title {
    display: flex;
    align-items: center;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #222;
}

.timeline-title i {
    color: #F7941D;
    margin-right: 10px;
    font-size: 18px;
    min-width: 22px;
}

.timeline-text {
    font-size: 15px;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.55;
}

.timeline-info {
    font-size: 13px;
    color: #999;
    font-style: italic;
    margin-top: 8px;
}

/* ============================================================
   11. SHIPPING ADDRESS
   ============================================================ */
.shipping-address-container {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    background-color: #f7f8fa;
}

.shipping-address-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #222;
}

.shipping-address {
    font-size: 14px;
    line-height: 1.55;
    color: #444;
    font-family: 'Open Sans', sans-serif;
}

/* ============================================================
   12. RESPONSIVE – Tablet
   ============================================================ */
@media (max-width: 768px) {
    .custom-order-tracking {
        padding: 20px 16px;
    }

    .order-timeline {
        padding: 16px;
    }

    .timeline-container {
        padding-left: 35px;
    }

    .timeline-container:before {
        left: 10px;
    }

    .timeline-marker {
        left: -25px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .timeline-heading {
        font-size: 19px;
        margin-bottom: 18px;
    }

    .timeline-title {
        font-size: 15px;
    }

    .timeline-text {
        font-size: 14px;
    }

    .timeline-info {
        font-size: 12px;
    }

    .shop_table.order_details {
        font-size: 14px;
    }

    .shop_table.order_details th,
    .shop_table.order_details td {
        padding: 8px 10px;
    }

    .custom-tracking-form {
        padding: 16px;
    }

    .custom-tracking-form .form-instruction,
    .form-instruction {
        font-size: 15px;
    }

    .custom-tracking-form .button,
    .custom-order-tracking .button {
        padding: 10px 16px;
        font-size: 14px;
    }

    .custom-order-tracking .tracking-title {
        font-size: 20px;
    }

    .custom-order-tracking .items-title {
        font-size: 18px;
    }
}

/* ============================================================
   13. RESPONSIVE – Mobile
   ============================================================ */
@media (max-width: 600px) {
    .input-button-group,
    .input-button-container {
        flex-direction: column;
    }

    .rastrear-button {
        width: 100% !important;
        justify-content: center !important;
    }
}