.wa-loads {
    --wa-ink: #16332c;
    --wa-green: #145749;
    --wa-border: #d6e4df;
    padding: clamp(1rem, 4vw, 3.5rem);
    background: #f4f8f6;
    color: var(--wa-ink);
}

.wa-loads--staff { padding: 1rem; border-radius: 1rem; }

.wa-loads__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
    max-width: 1120px;
    margin: auto;
}

.wa-loads__feed {
    border: 1px solid var(--wa-border);
    border-radius: 1.125rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 14px 40px rgb(24 64 52 / 8%);
}

.wa-loads__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .9rem;
    padding: clamp(1rem, 4vw, 1.6rem);
    background: var(--wa-green);
    color: white;
}

.wa-loads__header h1 {
    color: white;
    margin: 0 0 .25rem;
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.2;
}

.wa-loads__header p { color: #def5ec; margin: 0; font-size: .9rem; }
.wa-loads__header .wa-loads__header-link { color: white; text-decoration: underline; margin-inline-start: auto; }

.wa-loads__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    border-radius: .8rem;
    background: #286f5f;
}

.wa-loads__form { padding: 1rem clamp(1rem, 4vw, 1.6rem); border-bottom: 1px solid var(--wa-border); }
.wa-loads__form label {
    display: block;
    margin-bottom: .35rem;
    color: var(--wa-ink);
    font-size: .925rem;
    font-weight: 700;
    text-transform: none;
}
.wa-loads__form > div { display: flex; align-items: stretch; gap: .55rem; }

.wa-loads__form input[type="search"] {
    flex: 1;
    min-width: 0;
    min-height: 2.75rem;
    height: auto;
    color: var(--wa-ink);
    background: #f4f8f6;
    border: 1px solid #9ebbb1;
    border-radius: .65rem;
    padding: .55rem .75rem;
    font-size: 1rem;
    text-align: start;
    letter-spacing: normal;
    text-transform: none;
}

.wa-loads__form input[type="search"]::placeholder { color: #49655c; font-size: .925rem; letter-spacing: normal; text-transform: none; }

.wa-loads__form button, .wa-loads a.wa-loads__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border: 1px solid transparent;
    border-radius: .65rem;
    padding: .55rem .85rem;
    background: var(--wa-green);
    color: white;
    font-size: .925rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
}

.wa-loads__form button:hover, .wa-loads a.wa-loads__button:hover { background: #103e35; }
.wa-loads__form button:disabled, .wa-loads__more[aria-disabled="true"] { cursor: wait; opacity: .7; }
.wa-loads__feedback { margin: 0; color: #36544b; font-size: .925rem; }
.wa-loads__feedback:not(:empty) { padding: .5rem clamp(1rem, 4vw, 1.6rem); }
.wa-loads :focus-visible { outline: 3px solid #bf6725; outline-offset: 3px; }

.wa-loads__conversation {
    display: grid;
    gap: .85rem;
    min-height: 16rem;
    align-content: start;
    background: #e9f2ed radial-gradient(#c7d9d0 1px, transparent 1px) 0 0 / 18px 18px;
    padding: clamp(1rem, 4vw, 1.6rem);
}

.wa-loads__conversation[hidden] { display: none; }

.wa-loads__message {
    width: fit-content;
    min-width: min(12rem, 100%);
    max-width: min(100%, 44rem);
    padding: .75rem 1rem .5rem;
    background: white;
    border: 1px solid var(--wa-border);
    border-radius: .2rem .9rem .9rem .9rem;
}

.wa-loads__message p { color: var(--wa-ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; margin: 0; }
.wa-loads__message time { display: block; text-align: right; color: #49655c; font-size: .8125rem; margin-top: .35rem; }
.wa-loads__more { justify-self: start; }

.wa-loads__notice, .wa-loads__access, .wa-loads__ad {
    padding: 1rem 1.15rem;
    margin: 0;
    border-radius: .9rem;
    border: 1px solid var(--wa-border);
    background: white;
}

.wa-loads__side { display: grid; gap: 1rem; }
.wa-loads__ad { background: #fff7ee; border-color: #ead9c7; }
.wa-loads__ad span { color: #72523d; display: block; font-size: .875rem; margin-bottom: .55rem; }
.wa-loads__side h2, .wa-loads__notice h2 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 .45rem; color: var(--wa-ink); }
.wa-loads__side p, .wa-loads__notice p { margin: 0 0 .75rem; color: #36544b; font-size: .95rem; }
.wa-loads__access p { margin-bottom: 0; }
.wa-loads__ad a { color: #145749; text-decoration: underline; font-weight: 700; }
.wa-loads__mobile-access, .wa-loads__mobile-ad { display: none; }

@media (max-width: 760px) {
    .wa-loads__layout { grid-template-columns: minmax(0, 1fr); }
    .wa-loads__side { display: none; }
    .wa-loads__mobile-access { display: block; margin: .55rem 0 0; color: #49655c; font-size: .875rem; }
    .wa-loads .wa-loads__mobile-ad {
        display: flex;
        flex-wrap: wrap;
        gap: .25rem .65rem;
        align-items: baseline;
        margin: 0;
        padding: .65rem 1rem;
        background: #fff7ee;
        border-bottom: 1px solid #ead9c7;
        font-size: .875rem;
    }
    .wa-loads__mobile-ad span { color: #72523d; }
    .wa-loads__mobile-ad a { color: var(--wa-green); font-weight: 700; text-decoration: underline; }
}
