:root {
  --primary-color: #224231;
  --primary-color-40: #22423140;
  --secondary-color: #4E685A;
  --secondary-color-40: #4E685A40;
  --secondary-color-90: #4E685A90;
  --background-hover: #D5D5D530;
  --border-color: #D5D5D5;
  --border-bottom-color: #4E685A50;
  --grey-text: #B7B7B7;
}

/* 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;
}

input.part-add-to-cart {
    background-color: var(--secondary-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-add-to-cart:hover {
    background-color: var(--secondary-color-90) !important;
}

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;
}

.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;
}
.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;
}
.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;
    background-color: var(--background-hover);
    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;
}

.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 */
}

.part-description {
    flex: 2;
}

.part-description.mobile {
    background-color: var(--background-hover);
    display: none;
    flex: 100%;
}

.part-description.table {
    display: block;
}

.part-sku {
    flex: 0.25;
}

.part-price {
    flex: 0.5;
}

.part-availability {
    flex: 0.5;
    padding: 0px;
}

@media (max-width: 768px) {
    .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.75;
    }
    .part-availability {
        flex: 1.5;
    }
    .part-sku {
        flex: 0.75;
    }
    .part-description.table {
        display: none;
    }
    .no-parts-link {
        margin-top: 10px;
    }
}