/* =========================================================
   RAIH OFFERING BLOCK
========================================================= */

.offering-selection-list {
    display: grid;
    gap: 8px;
}

.offering-selection-item {
    position: relative;
}

.offering-selection-item input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.offering-selection-card {
    min-height: 62px;

    padding: 9px;

    display: grid;
    grid-template-columns:
        48px minmax(0, 1fr);

    gap: 10px;
    align-items: center;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 11px;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease;
}

.offering-selection-item
input:checked
+
.offering-selection-card {
    background: #f3f2ff;
    border-color: #817af3;
}

.offering-selection-image {
    width: 48px;
    height: 48px;

    overflow: hidden;

    display: grid;
    place-items: center;

    color: #5b5ce2;

    background:
        linear-gradient(
            145deg,
            #efefff,
            #e9fbf8
        );

    border-radius: 9px;

    font-size: 15px;
    font-weight: 850;
}

.offering-selection-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.offering-selection-copy {
    min-width: 0;
}

.offering-selection-copy strong {
    display: block;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 9px;
}

.offering-selection-copy span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 7px;
}


/* =========================================================
   EDITOR PREVIEW OFFERINGS
========================================================= */

.preview-offering-stack {
    margin-top: 7px;

    display: grid;
    gap: 5px;
}

.preview-offering-card {
    overflow: hidden;

    display: grid;
    grid-template-columns:
        44px minmax(0, 1fr);

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.preview-offering-image {
    min-height: 48px;

    display: grid;
    place-items: center;

    color: #5b5ce2;
    background: #efefff;

    font-size: 10px;
    font-weight: 850;
}

.preview-offering-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.preview-offering-copy {
    min-width: 0;

    padding: 7px;
}

.preview-offering-copy strong {
    display: block;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 7px;
}

.preview-offering-price {
    margin-top: 2px;

    color: #4f46e5;

    font-size: 7px;
    font-weight: 800;
}


/* =========================================================
   PUBLIC OFFERING SECTION
========================================================= */

.public-offering-section {
    margin-top: 23px;

    text-align: left;
}

.public-offering-heading {
    margin-bottom: 11px;
}

.public-offering-heading h2 {
    margin: 0;

    color: #0f172a;

    font-size: 15px;
    letter-spacing: -.02em;
}

.public-offering-heading p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 10px;
    line-height: 1.55;
}

.public-offering-list {
    display: grid;
    gap: 11px;
}

.public-offering-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow:
        0 8px 22px
        rgba(15, 23, 42, .045);
}

.public-offering-image {
    width: 100%;

    /*
    |--------------------------------------------------------------------------
    | RAIH Offering Image Standard
    |--------------------------------------------------------------------------
    |
    | Backend normalises Offering images to 16:9. Keep the public card at the
    | same ratio so the image is not cropped a second time by the interface.
    |--------------------------------------------------------------------------
    */

    aspect-ratio: 16 / 9;

    overflow: hidden;

    display: grid;
    place-items: center;

    color: #5b5ce2;

    background:
        linear-gradient(
            145deg,
            #efefff,
            #e9fbf8
        );

    font-size: 28px;
    font-weight: 850;
}

.public-offering-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

.public-offering-content {
    padding: 14px;
}

.public-offering-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.public-offering-name {
    min-width: 0;

    color: #0f172a;

    font-size: 12px;
    font-weight: 850;
}

.public-offering-status {
    flex: none;

    padding: 5px 8px;

    border-radius: 999px;

    font-size: 7px;
    font-weight: 850;
}

.public-offering-status.available {
    color: #15803d;
    background: #ecfdf3;
}

.public-offering-status.unavailable {
    color: #b91c1c;
    background: #fef2f2;
}

.public-offering-status.coming_soon {
    color: #b45309;
    background: #fff7ed;
}

.public-offering-price {
    margin-top: 8px;

    color: #4338ca;

    font-size: 16px;
    font-weight: 850;
}

.public-offering-description {
    margin-top: 7px;

    color: #64748b;

    font-size: 10px;
    line-height: 1.6;
}
