/* Base Popup Styling */
.tracking-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}


.check-green {
  color: #0f9d58; /* same green as your image */
  font-size: 20px; /* adjust size as needed */
}

.arrow-green {
  color: #0f9d58; /* same green tone as your image */
  font-size: 20px; /* adjust to your desired size */
  padding-top: 2px;
  padding-left: 7px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons .icon {
  background-color: #ffffff;
  color: #1e8755; /* green color */
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s ease;
}

.social-icons .icon:hover {
  background-color: #1e8755;
  color: #ffffff;
}

.footer a{
    text-decoration: none;
}

.footer a:hover{
    text-decoration: none;
}

.green-check-align{
    align-items: center;
    color: rgb(30,135,85);
    border-collapse: collapse;
    border: 1.0px solid rgb(218,218,218);
    border-top: 0;
    border-bottom: 0;
}

/* Popup Container */
.popup-content {
    background: #fff;
    width: 80%;
    max-width: 1000px;
    margin: 5% auto;
    border-radius: 12px;
    /* overflow: hidden; */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

/* Header */
.popup-header {
    background: #0056b3f2;
    color: white;
    padding: 15px 20px;
    display: flex;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.popup-header h2 {font-size: 20px;color: #ffffff;}

.tracking-id {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 6px;
    margin-left: 10px;
}

.close {
    cursor: pointer;
    font-size: 24px;
    color: white;
}

/* Body Layout */
.popup-body {
    display: flex;
    gap: 20px;
    padding: 10px;
    overflow: scroll;
}

.popup-map {
    flex: 1;
    min-height: 400px;
    border-radius: 10px;
    background: #eaeaea;
}

.popup-details {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    font-size: 15px;
}

/* Freight Table */
.freight-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #333;
}

.freight-table th {
    text-align: left;
    width: 180px;
    padding: 0px 10px;
    color: #333;
    font-weight: 600;
}

.freight-table td {
    padding: 4px 10px;
    font-weight: 500;
    font-family: sans-serif;
    font-weight: bold;
    text-align: right;
    color: #222;
}

.freight-table tr:nth-child(odd) {/* border-bottom: 1px solid #ddd; */}

.status-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.paid {
    background-color: #d9fdd3;
    color: #056608;
}

.status-badge.pending,
.status-badge.unpaid,
.status-badge.other {
    background-color: #fff4cc;
    color: #a07800;
}


/* === Typography === */
.tracking-id-white-background {
    background-color: white;
    color: #000000;
    font-family: sans-serif;
    padding: 6px 14px;
    /* font-weight: bold; */
    font-size: 1.25rem;
    border-radius: 30px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.green-heading-center {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d6945;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Responsive Typography === */

/* Tablets */
@media (max-width: 1024px) {
    .tracking-id-white-background {
        font-size: 1.1rem;
        padding: 5px 10px;
    }

    .green-heading-center {
        font-size: 1.1rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .tracking-id-white-background {
        font-size: 1rem;
        padding: 5px 8px;
        margin-top: 12px;
    }

    .green-heading-center {
        font-size: 1rem;
        margin-bottom: 8px;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .tracking-id-white-background {
        padding: 5px 6px;
        /* width: 80%; */
        width: 69%;
        text-align: center;
        border-radius: 34px;
    }

    .green-heading-center {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
}


/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (<=1024px) */
@media (max-width: 1024px) {
    .popup-content {
        width: 90%;
        margin: 8% auto;
    }

    .popup-body {
        flex-direction: column;
        align-items: center;
    }

    .popup-map,
    .popup-details {
        width: 100%;
        /* min-height: 300px; */
    }

    .popup-header h2 {
        font-size: 18px;
    }

    .tracking-id {
        margin-top: 10px;
    }
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
    
    .tracking-popup {
        display: none;
        position: fixed;
        /* z-index: 99999; */
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
    }
    .popup-content {
        width: 95%;
        margin: 5% auto;
    }

    .popup-header {
        flex-direction: column;
        text-align: center;
    }

    .popup-header h2 {
        font-size: 18px;
        margin-bottom: 0;
    }

    .popup-body {
        padding: 15px;
        gap: 15px;
    }

    .popup-map {
        min-height: 250px;
    }

    .popup-details {
        padding: 15px;
        font-size: 14px;
    }

    .freight-table th,
    .freight-table td {
        font-size: 13px;
        display: block;
        padding: 0px 0;
        width: 100%;
    }

    .freight-table tr {
        display: block;
        margin-bottom: 10px;
    }

    .freight-table tr:not(:last-child) {
        border-bottom: 1px solid #ddd;
    }

    .close {
        font-size: 22px;
        position: absolute;
        /* top: 10px; */
        right: 25px;
    }
}

/* Very Small Devices (<=480px) */
@media (max-width: 480px) {
    .tracking-popup {
        display: none;
        position: fixed;
        z-index: 99999;
        left: 0;
        top: 0;
        right: 0;
        padding-inline: 20px;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
    }
    .popup-content {
        width: 95%;
        margin: 12% auto;
    }

    .popup-header {
        padding: 9px;
    }

    .popup-body {
        padding: 10px;
    }

    .popup-map {
        min-height: 200px;
    }

    .green-heading-center {
        font-size: 16px;
    }
    .close {
        font-size: 22px;
        position: absolute;
        top: 50px; 
        right: 40px;
    }
}

#teaser-c31d8403d5-cta-b91355a3a3:hover {
    text-decoration: none;
}

/* Default (desktop) */
.popup-details h3 {
    font-size: 1.5rem;
    /* ~24px */
    font-weight: 700;
    color: #0056b3;
    text-align: center;
}

/* Tablets */
@media (max-width: 1024px) {
    .popup-details h3 {
        font-size: 1.3rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .popup-details h3 {
        font-size: 1.1rem;
        text-align: center;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .popup-details h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
}

/* === Freight Details Flex Layout === */
.freight-table tr {
    display: flex;
    border-bottom: 1px solid #ddd;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
    padding: 1px 9px;
    background-color: #f9f9f9;
}


/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .freight-table tr {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 10px;
        background: #f9f9f9;
    }


}

@media (max-width: 480px) {
    .freight-table tr {
        padding: 8px;
        display: flex;
    
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        border-radius: 0;
        justify-content: center;
    }

}