/* Mobility Product Tabs */

.mpt-tabs {
    font-size: 16px;
    line-height: 1.5;
}

.mpt-tabs-nav {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 0 0 0.5rem;
}

.mpt-tabs-nav button {
    position: relative;
    border: none;
    background: none;
    padding: 14px 0 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    color: #555;
}

.mpt-tabs-nav button.mpt-tab--active {
    color: #111;
}

.mpt-tabs-nav button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background-color: transparent;
    transition: background-color .2s ease;
}

.mpt-tabs-nav button.mpt-tab--active::after {
    background-color: #111;
}

.mpt-tabs-panels {
    margin-top: 16px;
}

.mpt-tab-panel {
    display: none;
}

.mpt-tab-panel--active {
    display: block;
}

/* Description */
.mpt-description {
    padding: 8px 0;
}

/* Reviews */
.mpt-reviews {
    background-color: #f7f8fa;
    border-radius: 12px;
    padding: 24px 24px 28px;
}

.mpt-reviews__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.mpt-reviews__store {
    font-size: 22px;
    margin: 0 0 6px;
}

.mpt-reviews__rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.mpt-reviews__score {
    font-size: 28px;
    font-weight: 600;
}

.mpt-reviews__stars i {
    color: #fbbc04;
    margin-right: 2px;
}

.mpt-reviews__count {
    color: #555;
}

.mpt-reviews__google {
    font-weight: 500;
}

.mpt-reviews__button {
    padding: 12px 22px;
    border-radius: 999px;
    background-color: #1769ff;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.mpt-reviews__button:hover {
    opacity: 0.9;
}

.mpt-reviews__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.mpt-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    font-size: 14px;
}

.mpt-review-card__header {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    align-items: center;
}

.mpt-review-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background-color: #ff6b6b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
}

.mpt-review-card__name {
    font-weight: 600;
    margin-bottom: 2px;
}

.mpt-review-card__stars i {
    color: #fbbc04;
    margin-right: 1px;
}

.mpt-review-card__date {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.mpt-review-card__text {
    margin-top: 6px;
    color: #333;
}

/* Shipping */
.mpt-shipping {
    padding: 8px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .mpt-reviews__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mpt-tabs-nav {
        gap: 24px;
    }

    .mpt-tabs-nav button {
        font-size: 16px;
        padding-top: 10px;
    }

    .mpt-reviews {
        padding: 16px 14px 20px;
    }

    .mpt-reviews__list {
        grid-template-columns: 1fr;
    }
}


/* Override Elementor / theme default button styles for tab buttons */
.mpt-tabs-nav button,
.mpt-tabs-nav button:hover,
.mpt-tabs-nav button:focus,
.mpt-tabs-nav button:active {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: inherit;
}


/* Review form */
.mpt-review-form {
    display: none;
    margin: 24px 0;
    padding: 16px 20px;
    background: #f7f8fa;
    border-radius: 12px;
}

.mpt-review-form--open {
    display: block;
}

.mpt-review-form h4 {
    margin: 0 0 12px;
    font-size: 18px;
}

.mpt-review-form__row {
    margin-bottom: 12px;
}

.mpt-review-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.mpt-review-form input[type="text"],
.mpt-review-form textarea,
.mpt-review-form select {
    width: 100%;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.4;
}

.mpt-review-form textarea {
    min-height: 100px;
    resize: vertical;
}

.mpt-review-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: #1363df;
    color: #fff;
}

.mpt-review-form button[type="submit"]:hover {
    opacity: 0.9;
}

/* Make sure Elementor / theme styles do not break our button */
.mpt-review-form button[type="submit"],
.mpt-review-form button[type="submit"]:hover,
.mpt-review-form button[type="submit"]:focus {
    box-shadow: none !important;
}
