#trade-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(var(--white-values), 0.7);
    overflow: auto;
}

#trade-form {
    display: flex;
    flex-direction: column;
    background-color: var(--llight-grey);
    border-radius: var(--border-radius);
    box-shadow: 0 0 16px 10px rgba(0, 0, 0, 0.5);
    padding: var(--p4) var(--p3);
    position: relative;
    overflow-y: auto;
}

@media (max-width: 768px) {
    #trade-form {
        width: 100vw;
        height: 100vh;
        overflow-x: hidden;
    }
}
@media (min-width: 769px) {
    #trade-form {
        max-width: 30rem;
        max-height: 80vh;
        width: fit-content;
        overflow-x: hidden;
    }
}

#message-form-title {
    text-align: center;
    margin-bottom: 18px;
    color: #58a6ff;
}

#trade-form > div {
    margin-bottom: 14px;
}

#trade-form .trade-navbar {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: var(--p1);
}

.message-type-btn {
    transition: background-color 0.2s;
    padding: var(--p2);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--p1);
}

.message-type-btn.active {
    background-color: var(--blue);
    box-shadow: var(--shadow);
}

#recipient-section {
}

#recipient-team {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #c9d1d9;
}

#trade-form > div > label {
    font-weight: bold;
}
#message-subject {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #c9d1d9;
}

#message-content {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #c9d1d9;
    resize: none;
}
#message-attachment {
    width: 100%;
    color: #c9d1d9;
}

/* ==========	Trade Options	========== */

#include-trade-offer {
    display: none;
}

#include-trade-offer + label {
    display: inline-block; /* Or block if you want it full width */
    padding: var(--p1) var(--p2);
    background-color: var(--white);
    border: var(--shadow-border);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    user-select: none;
    text-align: center;
}

#include-trade-offer:checked + label {
    background-color: rgba(var(--blue-values), 0.2);
    border-color: var(--blue);

    /* background-color: var(--blue);
    box-shadow: var(--shadow); */
}


/* <input type="checkbox" id="include-trade-offer">
<label for="include-trade-offer">Include Trade Offer</label> */

#trade-offer-section {
    flex-direction: column;
    gap: var(--p2);
}

.trade-resource-container {
    display: flex;
    flex-direction: column;
    gap: var(--p1);
}
.trade-resource-container > span {
}

.trade-resource-input-fields {
    display: flex;
    flex-direction: row;
    gap: var(--p1);
}

.trade-resource-input-fields > * {
    padding: var(--p1);
}

@media (max-width: 768px) {
    .trade-resource-input-fields {
        flex-direction: column;
    }
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: var(--p1);
}

.resources-list > div {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: var(--p2);
}

.resources-list > div > span:first-child {
    color:var(--blue);
    min-width:5rem;
    text-align: end;
}

.resources-list button {
    background-color: transparent;
    border: none;
    box-shadow: none;
    margin-left: auto;
}

img.resource-icon {
    width: var(--icon);
}

i.resource-icon {
    font-size: var(--icon);
    padding-bottom: 4px;
}

.trade-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--p1);
}

.trade-modal-footer button {
    padding: var(--p1) var(--p2);
}

.trade-modal-footer #submit-message-btn {
    background-color: var(--blue);
}
