/**
 * Access Hire Equipment Card Widget — Styles
 * Version: 1.0.7
 */

/* ============================================================
   Widget host — ensure Elementor gives the widget full height
   ============================================================ */
.elementor-widget-ahm_equipment_card,
.elementor-widget-ahm_equipment_card .elementor-widget-container {
    height: 100%;
    display: flex;
}

/* ============================================================
   Card wrapper
   ============================================================ */
.equipment-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    text-align: center;
    font-family: sans-serif;
}

@media (max-width: 768px) {
    .equipment-card-wrapper { padding: 15px; }
}

@media (max-width: 480px) {
    .equipment-card-wrapper { padding: 10px; }
}

/* ============================================================
   Image
   ============================================================ */
.equipment-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 13px;
}

/* ============================================================
   Title & subtitle
   ============================================================ */
.equipment-title {
    font-family: "Roboto", sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #7CA1D3 !important;
    margin: 0 0 5px;
    line-height: 1.2;
    text-transform: inherit;
}

.equipment-subtitle {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px;
    line-height: 1.3;
}

/* ============================================================
   Content area (grows to fill available space)
   ============================================================ */
.equipment-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.equipment-description {
    font-size: 15px;
    font-weight: 400;
    color: #000;
    line-height: 1.4;
    text-align: left;
    margin: 0 0 15px;
}

.features-list {
    flex-grow: 1; /* pushes footer to the bottom */
    list-style: disc;
    list-style-position: outside;
    padding: 0 0 0 20px;
    margin: 0 0 20px;
    text-align: left;
    color: #555;
}

.feature-item {
    font-size: 15px;
    color: #000;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* ============================================================
   Footer (price, links, button — always at the bottom)
   ============================================================ */
.equipment-footer {
    margin-top: auto;
}

.equipment-price {
    font-family: "Roboto", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #333 !important;
    line-height: 1.1;
    margin-bottom: 10px;
}

/* ============================================================
   Spec sheet link
   ============================================================ */
.spec-sheet-link {
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #C3172F !important;
    text-decoration: underline;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.spec-sheet-link:hover {
    color: #D63333;
    text-decoration: none;
}

/* =============================================================
   Enquire button
   ============================================================ */
.enquire-button {
    display: inline-block;
    font-family: "Helvetica", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
    background-color: #7CA1D3 !important;
    border: 1px solid #7CA1D3;
    border-radius: 4px;
    padding: 8px 24px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.enquire-button:hover {
    color: #E72B2D !important;
    background-color: #fff !important;
    border-color: #7CA1D3 !important;
}

@media (max-width: 768px) {
    .enquire-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* =============================================================
   Sold badge
   ============================================================ */
.equipment-sold-out {
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #dc3545;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 20px;
    border: 2px solid #dc3545;
    border-radius: 6px;
    background-color: #f8f9fa;
    text-align: center;
    margin-top: 10px;
}





/* ============================================================
   Equipment TABLE Widget
   ============================================================ */

.eqt-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.eqt-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    table-layout: auto;
    background-color: #ffffff;
}

/* Header */
.eqt-table thead th {
    background-color: #7CA1D3;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 16px 20px;
    text-align: left;
    border: none;
    white-space: nowrap;
}

/* Rows */
.eqt-table tbody tr {
    border-bottom: 1px solid #eef0f3;
    transition: background-color 0.2s ease;
}

.eqt-table tbody tr:last-child {
    border-bottom: none;
}

.eqt-row-even { background-color: #ffffff; }
.eqt-row-odd  { background-color: #f7f9fc; }

.eqt-table tbody tr:hover {
    background-color: #edf3fb;
}

/* Cells */
.eqt-table td {
    padding: 20px;
    vertical-align: middle;
    border: none;
}

/* ---- Model column ---- */
.eqt-col-model {
    min-width: 180px;
    width: 22%;
    text-align: left;
}

.eqt-model-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
    line-height: 1.3;
}

.eqt-model-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.4;
}

/* ---- Specs column ---- */
.eqt-col-specs {
    min-width: 240px;
    width: 36%;
    text-align: left;
}

.eqt-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eqt-specs-list li {
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 4px;
    padding-left: 14px;
    position: relative;
}

.eqt-specs-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #7CA1D3;
    font-weight: 700;
}

.eqt-specs-list li:last-child {
    margin-bottom: 0;
}

/* ---- Price column ---- */
.eqt-col-price {
    min-width: 150px;
    width: 20%;
    text-align: left;
}

.eqt-price {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 5px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.eqt-price-note {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
}

/* ---- More info column ---- */
.eqt-col-more {
    min-width: 150px;
    width: 22%;
    text-align: center;
}

/* Spec sheet link */
.eqt-spec-link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #7CA1D3 !important;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease;
    letter-spacing: 0.2px;
    text-align: center;
}

.eqt-spec-link:hover {
    color: #5a83b8 !important;
    text-decoration: underline;
}

/* Enquire button */
.eqt-enquire-btn {
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: #fff !important;
    background-color: #7CA1D3 !important;
    border: 2px solid #7CA1D3;
    border-radius: 5px;
    padding: 12px 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.eqt-enquire-btn:hover {
    color: #7CA1D3 !important;
    background-color: transparent !important;
    border-color: #7CA1D3 !important;
}

/* Sold badge */
.eqt-sold-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #dc3545;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border: 2px solid #dc3545;
    border-radius: 5px;
    background-color: #fff5f5;
}

/* ============================================================
   Responsive — stack on mobile
   ============================================================ */
@media (max-width: 768px) {
    .eqt-wrapper {
        box-shadow: none;
        border-radius: 0;
    }

    .eqt-table,
    .eqt-table thead,
    .eqt-table tbody,
    .eqt-table th,
    .eqt-table td,
    .eqt-table tr {
        display: block;
    }

    .eqt-table thead {
        display: none;
    }

    .eqt-table tbody tr {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 16px;
        padding: 4px 0;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    .eqt-table td {
        padding: 12px 16px;
        text-align: left !important;
    }

    .eqt-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        color: #7CA1D3;
        margin-bottom: 6px;
    }

    .eqt-col-price,
    .eqt-col-more {
        text-align: left;
    }

    .eqt-enquire-btn {
        width: 100%;
        text-align: center;
    }
}