/* =========================================
   GENERIC PRODUCT
========================================= */

.generic-product {

    position: fixed;

    inset: 0;

    z-index: 1100;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.2s ease;

}


/* =========================================
   VISIBLE
========================================= */

.generic-product--visible {

    opacity: 1;

    pointer-events: auto;

}


/* =========================================
   OVERLAY
========================================= */

.generic-product__overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.45);

    box-sizing: border-box;

}


/* =========================================
   PANEL
========================================= */

.generic-product__panel {

    width: min(
        100%,
        420px
    );

    padding: 24px;

    background: white;

    border-radius: 16px;

    box-sizing: border-box;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.25);

}


/* =========================================
   HEADER
========================================= */

.generic-product__header {

    margin-bottom: 24px;

}


.generic-product__title {

    margin: 0;

    font-size: 22px;

    line-height: 1.2;

}


/* =========================================
   CONTENT
========================================= */

.generic-product__content {

    display: flex;

    flex-direction: column;

    gap: 18px;

    margin-bottom: 24px;

}


/* =========================================
   FIELD
========================================= */

.generic-product__field {

    display: flex;

    flex-direction: column;

    gap: 6px;

}


.generic-product__label {

    font-size: 14px;

    font-weight: 600;

}


.generic-product__input {

    width: 100%;

    min-height: 44px;

    padding: 0 12px;

    border:
        1px solid #dddddd;

    border-radius: 8px;

    background: white;

    font: inherit;

    box-sizing: border-box;

    outline: none;

}


.generic-product__input:focus {

    border-color: #111111;

}


/* =========================================
   ACTIONS
========================================= */

.generic-product__actions {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

}


.generic-product__button {

    min-height: 44px;

    padding: 0 18px;

    border: none;

    border-radius: 8px;

    font: inherit;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;

}


.generic-product__button:active {

    transform: scale(0.97);

}


.generic-product__button:hover {

    opacity: 0.9;

}


.generic-product__button--primary {

    background: #111111;

    color: white;

}


.generic-product__button--secondary {

    background: #eeeeee;

    color: #111111;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .generic-product__overlay {

        padding: 16px;

    }


    .generic-product__panel {

        padding: 20px;

        border-radius: 14px;

    }


    .generic-product__actions {

        flex-direction: column;

    }


    .generic-product__button {

        width: 100%;

    }

}