.mikado-product-table {
    --mkpt-text-width: 30%;
    --mkpt-fade-color: #17191f;
    width: 100%;
}

.mikado-product-table__head {
    align-items: center;
    border-radius: 2px;
    box-sizing: border-box;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 18px;
    width: 100%;
}

.mikado-product-table__head-label {
    min-width: 0;
}

.mikado-product-table__view-radio {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.mikado-product-table__view-switcher {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 3px;
    padding: 3px;
}

.mikado-product-table__view-option {
    align-items: center;
    border-radius: 999px;
    box-sizing: border-box;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font-family: "Chakra Petch", sans-serif;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 28px;
    padding: 0 11px;
    transition: background-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.mikado-product-table__view-radio--table:checked ~ .mikado-product-table__head .mikado-product-table__view-option--table,
.mikado-product-table__view-radio--carousel:checked ~ .mikado-product-table__head .mikado-product-table__view-option--carousel {
    background: #e30613;
    color: #ffffff;
}

.mikado-product-table__body {
    position: relative;
    width: 100%;
}

.mikado-product-table__view-radio--carousel:checked ~ .mikado-product-table__body--table,
.mikado-product-table__view-radio--carousel:checked ~ .mikado-product-table__fade,
.mikado-product-table__view-radio--carousel:checked ~ .mikado-product-table__show-all {
    display: none;
}

.mikado-product-table__view-radio--table:checked ~ .mikado-product-table__carousel {
    display: none;
}

.mikado-product-table__toggle {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.mikado-product-table__row {
    align-items: center;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-sizing: border-box;
    display: grid;
    gap: 24px;
    grid-template-columns: var(--mkpt-text-width) minmax(0, 1fr);
    transition: background-color 0.18s ease, border-color 0.18s ease;
    width: 100%;
}

.mikado-product-table--limited .mikado-product-table__toggle:not(:checked) ~ .mikado-product-table__body .mikado-product-table__row--over-limit {
    display: none;
}

.mikado-product-table__fade {
    background: linear-gradient(to bottom, transparent, var(--mkpt-fade-color));
    display: block;
    height: 64px;
    margin-top: -64px;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.mikado-product-table__toggle:checked ~ .mikado-product-table__fade {
    display: none;
}

.mikado-product-table__show-all {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-family: "Chakra Petch", sans-serif;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    margin: 16px auto 0;
    min-height: 40px;
    padding: 0 18px;
    position: relative;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    z-index: 2;
}

.mikado-product-table__show-all:hover {
    background: #e30613;
    border-color: #e30613;
    color: #ffffff;
}

.mikado-product-table__hide-text,
.mikado-product-table__toggle:checked ~ .mikado-product-table__show-all .mikado-product-table__show-text {
    display: none;
}

.mikado-product-table__toggle:checked ~ .mikado-product-table__show-all .mikado-product-table__hide-text {
    display: inline;
}

.mikado-product-table__carousel {
    box-sizing: border-box;
    display: grid;
    gap: 14px;
    grid-auto-columns: minmax(180px, 240px);
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 14px 0 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.mikado-product-table__card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-sizing: border-box;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: space-between;
    min-height: 126px;
    padding: 16px;
    scroll-snap-align: start;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mikado-product-table__card:hover {
    background: rgba(227, 6, 19, 0.08);
    border-color: rgba(227, 6, 19, 0.46);
    transform: translateY(-1px);
}

.mikado-product-table__card-copy,
.mikado-product-table__card-title,
.mikado-product-table__card-size {
    display: block;
}

.mikado-product-table__card-title {
    font-family: "Chakra Petch", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.mikado-product-table__card-size {
    opacity: 0.72;
    font-size: 13px;
    line-height: 1.3;
    margin-top: 5px;
}

.mikado-product-table__card-action {
    align-items: center;
    align-self: flex-start;
    color: currentColor;
    display: inline-flex;
    font-size: 13px;
    gap: 7px;
}

.mikado-product-table__card-action .mikado-product-table__detail-icon {
    font-size: 15px;
}

.mikado-product-table__info {
    min-width: 0;
}

.mikado-product-table__title,
.mikado-product-table__size {
    overflow-wrap: anywhere;
}

.mikado-product-table__title {
    line-height: 1.25;
}

.mikado-product-table__size {
    line-height: 1.35;
    margin-top: 2px;
}

.mikado-product-table__media {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
}

.mikado-product-table__image {
    align-items: center;
    display: flex;
    min-width: 0;
    text-decoration: none;
}

.mikado-product-table__image img {
    display: block;
    height: 56px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.mikado-product-table__detail {
    align-items: center;
    border: 1px solid transparent;
    border-bottom-color: currentColor;
    box-sizing: border-box;
    display: inline-flex;
    gap: 7px;
    justify-content: center;
    line-height: 1.2;
    min-height: 32px;
    padding: 0 2px;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.mikado-product-table__detail--icon {
    aspect-ratio: 1;
    border-color: currentColor;
    border-radius: 999px;
    height: 36px;
    padding: 0;
    width: 36px;
}

.mikado-product-table__detail--text_icon {
    border-bottom-color: currentColor;
}

.mikado-product-table__detail-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 18px;
    justify-content: center;
    line-height: 1;
}

.mikado-product-table__detail-icon i {
    display: block;
    font-size: 1em;
    line-height: 1;
}

.mikado-product-table__detail-icon svg {
    display: block;
    fill: currentColor;
    height: 1em;
    width: 1em;
}

.mikado-product-table__detail-text {
    display: inline-block;
}

.mikado-product-table__row:hover .mikado-product-table__image img {
    filter: contrast(1.04) saturate(1.03);
}

.mikado-product-table__row:hover .mikado-product-table__detail {
    transform: translateX(1px);
}

@media (max-width: 1024px) {
    .elementor-element:has(> .elementor-widget-mikado_product_table) {
        max-width: 100% !important;
        width: 100% !important;
    }

    .elementor-widget-mikado_product_table,
    .elementor-widget-mikado_product_table > .elementor-widget-container,
    .elementor-widget-mikado_product_table .mikado-product-table {
        box-sizing: border-box;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .mikado-product-table {
        --mkpt-text-width: 38%;
    }

    .mikado-product-table__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        min-height: 40px;
        padding: 10px 12px;
    }

    .mikado-product-table__view-switcher {
        width: 100%;
    }

    .mikado-product-table__view-option {
        flex: 1 1 0;
        min-width: 0;
    }

    .mikado-product-table__row {
        align-items: center;
        gap: 10px;
        grid-template-columns: minmax(104px, var(--mkpt-text-width)) minmax(0, 1fr);
        min-height: 72px;
    }

    .mikado-product-table__media {
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mikado-product-table__title {
        font-size: min(15px, 1em);
        line-height: 1.18;
    }

    .mikado-product-table__size {
        font-size: min(13px, 0.9em);
        line-height: 1.25;
        margin-top: 3px;
    }

    .mikado-product-table__image img {
        height: 40px;
        object-position: center;
    }

    .mikado-product-table__detail {
        font-size: 12px;
        min-height: 30px;
    }

    .mikado-product-table__detail--icon {
        height: 32px;
        width: 32px;
    }

    .mikado-product-table__show-all {
        font-size: 13px;
        justify-content: center;
        min-height: 38px;
        width: 100%;
    }

    .mikado-product-table__carousel {
        grid-auto-columns: minmax(150px, 76%);
        gap: 10px;
    }

    .mikado-product-table__card {
        border-radius: 12px;
        min-height: 112px;
        padding: 14px;
    }
}

@media (max-width: 420px) {
    .mikado-product-table {
        --mkpt-text-width: 42%;
    }

    .mikado-product-table__row {
        gap: 8px;
        grid-template-columns: minmax(96px, var(--mkpt-text-width)) minmax(0, 1fr);
    }

    .mikado-product-table__media {
        gap: 6px;
    }

    .mikado-product-table__image img {
        height: 36px;
    }
}
