/* Reusable shipping label generator modal */

.labelGenOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 60;
}

.labelGenOverlay.active {
    display: block;
}

.labelGen {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    max-width: calc(100% - 32px);
    max-height: calc(100% - 32px);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    z-index: 70;
}

.labelGen.active {
    display: block;
}

.labelGenInner {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
}

.labelGenHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-200);
}

.labelGenHeaderTitle {
    font-weight: 700;
    font-size: 15px;
}

.labelGenHeaderClose {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-500);
}

.labelGenBody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 16px 18px;
    overflow-y: auto;
}

.labelGenColTitle {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.labelGenFields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.labelGenField {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.labelGenFieldLabel {
    font-size: 11px;
    color: var(--gray-600);
}

.labelGenOptions {
    display: flex;
    gap: 16px;
    padding: 0 18px 8px;
}

.labelGenOption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.labelGenOptionLabel {
    font-size: 11px;
    color: var(--gray-600);
}

.labelGenActions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}


/* Mobile */

@media (max-width: 800px) {
    .labelGenBody {
        grid-template-columns: 1fr;
    }
}
