/* Style for the overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent gray */
  z-index: 1000; /* Higher z-index to appear above other elements */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style for the loading spinner icon */
i.pi.pi-spin.pi-spinner.loading-icon {
    font-size: 4rem;
    color: #fff;
}

.part-add-to-cart {
    background-color: var(--primary-color) !important;
    color: white;
    font-size: 14px;
    font-weight: 800;
    width: 100%;
    height: 100%;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
}



input.part-out-of-stock {
    background-color: var(--grey-text) !important;
    color: var(--border-color);
    font-size: 14px;
    font-weight: 800;
    width: 100%;
    height: 100%;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
    padding: 0 !important;
}

.part-ffl-required {
    color: var(--grey-text);
    font-size: 14px;
    font-weight: 800;
    word-wrap: break-word;
    white-space: normal;
}

.part-item.part-description.detail {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.part-item-wrapper.header .part-item.part-availability {
    padding-top: 25px;
}

.part-item.part-description {
    text-align: left;
}

.part-item.part-availability input[type="submit"] {
    border: none;
    background-color: transparent;
    padding: 10px;
}

.expand-icon {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.ffl-request-icon{
    color: var(--grey-text);
}

.ffl-required-wrapper {
    width: 100%;
    height: 100%;
    --padding-left: 25px;
    --padding-right: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    color: var(--primary-color);
    gap:10px;
}
.support-icon{
    padding:5px !important;
}
.no-parts-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 50px;
}

.no-parts-text {
    margin-right: 5px;
    font-size: 20px;
    color: var(--primary-color);
}
.no-parts-link{
    text-decoration: none !important;
}
.part-page{
    margin:0px;
}

.part-list{
 display: flex;
    flex-direction: column;
}

.part-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-bottom-color);
}

.part-item-wrapper.header {
    background: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    font-size: 20px;
    font-weight: 600;
    z-index: 10;
}

.part-item {
    padding: 25px;
    border: 0.5px solid var(--background-hover);
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflowing content */
    text-overflow: ellipsis; /* Show ellipsis for overflowed text */
    justify-content: center;
    align-items: center;
    display: flex;
    text-wrap-mode: wrap;
    word-break: break-word;
}

.part-description {
    flex: 2;
}

.part-description.mobile {
    display: none;
    flex: 100%;
}

.part-description.table {
    display: flex;
    justify-content: left;
    align-items: center;
}

.part-ref {
    flex: 0.5;
}

.part-sku {
    flex: 0.25;
}

.part-price {
    flex: 0.25;
}

.part-availability {
    flex: 0.5;
}
.part-availability {
    flex: 0.5;
}

@media (max-width: 1024px) {
    .parts-wrapper {
      width: 100% !important;
    }
    .part-item-wrapper.header {
        font-size: 18px;
        font-weight: 400;
    }
    .part-ffl-required {
        font-size:12px;
        padding-top: 5px;
    }
    .part-description.mobile {
        display: block;
    }
    .part-price {
        flex: 0.4;
    }
    .part-availability {
        flex: 0.75;
    }
    .part-sku {
        flex: 0.5;
    }
    .part-ref {
        flex: 0.15;
    }
    .part-description.table {
        display: none;
    }
    .no-parts-link {
        margin-top: 10px;
    }

    .part-item{
        padding:10px !important;
    }
    .part-item.part-description.mobile {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 14px;
    }
    .parts-list {
        width: 100vw !important;
    }
}