/* Item - Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.item__layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0 1rem 0;
}

.item__main {
    flex: 1;
}

.item__side {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media only screen and (min-width: 993px) {
    .item__layout {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
    }

    .item__side {
        width: 25%;
        min-width: 300px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Item - Details
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.item__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.details__img-container {
    padding: 1rem;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--grey-200);
}

.details__legend {
    font-size: var(--text-xs);
    color: var(--slate-700);
    text-align: left;
    margin-top: 0.5rem;
}

.details__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.details__title {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.details__description {
    font-size: var(--text-sm);
    color: var(--slate-700);
}

.details__attributes {
    font-size: var(--text-sm);
    color: var(--slate-700);
}

.details__attribute {
    margin-bottom: 0.25rem;
}

@media only screen and (min-width: 769px) {
    .item__details {
        flex-direction: row;
        padding: unset;
    }

    .details__img-container {
        width: 400px;
    }

    .details__info {
        padding: 1rem 0;
    }
}

@media only screen and (min-width: 993px) {
    .item__details {
        flex-direction: column;
    }

    .details__img-container {
        width: 480px;
    }
}

@media only screen and (min-width: 1228px) {
    .item__details {
        flex-direction: row;
    }
}

/* Item - Order
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.item__order {
    background-color: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    padding: 1.5rem;
}

.item__order-form {
    display: flex;
    flex-direction: column;
    /*gap: 1.5rem;*/
}

.item__price {
    font-weight: bold;
    font-size: var(--text-xl);
    margin-bottom: 1rem;
}

.item__order-action {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.item__order-qty {
    font-size: var(--text-sm);
    height: 2.5rem;
    padding: 0 0.875rem;
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    box-shadow: none;
    width: 20%;
}

.item__order-btn {
    width: 80%;
}

.item__cross-reference {
    border-top: 1px solid var(--grey-200);
    padding-top: 1rem;
    font-size: var(--text-sm);
}

.item__sign-in-title {
    font-size: var(--text-lg);
    margin-bottom: 1.5rem;
}

.cross-reference__icon {
    color: #60a5fa;
    margin-right: 0.5rem;
}

.cross-reference__link {
    text-decoration: underline;
    color: #1d4ed8;
}

.cross-reference__link:hover {
    color: #2563eb;
}

/* Item - Stock
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.item__stock {
    background-color: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    padding: 1.5rem;
}

.item__stock-title {
    font-size: var(--text-sm);
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.item__stock-text {
    color: var(--slate-700);
    font-size: var(--text-sm);
}


/* Item - Warning
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.item-warning {
    background-color: var(--yellow-50);
    padding: 1.5rem;
    border-radius: 4px;
    font-size: var(--text-sm);
    border: 1px solid var(--yellow-400);
}

.item-warning__icon {
    color: var(--yellow-400);
    margin-right: 0.5rem;
}

.item-warning__title {
    color: var(--yellow-800);
    margin-bottom: 0.75rem;
    font-weight: 700;
    /*text-align: center;*/
}

.item-warning__body {
    color: var(--yellow-700);
    line-height: 1.5;
    font-size: var(--text-sm);
    /*text-align: center;*/
}

.item-warning__list {
    list-style-type: disc;
}

.item-warning__list li:not(:last-child) {
    margin-bottom: 4px;
}

.item-warning__link {
    text-decoration: underline;
    color: var(--yellow-700);
}

.item-warning__link:hover {
    color: var(--yellow-600);
}

/* Item - RLS Warning
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.warning__rls {
    width: 100%;
    margin-bottom: 1rem;
}

/* Item - Uploads
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.item-uploads {
    margin: 2rem 0 2rem 0;
}

.item-uploads__title {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
    font-weight: 700;
}

@media only screen and (min-width: 769px) {
    .item-uploads {
        margin: 4rem 0 4rem 0;
    }

    .item-uploads__container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }

    .item-uploads__image {
        flex-basis: 50%;
    }

    .item-uploads__files {
        flex-basis: 50%;
    }
}

/* Product - Uploads / Image
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.upload-image__container {
    width: 100%;
}

.upload-image__label {
    font-size: var(--text-sm);
    display: block;
    margin-bottom: 0.5rem;
    color: var(--grey-700);
}

.upload-image__input-container {
    width: 100%;
    display: flex;
    align-items: center;
    font-size: var(--text-base);
    margin-bottom: 0.875rem;
}

.upload-image__input {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 10px;
    cursor: pointer;
}

.upload-image__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

/* Product - Uploads / File
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.upload-file__container {
    width: 100%;
}

.upload-file__label {
    font-size: var(--text-sm);
    display: block;
    margin-bottom: 0.5rem;
    color: var(--grey-700);
}

.upload-file__select-container {
    width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    height: 2.5rem;
    font-size: var(--text-base);
    margin-bottom: 0.875rem;
}

.upload-file__select {
    font-size: var(--text-sm);
    appearance: none;
    width: 100%;
    height: 100%;
    padding: 0 0.875rem;
    border: 1px solid var(--grey-200);
    background-color: var(--grey-50);
}

.upload-file__input-container {
    width: 50%;
    display: flex;
    align-items: center;
    font-size: var(--text-base);
    margin-bottom: 0.875rem;
}

.upload-file__input-container--file {
    width: 100%;
}

.upload-file__input {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.upload-file__input--file {
    padding: 6px 10px;
}

.upload-file__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

/* Item - Info
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.item-info__section {
    padding: 0 0 2rem 0;
}

.item-info__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.item-info__specs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media only screen and (min-width: 769px) {
    .item-info__section {
        padding: 2rem 0 4rem 0;
    }

    .item-info__container {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }

    .item-info__specs {
        flex-basis: 50%;
        gap: 2.5rem;
    }

    .item-info__avail {
        flex-basis: 50%;
    }
}


/* Item - Specifications
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.specifications__title {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
    font-weight: 700;
}

.specifications__table {
    width: 100%;
    border: solid 1px var(--slate-200);
    border-radius: 4px;
    background-color: white;
    border-spacing: 0;
    font-size: var(--text-sm);
}

.specifications__cell {
    padding: 1rem;
}

.specifications__cell--name {
    font-weight: 700;
    width: 50%;
}

.specifications__row:nth-child(even) .specifications__cell:first-child {
    background-color: var(--grey-50);
}

.specifications__row:nth-child(odd) .specifications__cell:first-child {
    background-color: var(--grey-100);
}

.specifications__row:nth-child(odd) .specifications__cell:last-child {
    background-color: var(--grey-50);
}

/* Item - Downloads
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.downloads__title {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Item - Availability
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.item-availability {
    border-radius: 4px;
    overflow: scroll;
    border: 1px solid var(--slate-200);
    max-height: 26rem;
}

.item-availability__title {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
}

.item-availability__table {
    width: 100%;
    font-size: var(--text-sm);
    border-spacing: 0;
    border-collapse: collapse;
}

.item-availability__thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.item-availability__tbody {
    background-color: white;
    color: var(--slate-700);
}

.item-availability__cell {
    padding: 1rem 1.5rem;
    text-align: left;
}

.item-availability__row:not(:last-of-type) {
    border-bottom: 1px solid var(--slate-100);
}

.item-availability__cell--right {
    text-align: right;
}

.item-availability__cell--head {
    border-bottom: 1px solid var(--slate-100);
    padding: 1rem 1.5rem;
    background-color: var(--grey-50);
}

.item-availability__cell--end {
    width: 20%;
}

.item-availability__branch {
    margin-bottom: 0.5rem;
    text-decoration: underline;
    color: var(--slate-900);
    font-weight: 700;
}

.item-availability__address {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.item-availability__link {
    color: var(--primary-700);
    text-decoration: underline;
}

.item-availability__icon {
    color: var(--primary-400);
    margin-left: 0.5rem;
}









