/* MAD TRAILS COMPARE */

.mt-compare-btn {
    width: 100%;
    margin-top: 9px;
    border: 1px solid #d9e1ec;
    background: #ffffff;
    color: #001f54;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    transition: all .25s ease;
}

.mt-compare-btn:hover,
.mt-compare-btn.active {
    background: #7b0000;
    color: #ffffff;
    border-color: #7b0000;
}

.mt-compare-btn.loading,
.mt-compare-remove.loading,
.mt-compare-clear.loading {
    opacity: .6;
    pointer-events: none;
}

.single-product .mt-compare-btn {
    width: auto;
    min-width: 150px;
    margin-top: 12px;
}

.mt-compare-counter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    background: #7b0000;
    padding: 9px 13px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
}

.mt-compare-counter:hover {
    color: #ffffff;
    background: #001f54;
}

.mt-compare-counter strong {
    background: #d6a21f;
    color: #111111;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 12px;
}

/* Floating drawer button */

.mt-compare-floating {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 9998;
    background: #7b0000;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    padding: 12px 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.mt-compare-floating strong {
    background: #d6a21f;
    color: #111111;
    border-radius: 999px;
    padding: 2px 7px;
    margin-left: 4px;
}

/* Drawer */

.mt-compare-drawer {
    position: fixed;
    right: -390px;
    top: 0;
    width: 370px;
    max-width: calc(100% - 20px);
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -12px 0 35px rgba(0,0,0,.22);
    transition: right .3s ease;
}

.mt-compare-drawer.open {
    right: 0;
}

.mt-compare-drawer-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mt-compare-drawer-head {
    background: #001f54;
    color: #ffffff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mt-compare-drawer-head strong {
    font-size: 18px;
}

.mt-compare-drawer-close {
    background: transparent;
    color: #ffffff;
    border: 0;
    font-size: 30px;
    cursor: pointer;
}

.mt-compare-drawer-list {
    padding: 14px;
    overflow-y: auto;
    flex: 1;
    display: grid;
    align-content: start;
    gap: 12px;
}

.mt-compare-drawer-item {
    display: grid;
    grid-template-columns: 70px 1fr 30px;
    gap: 10px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px;
    background: #f8fafc;
}

.mt-compare-drawer-item img {
    width: 70px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
}

.mt-compare-drawer-item strong {
    display: block;
    color: #001f54;
    font-size: 13px;
    line-height: 1.35;
}

.mt-compare-drawer-item small {
    display: block;
    color: #7b0000;
    font-weight: 800;
    margin-top: 3px;
}

.mt-compare-remove {
    border: 0;
    background: #7b0000;
    color: #ffffff;
    border-radius: 999px;
    width: 26px;
    height: 26px;
    font-weight: 900;
    cursor: pointer;
}

.mt-compare-empty {
    text-align: center;
    color: #64748b;
    font-weight: 700;
    padding: 20px;
}

.mt-compare-drawer-actions {
    padding: 14px;
    border-top: 1px solid #e2e8f0;
    display: grid;
    gap: 10px;
}

.mt-compare-drawer-actions a,
.mt-compare-drawer-actions button {
    display: block;
    text-align: center;
    border: 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.mt-compare-drawer-actions a {
    background: #001f54;
    color: #ffffff;
}

.mt-compare-drawer-actions button {
    background: #f3f4f6;
    color: #7b0000;
}

/* Compare Page */

.mt-compare-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 18px;
    font-family: Arial, Helvetica, sans-serif;
}

.mt-compare-page-head {
    text-align: center;
    margin-bottom: 30px;
}

.mt-compare-page-head span {
    display: inline-block;
    color: #7b0000;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mt-compare-page-head h1 {
    color: #001f54;
    font-size: clamp(32px, 5vw, 52px);
    margin: 0 0 10px;
}

.mt-compare-page-head p {
    max-width: 760px;
    margin: 0 auto;
    color: #5f6b7a;
    font-size: 17px;
    line-height: 1.7;
}

.mt-compare-page-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.mt-compare-page-actions a,
.mt-compare-page-actions button {
    border: 0;
    background: #001f54;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.mt-compare-page-actions button {
    background: #7b0000;
}

.mt-compare-table-wrap {
    overflow-x: auto;
    border: 1px solid #d9e1ec;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0,31,84,.1);
}

.mt-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
    background: #ffffff;
}

.mt-compare-table th {
    width: 170px;
    background: #001f54;
    color: #ffffff;
    text-align: left;
    padding: 16px;
    font-weight: 900;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.mt-compare-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #111827;
    vertical-align: top;
    min-width: 220px;
}

.mt-compare-product-head {
    position: relative;
    display: grid;
    gap: 10px;
}

.mt-compare-product-head img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    background: #f3f4f6;
}

.mt-compare-product-head strong {
    color: #001f54;
    font-size: 16px;
    line-height: 1.35;
}

.mt-compare-product-head a {
    display: inline-block;
    background: #001f54;
    color: #ffffff;
    padding: 9px 12px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 900;
    text-align: center;
}

.mt-compare-page-empty {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 45px 20px;
}

.mt-compare-page-empty h2 {
    color: #001f54;
    margin: 0 0 10px;
}

.mt-compare-page-empty p {
    color: #5f6b7a;
    margin-bottom: 20px;
}

.mt-compare-page-empty a {
    display: inline-block;
    background: #001f54;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 900;
}

@media (max-width: 700px) {
    .single-product .mt-compare-btn {
        width: 100%;
    }

    .mt-compare-floating {
        right: 12px;
        bottom: 76px;
    }

    .mt-compare-drawer {
        width: 340px;
    }
}